2023-04-05 00:03:56 -07:00
|
|
|
project( 'test', 'c', default_options : ['buildtype=debug'] )
|
|
|
|
|
|
|
|
# add_global_arguments('-E', language : 'cpp')
|
|
|
|
|
2023-04-09 11:51:37 -07:00
|
|
|
includes = include_directories(
|
|
|
|
[
|
2023-04-05 00:03:56 -07:00
|
|
|
'../gen',
|
2023-04-09 11:51:37 -07:00
|
|
|
'../../singleheader'
|
2023-04-05 00:03:56 -07:00
|
|
|
])
|
|
|
|
|
|
|
|
# get_sources = files('./get_sources.ps1')
|
|
|
|
# sources = files(run_command('powershell', get_sources, check: true).stdout().strip().split('\n'))
|
|
|
|
|
|
|
|
sources = [ 'test.c99.c' ]
|
|
|
|
|
|
|
|
if get_option('buildtype').startswith('debug')
|
|
|
|
|
|
|
|
add_project_arguments('-DBuild_Debug', language : ['c' ])
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2023-04-09 11:51:37 -07:00
|
|
|
add_project_arguments('-Dgentime', language : ['c', 'cpp'])
|
|
|
|
|
2023-04-05 00:03:56 -07:00
|
|
|
executable( 'test_c99', sources, include_directories : includes )
|