简体   繁体   中英

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

I'm porting some Windows code to Android.

The Visual Studio project has various different build configurations for different versions of the application, (eg full version vs. demo).

What is the standard way to achieve this in 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.

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?

Eclipse CDT provides multiple configurations (try right click on project -> Build Configurations ). But this only works for native projects, or for the C++ part of mixed projects, like the Android projects with Native Support .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM