mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 15:54:45 -08:00
30 lines
915 B
Meson
30 lines
915 B
Meson
project( 'test', 'c', 'cpp', default_options : ['buildtype=debug'] )
|
|
|
|
# add_global_arguments('-E', language : 'cpp')
|
|
|
|
includes = include_directories(
|
|
[
|
|
'../../project',
|
|
'../../thirdparty'
|
|
])
|
|
|
|
# get_sources = files('./get_sources.ps1')
|
|
# sources = files(run_command('powershell', get_sources, check: true).stdout().strip().split('\n'))
|
|
|
|
sources = [ '../test.NonParsed.cpp' ]
|
|
sources_parsed = [ '../test.Parsed.cpp' ]
|
|
|
|
if get_option('buildtype').startswith('debug')
|
|
|
|
add_project_arguments('-DBuild_Debug', language : ['c', 'cpp'])
|
|
# add_project_arguments('-E', language : ['c', 'cpp'])
|
|
|
|
endif
|
|
# add_project_arguments('-E', language : ['c', 'cpp'])
|
|
# add_global_arguments( '-E', language : ['cpp'])
|
|
|
|
add_project_arguments('-Dgen_time', language : ['c', 'cpp'])
|
|
|
|
executable( 'gencpp', sources, include_directories : includes )
|
|
executable( 'gencpp_parsed', sources_parsed, include_directories : includes )
|