project.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. - src/**
  26. - ../tinyusb/**
  27. - -:../demos
  28. - -:../test_old
  29. #- ../../CMSISv2p10_LPC13Uxx/**
  30. - ../../CMSISv2p10_LPC43xx_DriverLib/inc
  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. :test:
  39. - *common_defines
  40. - _TEST_ -std=gnu99
  41. - MCU=MCU_LPC43XX
  42. - CORE_M4
  43. - __CODE_RED
  44. - _TINY_USB_SOURCE_FILE_
  45. :test_preprocess:
  46. - *common_defines
  47. - _TEST_ -std=gnu99
  48. - MCU=MCU_LPC43XX
  49. - CORE_M4
  50. - __CODE_RED
  51. - _TINY_USB_SOURCE_FILE_
  52. #:flags:
  53. # :test:
  54. # :compile:
  55. # :hid_host:
  56. # - -Dstatic=
  57. # Ceedling defaults to using gcc for compiling, linking, etc.
  58. # As [:tools] is blank, gcc will be used (so long as it's in your system path)
  59. # See documentation to configure a given toolchain for use
  60. :cmock:
  61. :mock_prefix: mock_
  62. :when_no_prototypes: :warn
  63. :enforce_strict_ordering: TRUE
  64. :plugins:
  65. - :ignore
  66. - :callback
  67. - :array
  68. :ignore: :args_only
  69. # :unity_helper_path: test/support/type_helper.h
  70. :treat_as:
  71. uint8: HEX8
  72. uint16: HEX16
  73. uint32: UINT32
  74. int8: INT8
  75. bool: UINT8
  76. :plugins:
  77. :load_paths:
  78. - vendor/ceedling/plugins
  79. :enabled:
  80. #- stdout_pretty_tests_report
  81. - stdout_ide_tests_report
  82. - module_generator
  83. ...