mirror of
https://github.com/Ed94/gencpp.git
synced 2024-11-10 11:04:52 -08:00
Ed_
231ae5f5d6
- Renamed macro gen_time to GEN_TIME - Moved scanner and editor to their own headers, I'm going to consider them extensions. - I'm preparing to setup the library to build on multiple compiler platforms: clang, gcc, msvc.
28 lines
787 B
Meson
28 lines
787 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.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 )
|