You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

11 months ago
  1. ceedling-command-hooks
  2. ======================
  3. Plugin for easily calling command line tools at various points in the build process
  4. Define any of these sections in :tools: to provide additional hooks to be called on demand:
  5. ```
  6. :pre_mock_generate
  7. :post_mock_generate
  8. :pre_runner_generate
  9. :post_runner_generate
  10. :pre_compile_execute
  11. :post_compile_execute
  12. :pre_link_execute
  13. :post_link_execute
  14. :pre_test_fixture_execute
  15. :pre_test
  16. :post_test
  17. :pre_release
  18. :post_release
  19. :pre_build
  20. :post_build
  21. ```
  22. Each of these tools can support an :executable string and an :arguments list, like so:
  23. ```
  24. :tools:
  25. :post_link_execute:
  26. :executable: objcopy.exe
  27. :arguments:
  28. - ${1} #This is replaced with the executable name
  29. - output.srec
  30. - --strip-all
  31. ```
  32. You may also specify an array of executables to be called in a particular place, like so:
  33. ```
  34. :tools:
  35. :post_test:
  36. - :executable: echo
  37. :arguments: "${1} was glorious!"
  38. - :executable: echo
  39. :arguments:
  40. - it kinda made me cry a little.
  41. - you?
  42. ```
  43. Please note that it varies which arguments are being parsed down to the
  44. hooks. For now see `command_hooks.rb` to figure out which suits you best.
  45. Happy Tweaking!