Re: [anjuta-list] Is it possible to make Anjuta do a conditional build?
- From: Sébastien Granjoux <seb sfo free fr>
- To: Igor Korot <ikorot01 gmail com>, anjuta-list gnome org
- Subject: Re: [anjuta-list] Is it possible to make Anjuta do a conditional build?
- Date: Fri, 26 May 2017 21:03:40 +0200
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]