You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
add scons extra suffix option
makes it possible to add a custom extra suffix to the base filename of all generated binary files. example : scons p=windows extra_suffix=yourBranchName or scons p=windows bits=32 extra_suffix=v20150401_1642 or scons p=windows extra_suffix=msvc2010_git20150401
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
@@ -177,6 +178,9 @@ if selected_platform in platform_list:
|
|||||||
|
|
||||||
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'] = ''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user