简体   繁体   English

Eclipse等效于Visual Studio的构建配置是什么?

[英]What is the Eclipse equivalent of Visual Studio's build configurations?

I'm porting some Windows code to Android. 我正在将一些Windows代码移植到Android。

The Visual Studio project has various different build configurations for different versions of the application, (eg full version vs. demo). Visual Studio项目针对不同版本的应用程序提供了各种不同的构建配置(例如完整版与演示版)。

What is the standard way to achieve this in Eclipse? 在Eclipse中实现这一目标的标准方法是什么? The vast majority of the code will be the same for the different versions, but there will be small differences, eg native code preprocessor definitions in Android.mk , slight differences in some of the Java code, different output filenames. 绝大多数代码对于不同的版本都是相同的,但是会有很小的差异,例如Android.mk本机代码预处理器定义,某些Java代码的轻微差异,不同的输出文件名。

Should I just set up separate projects, and use my Android.mk files and Eclipse's Properties -> Java Build Path to point at the shared code? 我应该只设置单独的项目,并使用我的Android.mk文件和Eclipse的属性 - > Java构建路径来指向共享代码吗?

Eclipse CDT provides multiple configurations (try right click on project -> Build Configurations ). Eclipse CDT提供了多种配置(尝试右键单击项目 - > 构建配置 )。 But this only works for native projects, or for the C++ part of mixed projects, like the Android projects with Native Support . 但这仅适用于本机项目,或适用于混合项目的C ++部分,例如具有Native Support的Android项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse中IntelliJ IDEA的“启动前:”运行/调试配置功能等同于什么? - What's the equivalent of IntelliJ IDEA's Run/Debug Configurations “Before launch:” feature in Eclipse? 在Eclipse中的Java构建路径中拥有另一个项目的等价物是什么? - What's the gradle equivalent of having another project in your Java build path in Eclipse? Visual Studio Post Build脚本等效于IntelliJ中的Java - Visual Studio Post Build Script Equivalent for Java in IntelliJ Eclipse和.properties文件中的不同构建配置 - Different build configurations in Eclipse and .properties file 在Eclipse下以Java / Android实现构建配置 - Implement build configurations in Java/Android under Eclipse Eclipse插件:如何指定项目属性中显示的启动配置? - Eclipse plugin: How to specify what launch configurations appear in a project's properties? 在Netbeans中Eclipse的Ctrl + O快捷方式是什么? - What is Eclipse's Ctrl+O shortcut equivalent in Netbeans? 在IntelliJ IDEA中Eclipse的Ctrl + H快捷方式是什么 - What is Eclipse's Ctrl+H shortcut equivalent in IntelliJ IDEA 相当于Eclipse的Build Path-> Export的Ant(build.xml)? - Ant (build.xml) equivalent to Eclipse's Build Path->Export? 等效于Visual Studio内置的任何Java IDE的Web应用程序身份验证模板 - any Java IDE's Web Application Authentication template equivalent to Visual Studio's built-in
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM