summaryrefslogtreecommitdiff
path: root/fw/sim/meson.build
blob: 5edcad903eee45048235b331d4ccc7a9de0e8383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
external_project = import('unstable-external_project')

external_project.add_project(
  configure_zephyr,
  configure_options: [
    '--source-tree', application_source,
    '--build-tree', meson.current_build_dir() / 'build',
    '--board', 'native_sim/native/64',
    '--zephyr-base', zephyr,
    '--zephyr-modules', ';'.join(zephyr_modules),
  ],
  verbose: true,
)

simulation = custom_target(
  output: ['simulation-linux-amd64.exe'],
  command: [
    build_zephyr,
    '--build-tree', meson.current_build_dir() / 'build',
    '--binary-name', 'zephyr.exe',
    '--target-name', 'simulation-linux-amd64.exe',
  ],
  build_by_default: true,
)