2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
2004-02-29 21:40:48 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
sources = env.Glob('*.cpp')
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2009-06-08 20:08:19 +00:00
|
|
|
incs = '. #source/kernel/gen_system #intern/string #intern/moto/include #source/gameengine/Ketsji'
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' #source/gameengine/GameLogic #source/gameengine/Expressions'
|
2009-06-08 20:08:19 +00:00
|
|
|
incs += ' #source/gameengine/Network #source/gameengine/SceneGraph'
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2009-02-15 23:26:00 +00:00
|
|
|
cxxflags = []
|
2009-07-16 19:41:28 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
2009-02-15 23:26:00 +00:00
|
|
|
cxxflags.append ('/GR')
|
|
|
|
cxxflags.append ('/O2')
|
2009-07-16 19:41:28 +00:00
|
|
|
cxxflags.append ('/EHsc')
|
2009-02-15 23:26:00 +00:00
|
|
|
|
|
|
|
|
2009-03-17 21:44:58 +00:00
|
|
|
env.BlenderLib ( 'kx_network', Split(sources), Split(incs), defines=[],libtype=['core', 'player'], priority=[400, 145], cxx_compileflags=cxxflags )
|