diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-04 20:50:28 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-04 20:50:28 +0000 |
commit | db84f21ce0544f167c537a6826ce0a787b0f347e (patch) | |
tree | f553bee0fd385a9ad4c751275fd94375e801db29 /wscript | |
parent | 16884aff2a2c03f613ded8088defbc1c4d546576 (diff) |
add --also-include patch to help *BSD builders out, and add optional boost include path to CXXPATH not just CPPPATH
git-svn-id: svn://localhost/ardour2/branches/3.0@10445 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -403,6 +403,8 @@ def options(opt): 'Multiple modifiers must be separated by \'><\'') opt.add_option('--boost-include', type='string', action='store', dest='boost_include', default='', help='directory where Boost header files can be found') + opt.add_option('--also-include', type='string', action='store', dest='also_include', default='', + help='additional include directory where header files can be found') opt.add_option('--wine-include', type='string', action='store', dest='wine_include', default='/usr/include/wine/windows', help='directory where Wine\'s Windows header files can be found') opt.add_option('--noconfirm', action='store_true', default=False, dest='noconfirm', @@ -491,7 +493,11 @@ def configure(conf): conf.env.append_value('LINKFLAGS_AUDIOUNITS', ['-framework', 'Audiotoolbox', '-framework', 'AudioUnit']) if Options.options.boost_include != '': - conf.env.append_value('CPPPATH', Options.options.boost_include) + conf.env.append_value('CXXFLAGS', '-I' + Options.options.boost_include) + + if Options.options.also_include != '': + conf.env.append_value('CXXFLAGS', '-I' + Options.options.also_include) + conf.env.append_value('CFLAGS', '-I' + Options.options.also_include) autowaf.check_header(conf, 'cxx', 'boost/signals2.hpp', mandatory = True) |