Skip to content
Snippets Groups Projects
gcc.yml 1.17 KiB
---
compiler:
  path: gcc
  source_path:     &source_path 'src/'
  unit_tests_path: &unit_tests_path 'test/'
  mocks_path:      &mocks_path 'generated-test/mocks/'
  build_path:      &build_path 'generated-test/build/'
  options:
    - '-c'
    - '-Wall'
    - '-Wextra'
    - '-Wunused-parameter'
    - '-Wno-address'
    - '-std=c11'
    - '-pedantic'
    - '-O0'
  includes:
    prefix: '-I'
    items:
      - *source_path
      - *unit_tests_path
      - *mocks_path
      - 'vendor/unity/src/'
      - 'vendor/cmock/src/'
      - 'test/'
      - 'inc/'
  defines:
    prefix: '-D'
    items:
      - CMOCK
      - 'UNITY_SUPPORT_64'
      - 'HSI48_VALUE="((uint32_t)48000000)"'
      - 'STM32F072xB'
  object_files:
    prefix: '-o'
    extension: '.o'
    destination: *build_path

linker:
  path: gcc
  options:
    - -lm
  includes:
    prefix: '-I'
  object_files:
    path: *build_path
    extension: '.o'
  bin_files:
    prefix: '-o'
    extension: '.exe'
    destination: *build_path

unsupported:
  - out_of_memory
  - unity_64bit_support
  - callingconv

colour: true

:cmock:
  :plugins:
    - :ignore_arg
    - :array
    - :callback
  :mock_path: *mocks_path
  :mock_prefix: mock_