[英]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.