diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-04-07 20:12:58 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-04-07 20:12:58 -0300 |
commit | 8f07919a5f7f8d270182d33372c547e3c1d62b30 (patch) | |
tree | 2a1eb0be3c7d523ff7a1219586026c564d11520f | |
parent | 9c1fef866f102c14842e2589a81290fd32186fa1 (diff) | |
parent | 7ea3482c38a1d18af687aa6a08d7dea9f346a2e9 (diff) |
Merge pull request #1597 from UsernameIsAReservedWord/add_scons_custom_extra_suffix
add scons extra suffix option
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 2dc9fa1e70..922dc64fe3 100644 --- a/SConstruct +++ b/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_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('extra_suffix', 'Custom extra suffix added to the base filename of all generated binary files.', '') # add platform specific options @@ -176,6 +177,9 @@ if selected_platform in platform_list: env = env_base.Clone() env.extra_suffix="" + + if env["extra_suffix"] != '' : + env.extra_suffix += '.'+env["extra_suffix"] CCFLAGS = env.get('CCFLAGS', '') env['CCFLAGS'] = '' |