mirror of
https://github.com/Ed94/gencpp.git
synced 2024-11-13 20:24:52 -08:00
20 lines
533 B
Meson
20 lines
533 B
Meson
|
project( 'refactor', 'c', 'cpp', default_options : ['buildtype=release'] )
|
||
|
|
||
|
# 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'))
|
||
|
|
||
|
if get_option('buildtype').startswith('debug')
|
||
|
|
||
|
add_project_arguments('-DBuild_Debug', language : ['c', 'cpp'])
|
||
|
|
||
|
endif
|
||
|
|
||
|
executable( 'refactor', sources, include_directories : includes )
|