Переглянути джерело

Merge pull request #1597 from UsernameIsAReservedWord/add_scons_custom_extra_suffix

add scons extra suffix option
Juan Linietsky 10 роки тому
батько
коміт
8f07919a5f
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      SConstruct

+ 4 - 0
SConstruct

@@ -121,6 +121,7 @@ opts.Add("LINKFLAGS", "Custom flags for the linker");
 opts.Add('disable_3d', 'Disable 3D nodes for smaller executable (yes/no)', "no")
 opts.Add('disable_3d', 'Disable 3D nodes for smaller executable (yes/no)', "no")
 opts.Add('disable_advanced_gui', 'Disable advance 3D gui nodes and behaviors (yes/no)', "no")
 opts.Add('disable_advanced_gui', 'Disable advance 3D gui nodes and behaviors (yes/no)', "no")
 opts.Add('colored', 'Enable colored output for the compilation (yes/no)', 'no')
 opts.Add('colored', 'Enable colored output for the compilation (yes/no)', 'no')
+opts.Add('extra_suffix', 'Custom extra suffix added to the base filename of all generated binary files.', '')
 
 
 # add platform specific options
 # add platform specific options
 
 
@@ -176,6 +177,9 @@ if selected_platform in platform_list:
 		env = env_base.Clone()
 		env = env_base.Clone()
 
 
 	env.extra_suffix=""
 	env.extra_suffix=""
+	
+	if env["extra_suffix"] != '' :
+		env.extra_suffix += '.'+env["extra_suffix"]
 
 
 	CCFLAGS = env.get('CCFLAGS', '')
 	CCFLAGS = env.get('CCFLAGS', '')
 	env['CCFLAGS'] = ''
 	env['CCFLAGS'] = ''