Re: [anjuta-list] Is it possible to make Anjuta do a conditional build?



Hi,

Le 26/05/2017 à 18:15, Igor Korot a écrit :
What I'm looking for is the way to tell Anjuta in the configure option:
"--<with-ferature>"/"--<without-feature"
and then perform a conditional
"
#ifndef __MY_FEATURE__
#define __MYFEATURE__

#endif
"
Is it possible or I will have to dig inside the Makefiles writing?

Is it possible but you will have to write it yourself.

In a typical autotools project, it involves autoconf which is responsible for generating the configure script and automake. It's a bit different than a standard Makefile. But this is something very common, so you can look how it's done in another project. Basically, you need to use AC_ARG_ENABLE in your configure.ac script and then AC_DEFINE.


Regards,

Sébastien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]