Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In a C/Java project, what is an appropriate way to manage the build?

In a C/Java project, what is an appropriate way to manage the build?

I was initially thinking building everything C with Autotools and everything in Java with Apache Ant and then have each builder "exec" the other.

Another approach could be to do everything in Autotools. I'd prefer autotools over ant because I'm not aware of any Autoconf like applications for Ant.

The project is a JNI project that has equal/symmetrical responsibility between the languages, in other words, it should be usable by Java-only developers and C-only developers as well as Java-and-C developers.

Thanks, Chenz

like image 888
Crazy Chenz Avatar asked Apr 06 '11 09:04

Crazy Chenz


People also ask

How do you build a Java project?

You can also create a Java project using the Java: Create Java Project command. Bring up the Command Palette (Ctrl+Shift+P) and then type java to search for this command. After selecting the command, you will be prompted for the location and name of the project. You can also choose your build tool from this command.

What is build process in Java?

The "Build" is a process that covers all the steps required to create a "deliverable" of your software. In the Java world, this typically includes: Generating sources (sometimes). Compiling sources. Compiling test sources.


1 Answers

I would recommend CMake which is multi-platform and multi-language.

You can start with:

project(myJavaProject Java)
like image 117
levif Avatar answered Sep 18 '22 20:09

levif