Add platform test compilation options

This commit is contained in:
Niccolò Izzo 2020-11-27 12:49:39 +01:00
parent 3310b5f730
commit e3285fee10
2 changed files with 10 additions and 2 deletions

View File

@ -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',

View File

@ -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')