Skip to content
Snippets Groups Projects
Select Git revision
  • f8c5454b6e4c4252f711ad4665c8cfd5e108b36c
  • master default protected
  • Stormwind
  • patch-1
  • schneider/bsec
  • dx/meh-bdf-to-stm
  • dx/somewhat-more-dynamic-config
  • rahix/proper-sleep
  • dx/flatten-config-module
  • genofire/ble-follow-py
  • schneider/ble-stability
  • schneider/ble-stability-new-phy
  • add_menu_vibration
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • schneider/fundamental-test
  • schneider/ble-buffers
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
37 results

meson.build

Blame
  • Forked from card10 / firmware
    1807 commits behind the upstream repository.
    Rahix's avatar
    rahix authored
    Signed-off-by: default avatarRahix <rahix@rahix.de>
    f8c5454b
    History
    meson.build 914 B
    api_stubs = custom_target(
      'api_*.c',
      input: 'api.h',
      output: ['api_client.c', 'api_server.c'],
      command: [
        python3,
        meson.current_source_dir() + '/genapi.py',
        '-H', '@INPUT0@',
        '-c', '@OUTPUT0@', '-s', '@OUTPUT1@',
      ],
      depend_files: 'genapi.py',
    )
    
    
    name = 'api-demo-core0'
    
    executable(
      name + '.elf',
      'main.c',
      './api/api_caller.c',
      api_stubs[0],
      dependencies: [libcard10, max32665_startup_core0],
      link_whole: [max32665_startup_core0_lib, board_card10_lib],
      link_args: [
        '-Wl,-Map=' + meson.current_build_dir() + '/' + name + '.map',
      ],
    )
    
    name = 'api-demo-core1'
    
    executable(
      name + '.elf',
      'core1-dispatcher.c',
      './api/api_dispatcher.c',
      api_stubs[1],
      dependencies: [libcard10, max32665_startup_core1],
      link_whole: [max32665_startup_core1_lib, board_card10_lib],
      link_args: [
        '-Wl,-Map=' + meson.current_build_dir() + '/' + name + '.map',
      ],
    )