Changeset 151
- Timestamp:
- 09/06/10 14:51:15 (17 months ago)
- Location:
- cafu/trunk
- Files:
-
- 4 modified
-
Ca3DE/AppCafu.cpp (modified) (2 diffs)
-
Libs/ConsoleCommands/Console.cpp (modified) (1 diff)
-
SConscript (modified) (5 diffs)
-
SConstruct (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/Ca3DE/AppCafu.cpp
r149 r151 29 29 #include "ConsoleCommands/ConsoleComposite.hpp" 30 30 #include "ConsoleCommands/ConsoleFile.hpp" 31 #include "ConsoleCommands/ConsoleStdout.hpp" 31 32 #include "ConsoleCommands/ConsoleStringBuffer.hpp" 32 33 #include "ConsoleCommands/ConVar.hpp" … … 172 173 { 173 174 s_CompositeConsole.Attach(m_ConBuffer); 175 176 #ifdef __WXGTK__ 177 { 178 static cf::ConsoleStdoutT s_ConStdout; 179 s_CompositeConsole.Attach(&s_ConStdout); 180 } 181 #endif 174 182 175 183 // All global convars and confuncs have registered themselves in linked lists. -
cafu/trunk/Libs/ConsoleCommands/Console.cpp
r149 r151 23 23 24 24 #include "Console.hpp" 25 #include <stdio.h> 25 26 #include <stdarg.h> 26 27 -
cafu/trunk/SConscript
r150 r151 101 101 envCafu.Append(LIBS=Split("lightwave")) # For the GuiSys::ModelWindowT class. 102 102 103 WinResource = envCafu.RES("Ca3DE/Cafu.rc") # + envCafu.RES("Ca3DE/Dialog1.rc")103 WinResource = envCafu.RES("Ca3DE/Cafu.rc") 104 104 105 105 elif sys.platform=="linux2": … … 107 107 # -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. 108 108 envCafu.Append(LINKFLAGS=['-Wl,-rpath,.', '-Wl,--export-dynamic']) 109 envCafu.Append(LIBS=Split("MatSys SoundSys SceneGraph cfsLib cfs_png cfs_jpeg bulletdynamics bulletcollision bulletmath openal alut mpg123 ogg vorbis vorbisfile minizip z lua lightwave ClipSys GuiSysNullEditor"))109 envCafu.Append(LIBS=Split("MatSys SoundSys SceneGraph ClipSys cfs_png")) 110 110 111 111 # We need GLU for e.g. gluBuild2DMipmaps() in the renderers. … … 124 124 # See my post "Having the GNU linker *not* remove unused symbols..." to the gnu.g++.help newsgroup on 2006-04-07, 125 125 # and the replies by Maett and Paul Pluzhnikov. 126 # Implementing this by appending to LINKCOM and using --allow-multiple-definitionis a SCons-specific hack though,126 # Implementing this by appending to LINKCOM is a SCons-specific hack though, 127 127 # because SCons currently does not support such kind of "wrapping". See my post to the scons-users mailing list on 2006-04-09 128 128 # at http://scons.tigris.org/servlets/BrowseList?list=users&by=thread&from=455553. … … 131 131 # Note that this (using --whole-archive) is actually the proper strategy under Linux (vs. Windows), because this is *the* way 132 132 # in order to make sure that the -fPIC can be handled correctly - otherwise we had to link .so libs with non-fPIC object files... 133 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")133 envCafu.Append(LINKCOM=" -Wl,--whole-archive -lcfsLib -lbulletdynamics -lbulletcollision -lbulletmath -lopenal -lalut -lmpg123 -logg -lvorbis -lvorbisfile -Wl,--no-whole-archive -lGuiSysNullEditor -llua -llightwave -lminizip -lz -lcfs_jpeg") 134 134 135 135 WinResource = [] … … 139 139 Ca3DE/Server/Server.cpp Ca3DE/Server/ServerWorld.cpp Ca3DE/Server/ClientInfo.cpp""")) 140 140 141 envCafu.Program('Ca3DE/Cafu',141 appCafu = envCafu.Program('Ca3DE/Cafu', 142 142 EngineCommonAndServerObjs + CommonWorldObject + ["Common/WorldMan.cpp"] + WinResource + 143 143 Glob("Ca3DE/Client/*.cpp")) 144 145 if sys.platform=="linux2": 146 # This is a work-around for the fact that SCons doesn't automatically add dependencies for the libraries mentioned in LINKCOM. 147 for LibName in Split("cfsLib bulletdynamics bulletcollision bulletmath openal alut mpg123 ogg vorbis vorbisfile GuiSysNullEditor lua lightwave minizip z cfs_jpeg"): 148 LibFile = envCafu.FindFile("lib" + LibName + ".so", envCafu['LIBPATH']) 149 if LibFile==None: 150 LibFile = envCafu.FindFile("lib" + LibName + ".a", envCafu['LIBPATH']) 151 # print "appCafu depends on: ", LibFile 152 envCafu.Depends(appCafu, LibFile) 144 153 145 154 -
cafu/trunk/SConstruct
r150 r151 1 import os, shutil, sys1 import os, platform, shutil, sys 2 2 3 3 … … 282 282 283 283 elif sys.platform=="linux2": 284 envRelease.Install(".", ["#/ExtLibs/Cg/lib/libCg.so", "#/ExtLibs/Cg/lib/libCgGL.so"]); 285 envRelease.Install(".", ["#/ExtLibs/fmod/api/libfmod-3.75.so"]); 284 if platform.machine()!="x86_64": 285 envRelease.Install(".", ["#/ExtLibs/Cg/lib/libCg.so", "#/ExtLibs/Cg/lib/libCgGL.so"]); 286 envRelease.Install(".", ["#/ExtLibs/fmod/api/libfmod-3.75.so"]); 287 else: 288 envRelease.Install(".", ["#/ExtLibs/Cg/lib.x64/libCg.so", "#/ExtLibs/Cg/lib.x64/libCgGL.so"]); 286 289 287 290 if "r" in BVs:
