build.ym 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends '//builtin/bag.ym' %}
  2. {% block current_version %}2.0.0{% endblock %}
  3. {% block current_url %}
  4. https://github.com/mike-lischke/antlr4-c3/archive/refs/tags/cpp-{{self.version().strip()}}.tar.gz
  5. {% endblock %}
  6. {% block patch_source %}
  7. # remove root src
  8. rm -Rf src
  9. # make new src from cpp port
  10. mv ports/cpp/source/antlr4-c3 src
  11. # remove files from root except license and readme
  12. find . -maxdepth 1 ! -name 'License.txt' ! -name 'readme.md' -type f -exec rm -f {} +
  13. # add cpp readme
  14. mv ports/cpp/README.md README-cpp.md
  15. # remove all directories except src
  16. find . ! -name 'src' ! -name . ! -name .yandex_meta -type d -exec rm -rf {} +
  17. {% endblock %}
  18. {% block ya_make %}
  19. SUBSCRIBER(
  20. g:cpp-contrib
  21. )
  22. PEERDIR(
  23. contrib/libs/antlr4_cpp_runtime
  24. )
  25. SRC(
  26. src/CodeCompletionCore.cpp
  27. )
  28. {% endblock %}
  29. {% block move_to_output %}
  30. {{super()}}
  31. cp -R src ${OUTPUT}/
  32. {% endblock %}