mirror of
https://github.com/OpenRTX/OpenRTX
synced 2024-10-16 18:04:51 +00:00
Add platform test compilation options
This commit is contained in:
parent
3310b5f730
commit
e3285fee10
11
meson.build
11
meson.build
@ -11,12 +11,19 @@ project('OpenRTX', 'c',
|
||||
|
||||
## OpenRTX
|
||||
|
||||
openrtx_src = ['openrtx/src/main.c',
|
||||
'openrtx/src/bootstrap.c',
|
||||
|
||||
openrtx_src = ['openrtx/src/bootstrap.c',
|
||||
'openrtx/src/state.c',
|
||||
'openrtx/src/ui.c',
|
||||
'openrtx/src/threads.c']
|
||||
|
||||
## Replace main executable with platform test
|
||||
if get_option('test') != ''
|
||||
openrtx_src += 'tests/platform/'+get_option('test')+'.c'
|
||||
else
|
||||
openrtx_src += 'openrtx/src/main.c'
|
||||
endif
|
||||
|
||||
openrtx_inc = ['openrtx/include/interfaces',
|
||||
'openrtx/include',
|
||||
'platform/drivers/ADC',
|
||||
|
@ -1 +1,2 @@
|
||||
option('asan', type : 'boolean', value : false, description : 'Compile the software with AddressSanitizer')
|
||||
option('test', type: 'string', description: 'Replace the main OpenRTX source file with a specialized test')
|
||||
|
Loading…
Reference in New Issue
Block a user