From 9632600819fd64ca0f4f8aab7be93ce308b553cf Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 6 May 2015 07:30:23 -0400 Subject: [PATCH] define PROGRAM_NAME in waf conf/bld objects, to allow program-dependent stuff at the wscript level --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 70678c321a..fe80117e2e 100644 --- a/wscript +++ b/wscript @@ -557,7 +557,8 @@ int main() { return 0; }''', compiler_flags.append ('-DPROGRAM_NAME="' + Options.options.program_name + '"') compiler_flags.append ('-DPROGRAM_VERSION="' + PROGRAM_VERSION + '"') - + conf.env['PROGRAM_NAME'] = Options.options.program_name + if opt.debug: conf.env.append_value('CFLAGS', debug_flags) conf.env.append_value('CXXFLAGS', debug_flags)