Juan Linietsky %!s(int64=11) %!d(string=hai) anos
pai
achega
51c55b237b
Modificáronse 11 ficheiros con 14 adicións e 13 borrados
  1. 2 0
      SConstruct
  2. 1 1
      core/SCsub
  3. 1 1
      drivers/SCsub
  4. 1 1
      main/SCsub
  5. 1 1
      modules/SCsub
  6. 3 1
      platform/windows/detect.py
  7. 1 4
      platform/x11/SCsub
  8. 1 1
      scene/SCsub
  9. 1 1
      script/SCsub
  10. 1 1
      servers/SCsub
  11. 1 1
      tools/SCsub

+ 2 - 0
SConstruct

@@ -173,6 +173,8 @@ for p in platform_list:
 	env.Append(CCFLAGS=string.split(str(CCFLAGS)))
 	detect.configure(env)
 	env['platform'] = p
+        if not env.has_key('platform_libsuffix'):
+                env['platform_libsuffix'] = env['LIBSUFFIX']
 	sys.path.remove("./platform/"+p)
 	sys.modules.pop('detect')
 

+ 1 - 1
core/SCsub

@@ -32,7 +32,7 @@ SConscript('math/SCsub');
 SConscript('io/SCsub');
 SConscript('bind/SCsub');
 
-lib = env.Library("core",env.core_sources)
+lib = env.Library("core",env.core_sources, LIBSUFFIX=env['platform_libsuffix'])
 
 env.Prepend(LIBS=[lib])
 

+ 1 - 1
drivers/SCsub

@@ -75,7 +75,7 @@ if len(list) > 0:
 
 drivers_base=[]
 env.add_source_files(drivers_base,"*.cpp")
-lib_list.insert(0, env.Library("drivers", drivers_base))
+lib_list.insert(0, env.Library("drivers", drivers_base, LIBSUFFIX=env['platform_libsuffix']))
 
 env.Prepend(LIBS=lib_list)
 

+ 1 - 1
main/SCsub

@@ -5,7 +5,7 @@ env.add_source_files(env.main_sources,"*.cpp")
 
 Export('env')
 
-lib = env.Library("main",env.main_sources)
+lib = env.Library("main",env.main_sources, LIBSUFFIX=env['platform_libsuffix'])
 
 env.Prepend(LIBS=[lib])
 

+ 1 - 1
modules/SCsub

@@ -17,7 +17,7 @@ for x in env.module_list:
 	env_modules.Append(CPPFLAGS=["-DMODULE_"+x.upper()+"_ENABLED"])
 	SConscript(x+"/SCsub")
 
-lib = env_modules.Library("modules",env.modules_sources)
+lib = env_modules.Library("modules",env.modules_sources, LIBSUFFIX=env['platform_libsuffix'])
 
 env.Prepend(LIBS=[lib])
 

+ 3 - 1
platform/windows/detect.py

@@ -66,7 +66,9 @@ def configure(env):
 	if (env["tools"]=="no"):
 		#no tools suffix
 		env['OBJSUFFIX'] = ".nt"+env['OBJSUFFIX']
-		env['LIBSUFFIX'] = ".nt"+env['LIBSUFFIX']
+		#env['LIBSUFFIX'] = ".nt"+env['LIBSUFFIX']
+		env['platform_libsuffix'] = ".nt"+env['LIBSUFFIX']
+
 
 
 	if (os.name=="nt" and os.getenv("VSINSTALLDIR")!=None):

+ 1 - 4
platform/x11/SCsub

@@ -7,7 +7,4 @@ common_x11=[\
 	"key_mapping_x11.cpp",\
 ]
 
-if env["target"]=="release":
-	env.Program('#bin/godot_rel',['godot_x11.cpp']+common_x11)
-else:
-	env.Program('#bin/godot',['godot_x11.cpp']+common_x11)
+env.Program('#bin/godot',['godot_x11.cpp']+common_x11)

+ 1 - 1
scene/SCsub

@@ -15,7 +15,7 @@ SConscript('resources/SCsub');
 SConscript('io/SCsub');
 
 
-lib = env.Library("scene",env.scene_sources)
+lib = env.Library("scene",env.scene_sources, LIBSUFFIX=env['platform_libsuffix'])
 
 env.Prepend(LIBS=[lib])
 

+ 1 - 1
script/SCsub

@@ -9,7 +9,7 @@ if (env["gdscript"]=="yes"):
 	SConscript('gdscript/SCsub');
 SConscript('multiscript/SCsub');
 
-lib = env.Library("script",env.script_sources)
+lib = env.Library("script",env.script_sources, LIBSUFFIX=env['platform_libsuffix'])
 
 env.Prepend(LIBS=[lib])
 

+ 1 - 1
servers/SCsub

@@ -12,7 +12,7 @@ SConscript('audio/SCsub');
 SConscript('spatial_sound/SCsub');
 SConscript('spatial_sound_2d/SCsub');
 
-lib = env.Library("servers",env.servers_sources)
+lib = env.Library("servers",env.servers_sources, LIBSUFFIX=env['platform_libsuffix'])
 
 env.Prepend(LIBS=[lib])
 

+ 1 - 1
tools/SCsub

@@ -12,7 +12,7 @@ SConscript('docdump/SCsub');
 SConscript('freetype/SCsub');
 SConscript('doc/SCsub');
 
-lib = env.Library("tool",env.tool_sources)
+lib = env.Library("tool",env.tool_sources, LIBSUFFIX=env['platform_libsuffix'])
 
 env.Prepend(LIBS=[lib])