13
0

define PROGRAM_NAME in waf conf/bld objects, to allow program-dependent stuff at the wscript level

This commit is contained in:
Paul Davis 2015-05-06 07:30:23 -04:00
parent ef59fbffa1
commit 9632600819

View File

@ -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)