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
3
wscript
3
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)
|
||||
|
Loading…
Reference in New Issue
Block a user