Changeset 410
- Timestamp:
- 10/20/11 23:33:19 (7 months ago)
- Location:
- cafu/trunk
- Files:
-
- 11 modified
-
ExtLibs/freealut/SConscript (modified) (1 diff)
-
ExtLibs/libogg/SConscript (modified) (1 diff)
-
ExtLibs/libvorbis/SConscript (modified) (1 diff)
-
ExtLibs/mpg123/src/libmpg123/SConscript (modified) (1 diff)
-
ExtLibs/mpg123/src/libmpg123/debug.h (modified) (1 diff)
-
ExtLibs/openal-soft/SConscript (modified) (1 diff)
-
LICENSE.txt (modified) (2 diffs)
-
Libs/Models/Loader.cpp (modified) (1 diff)
-
Libs/SConscript (modified) (1 diff)
-
SConscript (modified) (2 diffs)
-
SConstruct (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/ExtLibs/freealut/SConscript
r138 r410 20 20 env_freealut.Append(CPPPATH=['include', '#/ExtLibs/openal-soft/include']) 21 21 22 env_freealut.SharedLibrary( 22 # This library will be linked to a .so, thus we have to compile with -fpic. 23 env_freealut.Append(CCFLAGS=["-fpic"]) 24 25 26 env_freealut.StaticLibrary( 23 27 target="alut", 24 28 source=Split("""src/alutBufferData.c src/alutCodec.c src/alutError.c src/alutInit.c src/alutInputStream.c -
cafu/trunk/ExtLibs/libogg/SConscript
r33 r410 6 6 env_ogg=env.Clone() 7 7 8 if sys.platform=="linux2": 9 # This library will be linked to a .so, thus we have to compile with -fpic. 10 env_ogg.Append(CCFLAGS=["-fpic"]) 11 12 8 13 env_ogg.StaticLibrary("ogg", Split("src/bitwise.c src/framing.c"), CPPPATH="include") -
cafu/trunk/ExtLibs/libvorbis/SConscript
r33 r410 6 6 env_vorbis=env.Clone() 7 7 env_vorbis.Append(CPPPATH=["include", "lib", "#/ExtLibs/libogg/include"]) 8 9 if sys.platform=="linux2": 10 # These libraries will be linked to a .so, thus we have to compile with -fpic. 11 env_vorbis.Append(CCFLAGS=["-fpic"]) 8 12 9 13 -
cafu/trunk/ExtLibs/mpg123/src/libmpg123/SConscript
r33 r410 8 8 env_mpg123.Append(CPPDEFINES=["OPT_GENERIC"]) 9 9 10 if sys.platform=="win32": 11 env_mpg123.Append(CPPDEFINES=["BUILD_MPG123_DLL"]) 10 if sys.platform=="linux2": 11 # This library will be linked to a .so, thus we have to compile with -fpic. 12 env_mpg123.Append(CCFLAGS=["-fpic"]) 12 13 13 env_mpg123.SharedLibrary("mpg123", 14 15 env_mpg123.StaticLibrary("mpg123", 14 16 Split("""compat.c dct64.c equalizer.c format.c frame.c icy.c icy2utf8.c 15 17 id3.c index.c layer1.c layer2.c layer3.c libmpg123.c ntom.c optimize.c -
cafu/trunk/ExtLibs/mpg123/src/libmpg123/debug.h
r7 r410 23 23 */ 24 24 25 #ifdef DEBUG25 #ifdef PRINT_DEBUG 26 26 #include <stdio.h> 27 27 #define debug(s) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__) -
cafu/trunk/ExtLibs/openal-soft/SConscript
r33 r410 12 12 envOpenALSoft.Append(CCFLAGS=['-fno-strict-aliasing']) # '-fvisibility=hidden' 13 13 14 if sys.platform=="linux2": 15 # This library will be linked to a .so, thus we have to compile with -fpic. 16 envOpenALSoft.Append(CCFLAGS=["-fpic"]) 14 17 15 envOpenALSoft.SharedLibrary("openal", Glob("OpenAL32/*.c") + AlcObjs, 18 19 envOpenALSoft.StaticLibrary("openal", Glob("OpenAL32/*.c") + AlcObjs, 16 20 CPPPATH=[".", "include", "OpenAL32/Include"]); -
cafu/trunk/LICENSE.txt
r189 r410 28 28 Cafu is a collection of software components, consisting of executables, 29 29 tools, libraries, source-code and scripts. 30 Cafu is copyright (c) 2002-201 0Carsten Fuchs Software.30 Cafu is copyright (c) 2002-2012 Carsten Fuchs Software. 31 31 32 32 Cafu is free software: you can redistribute it and/or modify it under … … 149 149 are compatible with both cases. 150 150 151 When your product is under the GPL (which i smust when you obtained Cafu151 When your product is under the GPL (which it must when you obtained Cafu 152 152 under the GPL), your honoring of the terms of the GPL will cover the 153 153 requirements of the external libraries automatically, as the -
cafu/trunk/Libs/Models/Loader.cpp
r408 r410 149 149 Mat.PolygonMode =MaterialT::Wireframe; 150 150 // Mat.DepthOffset =-1.0f; 151 Mat.DiffMapComp =MapCompositionT("file-not-found", ". ");151 Mat.DiffMapComp =MapCompositionT("file-not-found", "./"); 152 152 // Mat.RedGen =ExpressionT(1.0f); 153 153 // Mat.UseMeshColors =true; // Mesh colors aren't used for rendering models, but unfortunately required for rendering wire-frame without diffuse-map texture image. -
cafu/trunk/Libs/SConscript
r409 r410 239 239 elif sys.platform=="linux2": 240 240 envSoundSys.Append(CPPPATH=['#/ExtLibs/openal-soft/include']) 241 envSoundSys.Append(LIBS=Split("openal alut mpg123 vorbisfile vorbis ogg")) 241 242 envSoundSys.Append(LINKFLAGS=["Libs/SoundSystem/Common/linker-script"]) 242 243 -
cafu/trunk/SConscript
r409 r410 127 127 # Note that this (using --whole-archive) is actually the proper strategy under Linux (vs. Windows), because this is *the* way 128 128 # in order to make sure that the -fPIC can be handled correctly - otherwise we had to link .so libs with non-fPIC object files... 129 envCafu.Append(LINKCOM=" -Wl,--whole-archive -lcfsLib -lbulletdynamics -lbulletcollision -lbulletmath - lopenal -lalut -lmpg123 -logg -lvorbis -lvorbisfile -Wl,--no-whole-archive -llua -llightwave -lminizip -lcfs_jpeg -lpng -lz")129 envCafu.Append(LINKCOM=" -Wl,--whole-archive -lcfsLib -lbulletdynamics -lbulletcollision -lbulletmath -Wl,--no-whole-archive -llua -llightwave -lminizip -lcfs_jpeg -lpng -lz") 130 130 131 131 WinResource = [] … … 141 141 if sys.platform=="linux2": 142 142 # This is a work-around for the fact that SCons doesn't automatically add dependencies for the libraries mentioned in LINKCOM. 143 for LibName in Split("""cfsLib bulletdynamics bulletcollision bulletmath openal alut mpg123 ogg vorbis vorbisfile143 for LibName in Split("""cfsLib bulletdynamics bulletcollision bulletmath 144 144 lua lightwave minizip cfs_jpeg"""): # png and z are not in the list, because we use the system libraries. 145 145 LibFile = envCafu.FindFile("lib" + LibName + ".so", envCafu['LIBPATH']) -
cafu/trunk/SConstruct
r339 r410 321 321 envRelease.Install(".", ["#/ExtLibs/openal-win/libs/Win64/OpenAL32.dll", "#/ExtLibs/openal-win/libs/Win64/wrap_oal.dll"]); 322 322 323 if "r" in BVs:324 envRelease.Install(".", ["#/ExtLibs/freealut/"+my_build_dir_rel+"/alut.dll"]);325 envRelease.Install(".", ["#/ExtLibs/mpg123/"+my_build_dir_rel+"/mpg123.dll"]);326 327 else:328 envRelease.Install(".", ["#/ExtLibs/freealut/"+my_build_dir_dbg+"/alut.dll"]);329 envRelease.Install(".", ["#/ExtLibs/mpg123/"+my_build_dir_dbg+"/mpg123.dll"]);330 331 323 elif sys.platform=="linux2": 332 324 if platform.machine()!="x86_64": … … 336 328 envRelease.Install(".", ["#/ExtLibs/Cg/lib.x64/libCg.so", "#/ExtLibs/Cg/lib.x64/libCgGL.so"]); 337 329 338 if "r" in BVs:339 envRelease.Install(".", ["#/ExtLibs/freealut/"+my_build_dir_rel+"/libalut.so"]);340 envRelease.Install(".", ["#/ExtLibs/mpg123/"+my_build_dir_rel+"/libmpg123.so"]);341 envRelease.Install(".", ["#/ExtLibs/openal-soft/"+my_build_dir_rel+"/libopenal.so"]);342 343 else:344 envRelease.Install(".", ["#/ExtLibs/freealut/"+my_build_dir_dbg+"/libalut.so"]);345 envRelease.Install(".", ["#/ExtLibs/mpg123/"+my_build_dir_dbg+"/libmpg123.so"]);346 envRelease.Install(".", ["#/ExtLibs/openal-soft/"+my_build_dir_dbg+"/libopenal.so"]);347 348 330 349 331 ############################################
