project('cmsis-driver-bare', 'c', version: '1.0.0', license: 'MIT', meson_version: '>=0.60.0') subdir('cross/armv7m') cmsis_core_dep = subproject('cmsis').get_variable('cmsis_core_dep') cmsis_driver_dep = subproject('cmsis').get_variable('cmsis_driver_dep') cmsis_dfp_dep = subproject('cmsis-dfp-stm32f4').get_variable('cmsis_dfp_stm32f4_dep') freertos_dep = subproject('freertos').get_variable('freertos_dep') internal_inc = include_directories('inc') subdir('lib') if get_option('enable_demos') subdir('demo') endif if get_option('enable_tests') subdir('test') endif if get_option('enable_demos') and gdb.found() and ocd.found() and objcopy.found() run_target('flash', command: [flash_cmd, demo_gpio]) run_target('debug', command: [debug_cmd, demo_gpio]) endif