2023-03-30 14:36:36 -07:00
|
|
|
project( 'refactor', 'c', 'cpp', default_options : ['buildtype=release'] )
|
2023-03-13 17:17:12 -07:00
|
|
|
|
|
|
|
# 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 )
|