define PROGRAM_NAME in waf conf/bld objects, to allow program-dependent stuff at the wscript level
This commit is contained in:
parent
ef59fbffa1
commit
9632600819
1
wscript
1
wscript
@ -557,6 +557,7 @@ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user