project.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ---
  2. # Notes:
  3. # Sample project C code is not presently written to produce a release artifact.
  4. # As such, release build options are disabled.
  5. # This sample, therefore, only demonstrates running a collection of unit tests.
  6. :project:
  7. :use_exceptions: TRUE
  8. :use_test_preprocessor: TRUE
  9. :use_auxiliary_dependencies: TRUE
  10. :use_deep_dependencies: TRUE
  11. :build_root: build
  12. # :release_build: TRUE
  13. :test_file_prefix: test_
  14. :release_build:
  15. :output: test_tinyusb.exe
  16. :use_assembly: FALSE
  17. :environment:
  18. :extension:
  19. :executable: .exe
  20. :paths:
  21. :test:
  22. - +:test/**
  23. - -:test/support
  24. :source:
  25. - ../tinyusb/**
  26. - +:../demos/bsp/lpc43xx/**
  27. - +:../demos/device/keyboard/*
  28. - -:../demos/
  29. - ../vendor/freertos/freertos/Source/*
  30. - ../vendor/freertos/freertos/Source/portable/MSVC-MingW/*
  31. :support:
  32. - test/support
  33. :defines:
  34. # in order to add common defines:
  35. # 1) remove the trailing [] from the :common: section
  36. # 2) add entries to the :common: section (e.g. :test: has TEST defined)
  37. :commmon: &common_defines
  38. - MCU=MCU_LPC43XX -std=gnu99
  39. # - -mx32
  40. - CORE_M4
  41. - __CODE_RED
  42. - _TINY_USB_SOURCE_FILE_
  43. - _TEST_
  44. :test:
  45. - *common_defines
  46. :test_preprocess:
  47. - *common_defines
  48. # :release:
  49. # :release_preprocess:
  50. #:flags:
  51. # :test:
  52. # :compile:
  53. # :hid_host:
  54. # - -Dstatic=
  55. # Ceedling defaults to using gcc for compiling, linking, etc.
  56. # As [:tools] is blank, gcc will be used (so long as it's in your system path)
  57. # See documentation to configure a given toolchain for use
  58. :cmock:
  59. :mock_prefix: mock_
  60. :when_no_prototypes: :warn
  61. :enforce_strict_ordering: TRUE
  62. :plugins:
  63. - :ignore
  64. - :callback
  65. - :array
  66. #:ignore: :args_only
  67. # :unity_helper_path: test/support/type_helper.h
  68. :treat_as:
  69. uint8: HEX8
  70. uint16: HEX16
  71. uint32: UINT32
  72. int8: INT8
  73. bool: UINT8
  74. :plugins:
  75. :load_paths:
  76. - vendor/ceedling/plugins
  77. :enabled:
  78. #- stdout_pretty_tests_report
  79. - stdout_ide_tests_report
  80. - module_generator
  81. ...