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.

64 line
2.2KB

  1. SHELL:=/bin/bash
  2. ubuntu2204:
  3. git clone --recurse-submodules https://github.com/open-telemetry/opentelemetry-cpp || true
  4. mkdir -p out
  5. bash ../ubuntu2204.sh make opentelem
  6. make package-ubuntu2204
  7. ubuntu2404:
  8. git clone --recurse-submodules https://github.com/open-telemetry/opentelemetry-cpp || true
  9. mkdir -p out
  10. bash ../ubuntu2404.sh make opentelem
  11. make package-ubuntu2404
  12. .PHONY : opentelem
  13. opentelem:
  14. pushd opentelemetry-cpp && \
  15. set -ex && \
  16. git config --global --add safe.directory $$PWD && \
  17. git checkout v1.8.3 && \
  18. mkdir -p build && \
  19. cd build && \
  20. sudo apt update && \
  21. sudo apt install libcurl4-openssl-dev libprotobuf-dev -y && \
  22. cmake -DBUILD_PACKAGE:BOOL=on -DBUILD_TESTING=off -DWITH_OTLP_HTTP=on -DWITH_OTLP_HTTP=on -DWITH_EXAMPLES=off .. && \
  23. cmake --build . --target all && \
  24. echo cpack -G DEB && \
  25. popd
  26. #
  27. # for some reason this whole package build stuff doesn't work..
  28. # and ditto for the --install target.. ffs.
  29. #
  30. #cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=$$PWD/../out/ -DBUILD_TESTING=off -DBUILD_PACKAGE=ON .. && \
  31. #cmake --build . --target all && \
  32. #cmake --version && \
  33. #cmake --install . --prefix $$PWD/../../out/ -v && \
  34. #cpack -C debug && \
  35. package-ubuntu2204:
  36. rm -rf pkg_out
  37. mkdir -p pkg_out/opt/cppse/build/
  38. rsync -raPv out/ pkg_out/opt/cppse/build/
  39. rm -rf redis-plus-plus*amd64.deb
  40. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1 -s dir -t deb -n redis-plus-plus --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "redis-plus-plus - build dependency" --url "https://github.com/sewenew/redis-plus-plus" --deb-generate-changes -C /src/pkg_out
  41. package-ubuntu2404:
  42. rm -rf pkg_out
  43. mkdir -p pkg_out/opt/cppse/build/
  44. rsync -raPv out/ pkg_out/opt/cppse/build/
  45. rm -rf redis-plus-plus*amd64.deb
  46. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -v 1.1 -s dir -t deb -n redis-plus-plus --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "redis-plus-plus - build dependency" --url "https://github.com/sewenew/redis-plus-plus" --deb-generate-changes -C /src/pkg_out
  47. clean:
  48. sudo rm -rf opentelemetry-cpp
  49. sudo rm -rf out
  50. sudo rm -rf pkg_out
  51. shell:
  52. FLAGS="-i --privileged" bash ../ubuntu2204.sh /bin/bash