benchmark: link CoreFoundation on os x to enable instruments profiling
This commit is contained in:
parent
b1233d533f
commit
138e718128
1 changed files with 5 additions and 1 deletions
|
@ -10,12 +10,16 @@ test_env['LIBS'] = copy(env['LIBMAPNIK_LIBS'])
|
||||||
test_env.AppendUnique(LIBS='mapnik')
|
test_env.AppendUnique(LIBS='mapnik')
|
||||||
#test_env.AppendUnique(LIBS='sqlite3')
|
#test_env.AppendUnique(LIBS='sqlite3')
|
||||||
test_env.AppendUnique(CXXFLAGS='-g')
|
test_env.AppendUnique(CXXFLAGS='-g')
|
||||||
|
linkflags = copy(env['CUSTOM_LDFLAGS'])
|
||||||
|
linkflags
|
||||||
|
if env['PLATFORM'] == 'Darwin':
|
||||||
|
linkflags += ' -F/ -framework CoreFoundation'
|
||||||
|
|
||||||
for cpp_test in glob.glob('run*.cpp'):
|
for cpp_test in glob.glob('run*.cpp'):
|
||||||
name = cpp_test.replace('.cpp','')
|
name = cpp_test.replace('.cpp','')
|
||||||
source_files = [cpp_test]
|
source_files = [cpp_test]
|
||||||
test_env_local = test_env.Clone()
|
test_env_local = test_env.Clone()
|
||||||
test_program = test_env_local.Program(name, source=source_files, LINKFLAGS=env['CUSTOM_LDFLAGS'])
|
test_program = test_env_local.Program(name, source=source_files, LINKFLAGS=linkflags)
|
||||||
Depends(test_program, env.subst('../src/%s' % env['MAPNIK_LIB_NAME']))
|
Depends(test_program, env.subst('../src/%s' % env['MAPNIK_LIB_NAME']))
|
||||||
# build locally if installing
|
# build locally if installing
|
||||||
if 'install' in COMMAND_LINE_TARGETS:
|
if 'install' in COMMAND_LINE_TARGETS:
|
||||||
|
|
Loading…
Reference in a new issue