Skip to content
Snippets Groups Projects
Select Git revision
  • f8c5454b6e4c4252f711ad4665c8cfd5e108b36c
  • master default protected
  • backslash
  • nickname-match-configs
  • genofire/leds_rgb_get_state
  • genofire/rockets-state
  • genofire/ble-follow-py
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • genofire/haule-ble-fs-deactive
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • ios-workarounds
  • schneider/fundamental-test
  • schneider/ble-buffers
  • schneider/maxim-sdk-update
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • koalo/wip/i2c-for-python
  • 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
34 results

meson.build

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    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',
      ],
    )