project.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. :treat_as:
  70. uint8: HEX8
  71. uint16: HEX16
  72. uint32: UINT32
  73. int8: INT8
  74. bool: UINT8
  75. :plugins:
  76. :load_paths:
  77. - vendor/ceedling/plugins
  78. :enabled:
  79. #- stdout_pretty_tests_report
  80. - stdout_ide_tests_report
  81. - module_generator
  82. ...