Fixes for Win+SCons and disable recastnavigationif game engine is disabled in SCons
This commit is contained in:
4
extern/SConscript
vendored
4
extern/SConscript
vendored
@@ -3,7 +3,9 @@
|
|||||||
Import('env')
|
Import('env')
|
||||||
|
|
||||||
SConscript(['glew/SConscript'])
|
SConscript(['glew/SConscript'])
|
||||||
SConscript(['recastnavigation/SConscript'])
|
|
||||||
|
if env['WITH_BF_GAMEENGINE']:
|
||||||
|
SConscript(['recastnavigation/SConscript'])
|
||||||
|
|
||||||
if env['WITH_BF_ELTOPO']:
|
if env['WITH_BF_ELTOPO']:
|
||||||
SConscript(['eltopo/SConscript'])
|
SConscript(['eltopo/SConscript'])
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
Import ('env')
|
Import ('env')
|
||||||
|
import os
|
||||||
|
|
||||||
sources = env.Glob('intern/*.c') + env.Glob('intern/*.cpp')
|
sources = env.Glob('intern/*.c') + env.Glob('intern/*.cpp')
|
||||||
|
|
||||||
@@ -94,7 +95,7 @@ if env['WITH_BF_GAMEENGINE']:
|
|||||||
incs += ' #/extern/recastnavigation/Recast/Include'
|
incs += ' #/extern/recastnavigation/Recast/Include'
|
||||||
defs.append('WITH_GAMEENGINE')
|
defs.append('WITH_GAMEENGINE')
|
||||||
else:
|
else:
|
||||||
sources.remove('intern/navmesh_conversion.cpp')
|
sources.remove('intern' + os.sep + 'navmesh_conversion.cpp')
|
||||||
|
|
||||||
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
||||||
incs += ' ' + env['BF_PTHREADS_INC']
|
incs += ' ' + env['BF_PTHREADS_INC']
|
||||||
|
Reference in New Issue
Block a user