Changeset 119 for cafu/branches/cafu_to_wx/SConscript
- Timestamp:
- 08/16/10 21:15:24 (21 months ago)
- Files:
-
- 1 modified
-
cafu/branches/cafu_to_wx/SConscript (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cafu/branches/cafu_to_wx/SConscript
r116 r119 51 51 + Split("gdi32 glu32 opengl32 user32") + ['cfsOpenGL', 'dinput', 'dxguid']) 52 52 elif sys.platform=="linux2": 53 # envTools.Append(LINKFLAGS = ['-Wl,--export-dynamic'])# Not needed any more, .so libs now link to the required .a libs directly, just as under Windows.53 # envTools.Append(LINKFLAGS=['-Wl,--export-dynamic']) # Not needed any more, .so libs now link to the required .a libs directly, just as under Windows. 54 54 # GLU is needed for the TerrainViewerOld *and* for e.g. gluBuild2DMipmaps() in the renderers... 55 55 envTools.Append(CPPPATH=['/usr/include/freetype2']) # As of 2009-09-10, this line is to become unnecessary in the future, see /usr/include/ftbuild.h for details. … … 82 82 wxPath="#/ExtLibs/wxWidgets"; 83 83 84 wxEnv.Append(CPPPATH = [wxPath+'/include']) 84 wxEnv.Append(CPPPATH=[wxPath+'/include']) 85 wxEnv.Append(LIBS=Split("advapi32 comctl32 comdlg32 gdi32 ole32 oleaut32 opengl32 rpcrt4 shell32 user32 winspool wsock32")) 85 86 86 87 # TODO: Move this into the SConstruct file (including the wx include path above). … … 96 97 LibPath += "_lib" 97 98 98 wxEnv.Append(LIBPATH =[wxPath+LibPath])99 wxEnv.Append(LIBPATH=[wxPath+LibPath]) 99 100 100 101 if buildMode=="dbg": 101 wxEnv.Append(CPPPATH =[wxPath+LibPath+"/mswud"])102 wxEnv.Append(LIBS =Split("wxbase29ud wxbase29ud_net wxjpegd wxmsw29ud_adv wxmsw29ud_core wxmsw29ud_gl wxmsw29ud_aui wxmsw29ud_propgrid wxregexud"))102 wxEnv.Append(CPPPATH=[wxPath+LibPath+"/mswud"]) 103 wxEnv.Append(LIBS=Split("wxbase29ud wxbase29ud_net wxjpegd wxmsw29ud_adv wxmsw29ud_core wxmsw29ud_gl wxmsw29ud_aui wxmsw29ud_propgrid wxregexud")) 103 104 else: 104 wxEnv.Append(CPPPATH =[wxPath+LibPath+"/mswu"])105 wxEnv.Append(LIBS =Split("wxbase29u wxbase29u_net wxjpeg wxmsw29u_adv wxmsw29u_core wxmsw29u_gl wxmsw29u_aui wxmsw29u_propgrid wxregexu"))105 wxEnv.Append(CPPPATH=[wxPath+LibPath+"/mswu"]) 106 wxEnv.Append(LIBS=Split("wxbase29u wxbase29u_net wxjpeg wxmsw29u_adv wxmsw29u_core wxmsw29u_gl wxmsw29u_aui wxmsw29u_propgrid wxregexu")) 106 107 107 108 elif sys.platform=="linux2": 108 109 # Geht es auch ohne die naechste Zeile? Woher weiss es, dass es freetype linken soll??? 109 wxEnv.Append(LIBS =Split("wx_gtk2u_gl-2.9 wx_gtk2u_aui-2.9 wx_gtk2u_propgrid-2.9 wx_gtk2u_xrc-2.9 wx_gtk2u_qa-2.9 wx_gtk2u_html-2.9 wx_gtk2u_adv-2.9 wx_gtk2u_core-2.9 wx_baseu_xml-2.9 wx_baseu_net-2.9 wx_baseu-2.9"))110 wxEnv.Append(LIBS=Split("wx_gtk2u_gl-2.9 wx_gtk2u_aui-2.9 wx_gtk2u_propgrid-2.9 wx_gtk2u_xrc-2.9 wx_gtk2u_qa-2.9 wx_gtk2u_html-2.9 wx_gtk2u_adv-2.9 wx_gtk2u_core-2.9 wx_baseu_xml-2.9 wx_baseu_net-2.9 wx_baseu-2.9")) 110 111 wxEnv.ParseConfig(Dir("#/ExtLibs/wxWidgets").abspath + "/build-gtk/wx-config --cxxflags --libs std,gl") 111 112 … … 117 118 if sys.platform=="win32": 118 119 envCafu.Append(LIBS=Split("SceneGraph MatSys SoundSys cfsLib cfsCoreLib cfs_png cfs_jpeg bulletcollision minizip z lua ClipSys GuiSysNullEditor")) 119 envCafu.Append(LIBS=Split("lightwave")) # For the GuiSys::ModelWindowT class. 120 envCafu.Append(LIBS=Split("advapi32 comctl32 comdlg32 gdi32 ole32 oleaut32 opengl32 rpcrt4 shell32 user32 winspool wsock32")) 120 envCafu.Append(LIBS=Split("lightwave")) # For the GuiSys::ModelWindowT class. 121 121 122 WinResource =envCafu.RES("Ca3DE/Cafu.rc")# + envCafu.RES("Ca3DE/Dialog1.rc")122 WinResource = envCafu.RES("Ca3DE/Cafu.rc") # + envCafu.RES("Ca3DE/Dialog1.rc") 123 123 124 124 elif sys.platform=="linux2": 125 125 # -Wl,-rpath,. is so that also the . directory is searched for dynamic libraries when they're opened. 126 126 # -Wl,--export-dynamic is so that the exe exports its symbols so that the MatSys, SoundSys and game .so libs can in turn resolve theirs. 127 envCafu.Append(LINKFLAGS =['-Wl,-rpath,.', '-Wl,--export-dynamic'])127 envCafu.Append(LINKFLAGS=['-Wl,-rpath,.', '-Wl,--export-dynamic']) 128 128 envCafu.Append(LIBS=Split("MatSys SoundSys SceneGraph cfsLib cfsCoreLib cfs_png cfs_jpeg bulletdynamics bulletcollision bulletmath openal alut mpg123 ogg vorbis vorbisfile minizip z lua lightwave ClipSys GuiSysNullEditor")) 129 129 … … 152 152 envCafu.Append(LINKCOM=" -Wl,--allow-multiple-definition -Wl,--whole-archive -lcfsLib -lbulletdynamics -lbulletcollision -lbulletmath -lopenal -lalut -lmpg123 -logg -lvorbis -lvorbisfile -Wl,--no-whole-archive -llightwave -lz") 153 153 154 WinResource =[]154 WinResource = [] 155 155 156 156 EngineCommonAndServerObjs = envCafu.StaticObject(Split("""Ca3DE/AppCafu.cpp Ca3DE/MainCanvas.cpp Ca3DE/MainFrame.cpp Ca3DE/ConDefs.cpp … … 166 166 envCaWE = wxEnv.Clone() 167 167 envCaWE.Append(CPPPATH=['ExtLibs/lua/src', 'ExtLibs/noise/src']) 168 envCaWE.Append(LIBS =Split("SceneGraph MatSys cfsCoreLib cfsLib ClipSys cfs_png cfs_jpeg bulletcollision noise lua minizip lightwave z"))168 envCaWE.Append(LIBS=Split("SceneGraph MatSys cfsCoreLib cfsLib ClipSys cfs_png cfs_jpeg bulletcollision noise lua minizip lightwave z")) 169 169 170 170 if sys.platform=="win32": 171 171 envCaWE.Append(CPPPATH=['ExtLibs/freetype/include']) # Windows builds use our local copy, Linux builds (must) use the systems freetype library instead. 172 envCaWE.Append(LIBS = Split("freetype")) 173 envCaWE.Append(LIBS = Split("advapi32 comctl32 comdlg32 gdi32 ole32 oleaut32 opengl32 rpcrt4 shell32 user32 winspool wsock32")) 172 envCaWE.Append(LIBS=Split("freetype")) 174 173 175 WinResource =envCaWE.RES("CaWE/CaWE.rc")174 WinResource = envCaWE.RES("CaWE/CaWE.rc") 176 175 177 176 elif sys.platform=="linux2": 178 envCaWE.Append(CPPPATH=['/usr/include/freetype2']) # As of 2009-09-10, this line is to become unnecessary in the future, see /usr/include/ftbuild.h for details.179 envCaWE.Append(LINKFLAGS = ['-Wl,--export-dynamic'])# Need this so that the Renderer DLLs can have their unresolved symbols dynamically resolved at load time.177 envCaWE.Append(CPPPATH=['/usr/include/freetype2']) # As of 2009-09-10, this line is to become unnecessary in the future, see /usr/include/ftbuild.h for details. 178 envCaWE.Append(LINKFLAGS=['-Wl,--export-dynamic']) # Need this so that the Renderer DLLs can have their unresolved symbols dynamically resolved at load time. 180 179 181 WinResource =[]180 WinResource = [] 182 181 183 SourceFilesList =(Glob("CaWE/*.cpp")182 SourceFilesList = (Glob("CaWE/*.cpp") 184 183 +Glob("CaWE/FontWizard/*.cpp") 185 184 +Glob("CaWE/GuiEditor/*.cpp")+Glob("CaWE/GuiEditor/Commands/*.cpp")+Glob("CaWE/GuiEditor/EditorData/*.cpp")
