scons: more logic reporting around cairo support
This commit is contained in:
parent
d73d72d509
commit
07bae46fd7
1 changed files with 15 additions and 9 deletions
20
SConstruct
20
SConstruct
|
@ -825,12 +825,6 @@ if not preconfigured:
|
|||
if conf.parse_config('XML2_CONFIG'):
|
||||
env['HAS_LIBXML2'] = True
|
||||
|
||||
if env['CAIRO'] and conf.CheckPKGConfig('0.15.0') and conf.CheckPKG('cairomm-1.0'):
|
||||
env['HAS_CAIRO'] = True
|
||||
else:
|
||||
env['SKIPPED_DEPS'].extend(['cairo','cairomm'])
|
||||
|
||||
|
||||
# allow for mac osx /usr/lib/libicucore.dylib compatibility
|
||||
# requires custom supplied headers since Apple does not include them
|
||||
# details: http://lists.apple.com/archives/xcode-users/2005/Jun/msg00633.html
|
||||
|
@ -971,6 +965,14 @@ if not preconfigured:
|
|||
else:
|
||||
env.ParseConfig('pkg-config --libs --cflags libagg')
|
||||
|
||||
if env['CAIRO']:
|
||||
if conf.CheckPKGConfig('0.15.0') and conf.CheckPKG('cairomm-1.0'):
|
||||
env['HAS_CAIRO'] = True
|
||||
else:
|
||||
env['SKIPPED_DEPS'].extend(['cairo','cairomm'])
|
||||
else:
|
||||
color_print(4,'Not building with cairo support, pass CAIRO=True to enable')
|
||||
|
||||
if 'python' in env['BINDINGS']:
|
||||
# checklibwithheader does not work for boost_python since we can't feed it
|
||||
# multiple header files, so we fall back on a simple check for boost_python headers
|
||||
|
@ -978,10 +980,14 @@ if not preconfigured:
|
|||
color_print(1,'Could not find required header files for boost python')
|
||||
env['MISSING_DEPS'].append('boost python')
|
||||
|
||||
if env['CAIRO'] and conf.CheckPKGConfig('0.15.0') and conf.CheckPKG('pycairo'):
|
||||
if env['CAIRO']:
|
||||
if conf.CheckPKGConfig('0.15.0') and conf.CheckPKG('pycairo'):
|
||||
env['HAS_PYCAIRO'] = True
|
||||
else:
|
||||
env['SKIPPED_DEPS'].extend(['pycairo'])
|
||||
else:
|
||||
color_print(4,'Not building with pycairo support, pass CAIRO=True to enable')
|
||||
|
||||
|
||||
#### End Config Stage for Required Dependencies ####
|
||||
|
||||
|
|
Loading…
Reference in a new issue