diff --git a/SConstruct b/SConstruct index a271dc7..ac63a79 100644 --- a/SConstruct +++ b/SConstruct @@ -9,7 +9,7 @@ opts = Variables(customs, ARGUMENTS) env = DefaultEnvironment() # Define our parameters -opts.Add(EnumVariable('target', "Compilation target", 'release', ['d', 'debug', 'r', 'release'])) +opts.Add(EnumVariable('target', "Compilation target", 'release', ['d', 'debug', 'r', 'release', 'release_debug'])) opts.Add(EnumVariable('platform', "Compilation platform", 'windows', ['windows', 'x11', 'linux', 'osx'])) opts.AddVariables( PathVariable('openvr_path', 'The path where the OpenVR repo is located.', 'openvr/'), @@ -53,6 +53,9 @@ if env['platform'] == 'windows': if env['target'] in ('debug', 'd'): env.Append(CCFLAGS = ['-EHsc', '-D_DEBUG', '-MDd', '-Zi', '-FS']) env.Append(LINKFLAGS = ['-DEBUG:FULL']) + elif env['target'] in ('release_debug',): + env.Append(CCFLAGS = ['-O2', '-EHsc', '-DNDEBUG', '-MD', '-Zi', '-FS']) + env.Append(LINKFLAGS = ['-DEBUG:FULL']) else: env.Append(CCFLAGS = ['-O2', '-EHsc', '-DNDEBUG', '-MD']) # untested