2023-04-01 19:21:46 -07:00
|
|
|
project( 'test', 'c', 'cpp', default_options : ['buildtype=debug'] )
|
|
|
|
|
|
|
|
# add_global_arguments('-E', language : 'cpp')
|
|
|
|
|
2023-04-05 23:21:23 -07:00
|
|
|
includes = include_directories(
|
|
|
|
[
|
2023-04-01 22:07:44 -07:00
|
|
|
'../../project',
|
2023-04-05 23:21:23 -07:00
|
|
|
'../../thirdparty'
|
2023-04-01 19:21:46 -07:00
|
|
|
])
|
|
|
|
|
|
|
|
# get_sources = files('./get_sources.ps1')
|
|
|
|
# sources = files(run_command('powershell', get_sources, check: true).stdout().strip().split('\n'))
|
|
|
|
|
2023-07-08 11:11:41 -07:00
|
|
|
sources = [ '../test.NonParsed.cpp' ]
|
|
|
|
sources_parsed = [ '../test.Parsed.cpp' ]
|
2023-04-01 19:21:46 -07:00
|
|
|
|
|
|
|
if get_option('buildtype').startswith('debug')
|
|
|
|
|
|
|
|
add_project_arguments('-DBuild_Debug', language : ['c', 'cpp'])
|
2023-04-05 23:21:23 -07:00
|
|
|
# add_project_arguments('-E', language : ['c', 'cpp'])
|
2023-04-01 19:21:46 -07:00
|
|
|
|
|
|
|
endif
|
2023-04-05 23:21:23 -07:00
|
|
|
# add_project_arguments('-E', language : ['c', 'cpp'])
|
|
|
|
# add_global_arguments( '-E', language : ['cpp'])
|
2023-04-01 19:21:46 -07:00
|
|
|
|
2023-04-10 18:33:06 -07:00
|
|
|
add_project_arguments('-Dgen_time', language : ['c', 'cpp'])
|
2023-04-01 19:21:46 -07:00
|
|
|
|
2023-07-09 22:15:25 -07:00
|
|
|
executable( 'gencpp', sources, include_directories : includes )
|
2023-07-08 11:11:41 -07:00
|
|
|
executable( 'gencpp_parsed', sources_parsed, include_directories : includes )
|