]> begriffs open source - meson-wrap/blob - packagefiles/cmsis-dfp-stm32f4/meson.build
WIP: cmsis
[meson-wrap] / packagefiles / cmsis-dfp-stm32f4 / meson.build
1 project('cmsis-dfp-stm32f4', 'c',
2   version: '2.6.10',
3   license: 'Apache 2.0')
4
5 cmsis_dep = subproject('cmsis').get_variable('cmsis_dep')
6
7 cmsis_dfp_stm32f4_inc = include_directories('Include')
8
9 cmsis_dfp_stm32f4_lib = library(
10   'cmsis_dfp_stm32f4',
11   files('Source' / 'Templates' / 'system_stm32f4xx.c'),
12   include_directories: cmsis_dfp_stm32f4_inc,
13   dependencies: [cmsis_dep],
14   c_args: [
15     '-D' + get_option('stm32f4_mcu'),
16     '-DHSE_VALUE=' + get_option('hse_hz') + 'U',
17     '-DHSI_VALUE=' + get_option('hsi_hz') + 'U'
18   ])
19
20 cmsis_dfp_stm32f4_dep = declare_dependency(
21   include_directories: cmsis_dfp_stm32f4_inc,
22   link_with: cmsis_dfp_stm32f4_lib,
23   compile_args: [
24     '-D' + get_option('stm32f4_mcu'),
25     '-DCMSIS_device_header=\'"stm32f4xx.h"\''
26   ])