-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to activate custom defines ? #18
Comments
Maven also supports the -D = argument similar to Make, On Tue, Aug 23, 2016, 5:53 AM Brice Copy [email protected] wrote:
|
What about aol.properties to specify BOOST defines ? |
That's an interesting thought... aol.properties is intended to be used for I'd also recommend looking at the properties-maven-plugin ( Hope this helps! On Tue, Aug 23, 2016, 8:07 AM Brice Copy [email protected] wrote:
|
Thanks, I'll give it a go. |
For us (we also mavensied asio as a header only dependency) we used the options in the nar plugin config to enable symbols in the headers, e.g.: <options combine.children="append">
<option>-std=c++11</option>
<!-- This one disables the boost requirement on asio -->
<option>-DASIO_STANDALONE</option>
</options> Of course, like @dproteus13 alluded to, this only works for header symbols that can be processed at compile time. If the symbols changes the binary library itself we'll need another solution. Your specific case where the original mechanism is to go in an edit source code is also a bit of a pain! Maybe we could simply have different artefacts? We do this for different linux dists since the AOL mechanism doesn't go far enough to support libraries compiled against different system libs. So we add qualifiers to the verison e.g. |
On a side note, I created a python utility to create maven nars from existing binaries and headers. It's a bit of a rush job and needs a clean up (you have to repeat yourself once or twice) but it works fine. https://github.com/markjohndoyle/bin-to-nar I'll mention it on the nar plugin page. |
Also worth mentioning is NAR's good support for the legacy GNU AutoConf On Thu, Aug 25, 2016, 5:07 AM markjohndoyle [email protected]
|
About gnu support, I tried it for google test.. but there's no "install" On 25 Aug 2016 11:48 am, "dproteus13" [email protected] wrote:
|
Google test doesn't build with the GNU AutoConf suite, just Make... but On Thu, Aug 25, 2016, 7:43 AM Brice Copy [email protected] wrote:
|
For instance, I would like to activate the EXTRA MATCH flag for Boost Regex.
The boost recommendation is to go to src/main/include/boost/regex/user.hpp
and to uncomment :
define BOOST_REGEX_MATCH_EXTRA
which is what I have done prior to reinstalling the regex NAR.
However, is there a nicer way to do this, from the maven command line for instance ?
The text was updated successfully, but these errors were encountered: