scons: add boolean option to avoid linking to Framework Python on darwin (closes #248)
This commit is contained in:
parent
feb3f3327c
commit
46df10d7d0
2 changed files with 5 additions and 1 deletions
|
@ -181,6 +181,7 @@ opts.Add(PathVariable('SQLITE_LIBS', 'Search path for SQLITE library files', '/u
|
|||
opts.Add('SYSTEM_FONTS','Provide location for python bindings to register fonts (if given aborts installation of bundled DejaVu fonts)','')
|
||||
opts.Add('LIB_DIR_NAME','Name to use for lib folder where fonts and plugins are installed', '/mapnik/', PathVariable.PathAccept)
|
||||
opts.Add(PathVariable('PYTHON','Full path to Python executable used to build bindings', sys.executable))
|
||||
opts.Add(BoolVariable('FRAMEWORK_PYTHON', 'Link against Framework Python on Mac OSX', 'True'))
|
||||
opts.Add(ListVariable('BINDINGS','Language bindings to build','all',['python']))
|
||||
opts.Add(EnumVariable('THREADING','Set threading support','multi', ['multi','single']))
|
||||
opts.Add(EnumVariable('XMLPARSER','Set xml parser ','libxml2', ['tinyxml','spirit','libxml2']))
|
||||
|
|
|
@ -45,7 +45,10 @@ if env['PLATFORM'] == 'Darwin':
|
|||
libraries.append('boost_thread%s' % env['BOOST_APPEND'])
|
||||
if '-DHAVE_PYCAIRO' in env['CXXFLAGS']:
|
||||
libraries.append([lib for lib in env['LIBS'] if lib.startswith('cairo')])
|
||||
if env['FRAMEWORK_PYTHON']:
|
||||
linkflags = '-F/ -framework Python'
|
||||
else:
|
||||
linkflags = '-lpython%s' % env['PYTHON_VERSION']
|
||||
|
||||
headers = [env['PYTHON_INCLUDES']] + env['CPPPATH']
|
||||
|
||||
|
|
Loading…
Reference in a new issue