Show
Ignore:
Timestamp:
08/16/10 21:15:24 (21 months ago)
Author:
Carsten
Message:

Re-established most of the client functionality:

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/branches/cafu_to_wx/SConscript

    r116 r119  
    5151                       + Split("gdi32 glu32 opengl32 user32") + ['cfsOpenGL', 'dinput', 'dxguid']) 
    5252elif 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. 
    5454    # GLU is needed for the TerrainViewerOld *and* for e.g. gluBuild2DMipmaps() in the renderers... 
    5555    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. 
     
    8282    wxPath="#/ExtLibs/wxWidgets"; 
    8383 
    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")) 
    8586 
    8687    # TODO: Move this into the SConstruct file (including the wx include path above). 
     
    9697    LibPath += "_lib" 
    9798 
    98     wxEnv.Append(LIBPATH = [wxPath+LibPath]) 
     99    wxEnv.Append(LIBPATH=[wxPath+LibPath]) 
    99100 
    100101    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")) 
    103104    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")) 
    106107 
    107108elif sys.platform=="linux2": 
    108109    # 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")) 
    110111    wxEnv.ParseConfig(Dir("#/ExtLibs/wxWidgets").abspath + "/build-gtk/wx-config --cxxflags --libs std,gl") 
    111112 
     
    117118if sys.platform=="win32": 
    118119    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. 
    121121 
    122     WinResource=envCafu.RES("Ca3DE/Cafu.rc")    # + envCafu.RES("Ca3DE/Dialog1.rc") 
     122    WinResource = envCafu.RES("Ca3DE/Cafu.rc")  # + envCafu.RES("Ca3DE/Dialog1.rc") 
    123123 
    124124elif sys.platform=="linux2": 
    125125    # -Wl,-rpath,.           is so that also the . directory is searched for dynamic libraries when they're opened. 
    126126    # -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']) 
    128128    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")) 
    129129 
     
    152152    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") 
    153153 
    154     WinResource=[] 
     154    WinResource = [] 
    155155 
    156156EngineCommonAndServerObjs = envCafu.StaticObject(Split("""Ca3DE/AppCafu.cpp Ca3DE/MainCanvas.cpp Ca3DE/MainFrame.cpp Ca3DE/ConDefs.cpp 
     
    166166envCaWE = wxEnv.Clone() 
    167167envCaWE.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")) 
     168envCaWE.Append(LIBS=Split("SceneGraph MatSys cfsCoreLib cfsLib ClipSys cfs_png cfs_jpeg bulletcollision noise lua minizip lightwave z")) 
    169169 
    170170if sys.platform=="win32": 
    171171    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")) 
    174173 
    175     WinResource=envCaWE.RES("CaWE/CaWE.rc") 
     174    WinResource = envCaWE.RES("CaWE/CaWE.rc") 
    176175 
    177176elif 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. 
    180179 
    181     WinResource=[] 
     180    WinResource = [] 
    182181 
    183 SourceFilesList=(Glob("CaWE/*.cpp") 
     182SourceFilesList = (Glob("CaWE/*.cpp") 
    184183    +Glob("CaWE/FontWizard/*.cpp") 
    185184    +Glob("CaWE/GuiEditor/*.cpp")+Glob("CaWE/GuiEditor/Commands/*.cpp")+Glob("CaWE/GuiEditor/EditorData/*.cpp")