From ef1b7a5735fea454f88f9d18cf9034279f8fb0b6 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Tue, 7 Feb 2006 21:24:36 +0000 Subject: [PATCH] ==SCons== + 'scons blenderplayer' builds blender AND blenderplayer now (tested on Linux only, but was only linking issue, so should work on other platforms too). NOTE: I noticed some compileflags for GE specific libs that were left out - I re-enabled them in the SConscripts, but I'm going to do a test build my- self now, so if there are problems with them on win32, I probably already know about them :) --- SConstruct | 8 +------- extern/bFTGL/SConscript | 2 +- extern/bullet/SConscript | 2 +- extern/qhull/SConscript | 2 +- extern/solid/SConscript | 2 +- intern/SoundSystem/SConscript | 2 +- intern/bmfont/SConscript | 2 +- intern/decimation/SConscript | 2 +- intern/ghost/SConscript | 2 +- intern/guardedalloc/SConscript | 2 +- intern/memutil/SConscript | 2 +- intern/moto/SConscript | 2 +- intern/string/SConscript | 2 +- source/blender/avi/SConscript | 2 +- source/blender/blenkernel/SConscript | 2 +- .../blenkernel/bad_level_call_stubs/SConscript | 2 +- source/blender/blenlib/SConscript | 2 +- source/blender/blenloader/SConscript | 2 +- source/blender/blenpluginapi/SConscript | 2 +- source/blender/ftfont/SConscript | 3 ++- source/blender/imbuf/SConscript | 2 +- source/blender/imbuf/intern/openexr/SConscript | 3 +-- source/blender/makesdna/SConscript | 2 +- source/blender/readblenfile/SConscript | 2 +- source/blender/yafray/SConscript | 2 +- source/gameengine/BlenderRoutines/SConscript | 9 ++++----- source/gameengine/Converter/SConscript | 2 +- source/gameengine/Expressions/SConscript | 2 +- source/gameengine/GameLogic/SConscript | 2 +- source/gameengine/GamePlayer/common/SConscript | 2 +- source/gameengine/GamePlayer/ghost/SConscript | 2 +- source/gameengine/Ketsji/KXNetwork/SConscript | 2 +- source/gameengine/Ketsji/SConscript | 10 +++++----- source/gameengine/Network/LoopBackNetwork/SConscript | 2 +- source/gameengine/Network/SConscript | 2 +- source/gameengine/Physics/Bullet/SConscript | 11 +++++------ source/gameengine/Physics/Dummy/SConscript | 2 +- source/gameengine/Physics/Sumo/SConscript | 10 +++++----- source/gameengine/Physics/common/SConscript | 2 +- .../Rasterizer/RAS_OpenGLRasterizer/SConscript | 2 +- source/gameengine/Rasterizer/SConscript | 9 ++++----- source/gameengine/SceneGraph/SConscript | 2 +- source/kernel/SConscript | 2 +- 43 files changed, 62 insertions(+), 71 deletions(-) diff --git a/SConstruct b/SConstruct index 14bf6d032d7..f8662792681 100644 --- a/SConstruct +++ b/SConstruct @@ -38,6 +38,7 @@ import os.path import string import shutil import glob +import re import tools.Blender import tools.btools @@ -227,13 +228,6 @@ thesyslibs = B.setup_syslibs(env) env.BlenderProg(B.root_build_dir, "blender", dobj + mainlist + thestatlibs, [], thesyslibs, [B.root_build_dir+'/lib'] + thelibincs, 'blender') if env['WITH_BF_PLAYER']: playerlist = B.create_blender_liblist(env, 'player') - playerlist += B.create_blender_liblist(env, 'core') - playerlist += B.create_blender_liblist(env, 'common') - playerlist += B.create_blender_liblist(env, 'intern') - playerlist += B.create_blender_liblist(env, 'international') - playerlist += B.create_blender_liblist(env, 'game') - playerlist += B.create_blender_liblist(env, 'game2') - playerlist += B.create_blender_liblist(env, 'player2') env.BlenderProg(B.root_build_dir, "blenderplayer", dobj + playerlist + thestatlibs, [], thesyslibs, [B.root_build_dir+'/lib'] + thelibincs, 'blenderplayer') ##### Now define some targets diff --git a/extern/bFTGL/SConscript b/extern/bFTGL/SConscript index a201cbae125..28364193bf9 100644 --- a/extern/bFTGL/SConscript +++ b/extern/bFTGL/SConscript @@ -27,4 +27,4 @@ defs = '' sources = env.Glob('src/*.cpp') -env.BlenderLib ( 'extern_ftgl', sources, Split(incs), Split(defs), libtype='international', priority=5) +env.BlenderLib ( 'extern_ftgl', sources, Split(incs), Split(defs), libtype=['international','player'], priority=[5, 210]) diff --git a/extern/bullet/SConscript b/extern/bullet/SConscript index 7441ab29b24..70fb59334fe 100644 --- a/extern/bullet/SConscript +++ b/extern/bullet/SConscript @@ -103,4 +103,4 @@ sources = [ 'Bullet/BroadphaseCollision/BroadphaseProxy.cpp', incs = '. Bullet BulletDynamics LinearMath' -env.BlenderLib ( libname = 'extern_bullet', sources=sources, includes=Split(incs), defines=Split(defs), libtype='game2', priority=20, compileflags=cflags ) +env.BlenderLib ( libname = 'extern_bullet', sources=sources, includes=Split(incs), defines=Split(defs), libtype=['game2', 'player'], priority=[20, 170], compileflags=cflags ) diff --git a/extern/qhull/SConscript b/extern/qhull/SConscript index 2d767cfc58d..6b21d3694e0 100644 --- a/extern/qhull/SConscript +++ b/extern/qhull/SConscript @@ -32,4 +32,4 @@ sources = ['src/geom.c', incs = 'include src' -env.BlenderLib ( 'extern_qhull', sources, Split(incs), Split(defs), libtype='game2', priority=50, compileflags = cflags) +env.BlenderLib ( 'extern_qhull', sources, Split(incs), Split(defs), libtype=['game2','player'], priority=[50, 85], compileflags = cflags) diff --git a/extern/solid/SConscript b/extern/solid/SConscript index 673a9951ea4..00970f455e4 100644 --- a/extern/solid/SConscript +++ b/extern/solid/SConscript @@ -31,4 +31,4 @@ sources = env.Glob('src/*.cpp') + env.Glob('src/convex/*.cpp') + env.Glob('src/c incs = 'include src src/broad src/complex src/convex ../qhull/include' -env.BlenderLib ( libname='extern_solid', sources=sources, includes=Split(incs), defines=Split(defs), libtype='game2', priority=45 , compileflags = cflags) +env.BlenderLib ( libname='extern_solid', sources=sources, includes=Split(incs), defines=Split(defs), libtype=['game2','player'], priority=[45, 75] , compileflags = cflags) diff --git a/intern/SoundSystem/SConscript b/intern/SoundSystem/SConscript index 4089453b7f3..a9c1110c09a 100644 --- a/intern/SoundSystem/SConscript +++ b/intern/SoundSystem/SConscript @@ -13,4 +13,4 @@ if env['WITH_BF_OPENAL']: else: defs = 'NO_SOUND' -env.BlenderLib ('blender_sndsys', sources, Split(incs), Split(defs), libtype=['core','player2'], priority = [20,10] ) +env.BlenderLib ('bf_soundsystem', sources, Split(incs), Split(defs), libtype=['core','player'], priority = [20,140] ) diff --git a/intern/bmfont/SConscript b/intern/bmfont/SConscript index 614f8ec87ea..4febe2735e7 100644 --- a/intern/bmfont/SConscript +++ b/intern/bmfont/SConscript @@ -7,4 +7,4 @@ incs = '. intern' incs += ' ' + env['BF_OPENGL_INC'] defs = '' -env.BlenderLib ('blender_BMF', sources, Split(incs), Split(defs), libtype='intern', priority = 20 ) +env.BlenderLib ('bf_bmfont', sources, Split(incs), Split(defs), libtype=['intern','player'], priority = [20, 185] ) diff --git a/intern/decimation/SConscript b/intern/decimation/SConscript index 4ba7dbdba4c..cf199fb3bc5 100644 --- a/intern/decimation/SConscript +++ b/intern/decimation/SConscript @@ -5,4 +5,4 @@ sources = env.Glob('intern/*.cpp') incs = '. ../moto/include ../container ../memutil' -env.BlenderLib ('blender_LOD', sources, Split(incs) , [], libtype=['core','common', 'player2'], priority = [10, 20, 5] ) +env.BlenderLib ('bf_decimation', sources, Split(incs) , [], libtype=['core','common','player'], priority = [10, 20, 25] ) diff --git a/intern/ghost/SConscript b/intern/ghost/SConscript index bc050e69451..82c17017261 100644 --- a/intern/ghost/SConscript +++ b/intern/ghost/SConscript @@ -27,4 +27,4 @@ else: Exit() incs = '. ../string ' + env['BF_OPENGL_INC'] -env.BlenderLib ('blender_GHOST', sources, Split(incs), [], libtype='core', priority = 25 ) +env.BlenderLib ('bf_ghost', sources, Split(incs), [], libtype=['core','player'], priority = [25,15] ) diff --git a/intern/guardedalloc/SConscript b/intern/guardedalloc/SConscript index 62688394361..fe3abb7eaff 100644 --- a/intern/guardedalloc/SConscript +++ b/intern/guardedalloc/SConscript @@ -5,4 +5,4 @@ Import('env') sources = env.Glob('intern/*.c') incs = '.' -env.BlenderLib ('blender_guardedalloc', sources, Split(incs), [], libtype='intern', priority = 10 ) +env.BlenderLib ('bf_guardedalloc', sources, Split(incs), [], libtype=['intern', 'player'], priority = [10, 175] ) diff --git a/intern/memutil/SConscript b/intern/memutil/SConscript index 0c541108434..4528de814f3 100644 --- a/intern/memutil/SConscript +++ b/intern/memutil/SConscript @@ -5,4 +5,4 @@ sources = env.Glob('intern/*.cpp') incs = '. ..' -env.BlenderLib ('blender_MEM', sources, Split(incs), [], libtype='intern', priority = 0 ) +env.BlenderLib ('bf_memutil', sources, Split(incs), [], libtype=['intern', 'player'], priority = [0, 180] ) diff --git a/intern/moto/SConscript b/intern/moto/SConscript index 44e2fae76f3..636515aa5c5 100644 --- a/intern/moto/SConscript +++ b/intern/moto/SConscript @@ -5,4 +5,4 @@ sources = env.Glob('intern/*.cpp') incs = 'include' -env.BlenderLib ('blender_MT', sources, Split(incs), [], libtype=['intern','game','game2'], priority = [15, 55,100] ) +env.BlenderLib ('bf_moto', sources, Split(incs), [], libtype=['intern','game','game2','player'], priority = [15, 55, 100, 135] ) diff --git a/intern/string/SConscript b/intern/string/SConscript index 423904ff868..7f817f82759 100644 --- a/intern/string/SConscript +++ b/intern/string/SConscript @@ -4,4 +4,4 @@ Import ('env') sources = env.Glob('intern/*.cpp') incs = '.' -env.BlenderLib ('blender_STR', sources, Split(incs), [], libtype='core', priority = 30 ) +env.BlenderLib ('bf_string', sources, Split(incs), [], libtype=['core', 'player'], priority = [30,10] ) diff --git a/source/blender/avi/SConscript b/source/blender/avi/SConscript index 6c2faa5329d..91239c66ead 100644 --- a/source/blender/avi/SConscript +++ b/source/blender/avi/SConscript @@ -7,4 +7,4 @@ sources = env.Glob('intern/*.c') incs = '. #/intern/guardedalloc' incs += ' ' + env['BF_JPEG_INC'] -env.BlenderLib ('blender_avi', sources, Split(incs), [], libtype='core', priority = 90 ) +env.BlenderLib ('bf_avi', sources, Split(incs), [], libtype=['core','player'], priority = [90, 50] ) diff --git a/source/blender/blenkernel/SConscript b/source/blender/blenkernel/SConscript index a5128a33c3e..aed4ad6ed4c 100644 --- a/source/blender/blenkernel/SConscript +++ b/source/blender/blenkernel/SConscript @@ -32,4 +32,4 @@ defs += ' WITH_CCGSUBSURF' if env['WITH_BF_PLAYER']: SConscript(['bad_level_call_stubs/SConscript']) -env.BlenderLib ( libname = 'blenkernel', sources = sources, includes = Split(incs), defines = Split(defs), libtype='core', priority = 65 ) +env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = Split(defs), libtype=['core','player'], priority = [65, 20] ) diff --git a/source/blender/blenkernel/bad_level_call_stubs/SConscript b/source/blender/blenkernel/bad_level_call_stubs/SConscript index cfe53fd8ab4..955a989c9f9 100644 --- a/source/blender/blenkernel/bad_level_call_stubs/SConscript +++ b/source/blender/blenkernel/bad_level_call_stubs/SConscript @@ -11,4 +11,4 @@ defs = '' if env['WITH_BF_INTERNATIONAL']: defs += 'WITH_FREETYPE2' -env.BlenderLib ('blenkernel_blc', sources = Split(sources), includes=Split(incs), defines=Split(defs), libtype='player2',priority=0 ) +env.BlenderLib ('blenkernel_blc', sources = Split(sources), includes=Split(incs), defines=Split(defs), libtype='player',priority=225 ) diff --git a/source/blender/blenlib/SConscript b/source/blender/blenlib/SConscript index 8b9d0bcbf1b..53231e60d8f 100644 --- a/source/blender/blenlib/SConscript +++ b/source/blender/blenlib/SConscript @@ -12,4 +12,4 @@ defs = '' if env['WITH_BF_INTERNATIONAL'] == 1: defs = 'WITH_FREETYPE2' -env.BlenderLib ( 'blender_blenlib', sources, Split(incs), Split(defs), libtype='core', priority = 85 ) +env.BlenderLib ( 'bf_blenlib', sources, Split(incs), Split(defs), libtype=['core','player'], priority = [85,195] ) diff --git a/source/blender/blenloader/SConscript b/source/blender/blenloader/SConscript index 33e30e56793..a5096cefdcd 100644 --- a/source/blender/blenloader/SConscript +++ b/source/blender/blenloader/SConscript @@ -10,4 +10,4 @@ incs += ' ../render/extern/include' incs += ' ' + env['BF_ZLIB_INC'] -env.BlenderLib ( 'blender_blenloader', sources, Split(incs), [], libtype='core', priority = 70 ) +env.BlenderLib ( 'bf_blenloader', sources, Split(incs), [], libtype=['core','player'], priority = [70, 30] ) diff --git a/source/blender/blenpluginapi/SConscript b/source/blender/blenpluginapi/SConscript index f1ba8b3af74..d17a35e933e 100644 --- a/source/blender/blenpluginapi/SConscript +++ b/source/blender/blenpluginapi/SConscript @@ -11,4 +11,4 @@ if env['WITH_BF_QUICKTIME'] == 1: defs.append('WITH_QUICKTIME') incs += ' ' + env['BF_QUICKTIME_INC'] -env.BlenderLib ( libname = 'blender_blenpluginapi', sources = sources, includes = Split(incs), defines = defs, libtype='core', priority = 75 ) +env.BlenderLib ( libname = 'bf_blenpluginapi', sources = sources, includes = Split(incs), defines = defs, libtype=['core', 'player'], priority = [75, 35] ) diff --git a/source/blender/ftfont/SConscript b/source/blender/ftfont/SConscript index 9d9da82fac2..cf6805d6bb3 100644 --- a/source/blender/ftfont/SConscript +++ b/source/blender/ftfont/SConscript @@ -12,4 +12,5 @@ incs += ' ' + env['BF_GETTEXT_INC'] defs = 'FTGL_STATIC_LIBRARY' if sys.platform == 'win32': defs += ' _WIN32 USE_GETTEXT_DLL' -env.BlenderLib ( 'blender_FTF', sources, Split(incs), Split(defs), libtype='international', priority=0 ) + +env.BlenderLib ( 'bf_ftfont', sources, Split(incs), Split(defs), libtype=['international','player'], priority=[0, 205] ) diff --git a/source/blender/imbuf/SConscript b/source/blender/imbuf/SConscript index 7d0afa3f0e5..93041ab97cf 100644 --- a/source/blender/imbuf/SConscript +++ b/source/blender/imbuf/SConscript @@ -23,4 +23,4 @@ if env['WITH_BF_QUICKTIME']==1: incs += ' ' + env['BF_QUICKTIME_INC'] defs.append('WITH_QUICKTIME') -env.BlenderLib ( libname = 'blender_imbuf', sources = sources, includes = Split(incs), defines = defs, libtype='core', priority = 80 ) +env.BlenderLib ( libname = 'bf_imbuf', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [80, 40] ) diff --git a/source/blender/imbuf/intern/openexr/SConscript b/source/blender/imbuf/intern/openexr/SConscript index ec7b9b3518d..a710e26ad5d 100644 --- a/source/blender/imbuf/intern/openexr/SConscript +++ b/source/blender/imbuf/intern/openexr/SConscript @@ -13,5 +13,4 @@ incs += Split(env['BF_OPENEXR_INC']) defs = [] -#openexr_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_openexr', source=source_files) -env.BlenderLib ('blender_openexr', source_files, incs, defs, libtype='core', priority = 90) +env.BlenderLib ('bf_openexr', source_files, incs, defs, libtype=['core','player'], priority = [90, 200]) diff --git a/source/blender/makesdna/SConscript b/source/blender/makesdna/SConscript index 3978f8bbf48..d67be4955c4 100644 --- a/source/blender/makesdna/SConscript +++ b/source/blender/makesdna/SConscript @@ -8,4 +8,4 @@ objs.append (o) incs = '#/intern/guardedalloc' -env.BlenderLib ( 'blender_makesdna', objs, Split(incs), [], libtype='common', priority = 10 ) +env.BlenderLib ( 'bf_dna', objs, Split(incs), [], libtype=['common','player'], priority = [10, 215] ) diff --git a/source/blender/readblenfile/SConscript b/source/blender/readblenfile/SConscript index 901871ad298..31ca25eedd7 100644 --- a/source/blender/readblenfile/SConscript +++ b/source/blender/readblenfile/SConscript @@ -5,4 +5,4 @@ sources = env.Glob('intern/*.c') incs = '. ../blenloader ../blenloader/intern ../blenkernel ../blenlib ../makesdna ../../kernel/gen_messaging' -env.BlenderLib ( 'blender_readblenfile', sources, Split(incs), [], libtype='common', priority = 0 ) +env.BlenderLib ( 'bf_readblenfile', sources, Split(incs), [], libtype=['common','player'], priority = [0, 220] ) diff --git a/source/blender/yafray/SConscript b/source/blender/yafray/SConscript index 8da3b16fbfe..dd744f92d39 100644 --- a/source/blender/yafray/SConscript +++ b/source/blender/yafray/SConscript @@ -6,4 +6,4 @@ sources = env.Glob('intern/*.cpp') incs = '#/intern/guardedalloc ../blenlib ../makesdna ../blenkernel' incs += ' ../imbuf ../include ../render/extern/include ../render/intern/include' -env.BlenderLib ( 'blender_yafray', sources, Split(incs), [], libtype='blender', priority=5 ) +env.BlenderLib ( 'bf_yafray', sources, Split(incs), [], libtype=['blender','player'], priority=[5, 190] ) diff --git a/source/gameengine/BlenderRoutines/SConscript b/source/gameengine/BlenderRoutines/SConscript index 8db4513f841..984b700abd6 100755 --- a/source/gameengine/BlenderRoutines/SConscript +++ b/source/gameengine/BlenderRoutines/SConscript @@ -1,5 +1,4 @@ #!/usr/bin/python -import sys Import ('env') sources = env.Glob('*.cpp') @@ -22,8 +21,8 @@ incs += ' ' + env['BF_SOLID_INC'] incs += ' ' + env['BF_BULLET_INC'] incs += ' ' + env['BF_OPENGL_INC'] -# TODO: -#if sys.platform=='win32': -# kx_blenderhook_env.Append (CXXFLAGS = ['/GR']) +cxxflags = [] +if env['OURPLATFORM']=='win32-vc': + cxxflags.append ('/GR') -env.BlenderLib ( 'KX_blenderhook', sources, Split(incs), [], libtype=['game', 'game2'], priority=[0, 0] ) +env.BlenderLib ( 'bf_bloutines', sources, Split(incs), [], libtype=['game', 'game2', 'player'], priority=[0, 0, 55] , compileflags=cxxflags) diff --git a/source/gameengine/Converter/SConscript b/source/gameengine/Converter/SConscript index 82a059ea050..f5e382b471e 100755 --- a/source/gameengine/Converter/SConscript +++ b/source/gameengine/Converter/SConscript @@ -22,4 +22,4 @@ incs += ' ' + env['BF_PYTHON_INC'] incs += ' ' + env['BF_SOLID_INC'] incs += ' ' + env['BF_BULLET_INC'] -env.BlenderLib ( 'KX_converter', sources, Split(incs), [], libtype='game', priority=5 ) +env.BlenderLib ( 'bf_converter', sources, Split(incs), [], libtype=['game','player'], priority=[5,70] ) diff --git a/source/gameengine/Expressions/SConscript b/source/gameengine/Expressions/SConscript index 2fd3bf6fe75..809ac31371e 100755 --- a/source/gameengine/Expressions/SConscript +++ b/source/gameengine/Expressions/SConscript @@ -6,4 +6,4 @@ sources = env.Glob('*.cpp') incs ='. #source/kernel/gen_system #intern/string #intern/moto/include' incs += ' ' + env['BF_PYTHON_INC'] -env.BlenderLib ( 'blender_expressions', sources, Split(incs), [], libtype='game', priority = 45 ) +env.BlenderLib ( 'bf_expressions', sources, Split(incs), [], libtype=['game','player'], priority = [45,125] ) diff --git a/source/gameengine/GameLogic/SConscript b/source/gameengine/GameLogic/SConscript index 126c84eecb2..7a2c3d91e72 100755 --- a/source/gameengine/GameLogic/SConscript +++ b/source/gameengine/GameLogic/SConscript @@ -9,4 +9,4 @@ incs += ' #/source/gameengine/Expressions #/intern/moto/include' incs += ' ' + env['BF_PYTHON_INC'] incs += ' ' + env['BF_SDL_INC'] -env.BlenderLib ( 'SCA_GameLogic', sources, Split(incs), [], libtype='game', priority=30 ) +env.BlenderLib ( 'bf_logic', sources, Split(incs), [], libtype=['game','player'], priority=[30, 110] ) diff --git a/source/gameengine/GamePlayer/common/SConscript b/source/gameengine/GamePlayer/common/SConscript index d229e8488a2..548d8e75288 100644 --- a/source/gameengine/GamePlayer/common/SConscript +++ b/source/gameengine/GamePlayer/common/SConscript @@ -69,4 +69,4 @@ cflags=[] if sys.platform=='win32': cflags = ['/GR'] -env.BlenderLib (libname='GPC_common', sources=source_files, includes=incs, defines = [], libtype=['player'], priority=[5], compileflags=cflags) +env.BlenderLib (libname='gp_common', sources=source_files, includes=incs, defines = [], libtype='player', priority=5, compileflags=cflags) diff --git a/source/gameengine/GamePlayer/ghost/SConscript b/source/gameengine/GamePlayer/ghost/SConscript index 0d56a02a4a3..dd7beced816 100644 --- a/source/gameengine/GamePlayer/ghost/SConscript +++ b/source/gameengine/GamePlayer/ghost/SConscript @@ -46,4 +46,4 @@ cflags = [] if sys.platform=='win32': cflags = ['/GR'] -env.BlenderLib (libname='GPG_ghost', sources=source_files, includes = incs, defines = [], libtype='player',priority=0, compileflags=cflags) +env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = [], libtype='player',priority=0, compileflags=cflags) diff --git a/source/gameengine/Ketsji/KXNetwork/SConscript b/source/gameengine/Ketsji/KXNetwork/SConscript index 7c0f3f1ab28..2297b96c19e 100755 --- a/source/gameengine/Ketsji/KXNetwork/SConscript +++ b/source/gameengine/Ketsji/KXNetwork/SConscript @@ -9,4 +9,4 @@ incs += ' #source/gameengine/Network' incs += ' ' + env['BF_PYTHON_INC'] -env.BlenderLib ( 'KX_network', Split(sources), Split(incs), defines=[],libtype='game2', priority=5 ) +env.BlenderLib ( 'kx_network', Split(sources), Split(incs), defines=[],libtype=['game2', 'player'], priority=[5, 155] ) diff --git a/source/gameengine/Ketsji/SConscript b/source/gameengine/Ketsji/SConscript index 375f2679e21..8cd4179bf49 100644 --- a/source/gameengine/Ketsji/SConscript +++ b/source/gameengine/Ketsji/SConscript @@ -20,14 +20,14 @@ incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/includ incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork' incs += ' #source/blender/misc #source/blender/blenloader' -#TODO: -#if sys.platform == 'win32': -# ketsji_env.Append (CXXFLAGS = ['/GR']) -# ketsji_env.Append ( CCFLAGS =['/Ox']) +cflags = [] +if env['OURPLATFORM'] == 'win32-vc': + cflags.append('/GR') + cflags.append('/Ox') incs += ' ' + env['BF_SOLID_INC'] incs += ' ' + env['BF_PYTHON_INC'] incs += ' ' + env['BF_SDL_INC'] incs += ' ' + env['BF_BULLET_INC'] -env.BlenderLib ( 'KX_ketsji', sources, Split(incs), [], libtype='game', priority=25 ) +env.BlenderLib ( 'bf_ketsji', sources, Split(incs), [], libtype=['game','player'], priority=[25, 72], compileflags = cflags ) diff --git a/source/gameengine/Network/LoopBackNetwork/SConscript b/source/gameengine/Network/LoopBackNetwork/SConscript index 292abc8e7a9..987603f1a49 100755 --- a/source/gameengine/Network/LoopBackNetwork/SConscript +++ b/source/gameengine/Network/LoopBackNetwork/SConscript @@ -5,4 +5,4 @@ sources = 'NG_LoopBackNetworkDeviceInterface.cpp' incs = '. #source/kernel/gen_system #intern/string #source/gameengine/Network' -env.BlenderLib ( 'NG_loopbacknetwork', Split(sources), Split(incs), defines=[],libtype='game2', priority=25 ) +env.BlenderLib ( 'bf_loopbacknetwork', Split(sources), Split(incs), defines=[],libtype=['game2', 'player'], priority=[25, 165] ) diff --git a/source/gameengine/Network/SConscript b/source/gameengine/Network/SConscript index 998e6f36af3..0778418045f 100755 --- a/source/gameengine/Network/SConscript +++ b/source/gameengine/Network/SConscript @@ -5,4 +5,4 @@ sources = env.Glob('*.cpp') #'NG_NetworkMessage.cpp NG_NetworkObject.cpp NG_Netw incs = '. #source/kernel/gen_system #intern/string #intern/moto/include' -env.BlenderLib ( 'NG_network', sources, Split(incs), [], libtype='game2', priority=15 ) +env.BlenderLib ( 'bf_ngnetwork', sources, Split(incs), [], libtype=['game2', 'player'], priority=[15, 160] ) diff --git a/source/gameengine/Physics/Bullet/SConscript b/source/gameengine/Physics/Bullet/SConscript index b9d7bed8880..dd6eab0f018 100644 --- a/source/gameengine/Physics/Bullet/SConscript +++ b/source/gameengine/Physics/Bullet/SConscript @@ -1,5 +1,4 @@ #!/usr/bin/python -import sys Import ('env') sources = 'CcdPhysicsEnvironment.cpp CcdPhysicsController.cpp' @@ -8,9 +7,9 @@ incs = '. ../common' incs += ' ' + env['BF_BULLET_INC'] -#TODO: -#if sys.platform=='win32': -# phy_bullet_env.Append (CXXFLAGS = ['/GR']) -# phy_bullet_env.Append (CCFLAGS =['/O2']) +cflags = [] +if env['OURPLATFORM']=='win32-vc': + cflags.append('/GR') + cflags.append('/O2') -env.BlenderLib ( 'PHY_Bullet', Split(sources), Split(incs), [], libtype='game', priority=15 ) +env.BlenderLib ( 'bf_bullet', Split(sources), Split(incs), [], libtype=['game','player'], priority=[15,90] ) diff --git a/source/gameengine/Physics/Dummy/SConscript b/source/gameengine/Physics/Dummy/SConscript index 781e88e456f..e24b150531f 100755 --- a/source/gameengine/Physics/Dummy/SConscript +++ b/source/gameengine/Physics/Dummy/SConscript @@ -5,4 +5,4 @@ sources = 'DummyPhysicsEnvironment.cpp' incs = '. ../common' -env.BlenderLib ( 'PHY_Dummy', Split(sources), Split(incs), [], libtype='game', priority=10 ) +env.BlenderLib ( 'bf_dummy', Split(sources), Split(incs), [], libtype=['game','player'], priority=[10,100] ) diff --git a/source/gameengine/Physics/Sumo/SConscript b/source/gameengine/Physics/Sumo/SConscript index 7407aec469d..be7922efd44 100755 --- a/source/gameengine/Physics/Sumo/SConscript +++ b/source/gameengine/Physics/Sumo/SConscript @@ -18,9 +18,9 @@ incs =['.', ] incs += [sumoenv['BF_SOLID_INC']] -if sumoenv['PLATFORM']=='win32': - sumoenv.Append (CXXFLAGS = ['/GR']) - sumoenv.Append ( CCFLAGS =['/O1']) +cflags = [] +if env['OURPLATFORM']=='win32-vc': + cflags.append('/GR') + cflags.append('/O1') -#env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/PHY_Sumo', source=source_files) -env.BlenderLib ( 'PHY_Sumo', sources, incs, [], libtype='game2', priority=30 ) +env.BlenderLib ( 'bf_sumo', sources, incs, [], libtype=['game2','player'], priority=[30, 70] , compileflags=cflags) diff --git a/source/gameengine/Physics/common/SConscript b/source/gameengine/Physics/common/SConscript index b6cb78742ab..3e018179f4c 100755 --- a/source/gameengine/Physics/common/SConscript +++ b/source/gameengine/Physics/common/SConscript @@ -5,4 +5,4 @@ sources = 'PHY_IMotionState.cpp PHY_IPhysicsController.cpp PHY_IPhysicsEnvironme incs = '. ../Dummy #intern/moto/include' -env.BlenderLib ( 'PHY_Physics', Split(sources), Split(incs), [], libtype=['game', 'game2'], priority=[20, 35] ) +env.BlenderLib ( 'bf_common', Split(sources), Split(incs), [], libtype=['game', 'game2','player'], priority=[20, 35, 95] ) diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/SConscript b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/SConscript index 56183c88946..580897f307c 100755 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/SConscript +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/SConscript @@ -6,4 +6,4 @@ sources = env.Glob('*.cpp') #'RAS_GLExtensionManager.cpp RAS_OpenGLRasterizer.cp incs = '. #source/kernel/gen_system #intern/string #intern/moto/include #source/gameengine/Rasterizer' incs += ' ' + env['BF_OPENGL_INC'] -env.BlenderLib ( 'RAS_OpenGLRasterizer', Split(sources), Split(incs), [], libtype='game', priority=40 ) +env.BlenderLib ( 'bf_oglrasterizer', Split(sources), Split(incs), [], libtype=['game','player'], priority=[40, 120] ) diff --git a/source/gameengine/Rasterizer/SConscript b/source/gameengine/Rasterizer/SConscript index 1b833c8d7ee..3af763ffbf2 100755 --- a/source/gameengine/Rasterizer/SConscript +++ b/source/gameengine/Rasterizer/SConscript @@ -1,13 +1,12 @@ #!/usr/bin/python -import sys Import ('env') sources = env.Glob('*.cpp') incs = '. #source/kernel/gen_system #intern/string #intern/moto/include' -#TODO: -#if sys.platform=='win32': -# ras_rasterizer_env.Append ( CCFLAGS =['/Ox']) +cflags = [] +if env['OURPLATFORM']=='win32-vc': + cflags.append('/Ox') -env.BlenderLib ( 'RAS_rasterizer', sources, Split(incs), [], libtype='game', priority=35 ) +env.BlenderLib ( 'bf_rasterizer', sources, Split(incs), [], libtype=['game','player'], priority=[35,115], compileflags = cflags ) diff --git a/source/gameengine/SceneGraph/SConscript b/source/gameengine/SceneGraph/SConscript index d34f41eb2af..23c1c24c297 100755 --- a/source/gameengine/SceneGraph/SConscript +++ b/source/gameengine/SceneGraph/SConscript @@ -6,4 +6,4 @@ sources = env.Glob('*.cpp') #'SG_BBox.cpp SG_Controller.cpp SG_IObject.cpp SG_No incs = '. #intern/moto/include' -env.BlenderLib ( 'SG_SceneGraph', sources, Split(incs), [], libtype='game', priority=50 ) +env.BlenderLib ( 'bf_scenegraph', sources, Split(incs), [], libtype=['game','player'], priority=[50,130] ) diff --git a/source/kernel/SConscript b/source/kernel/SConscript index 373f50f1232..9e678c041dc 100644 --- a/source/kernel/SConscript +++ b/source/kernel/SConscript @@ -7,4 +7,4 @@ sources += ' gen_system/SYS_System.cpp' incs = 'gen_messaging gen_system #/intern/string #/intern/moto/include' -env.BlenderLib ( 'blender_kernel', Split(sources), Split(incs), [], libtype = ['common','game2'], priority = [15, 10] ) +env.BlenderLib ( 'bf_kernel', Split(sources), Split(incs), [], libtype = ['common','game2', 'player'], priority = [15, 10, 150] )