您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

49 行
1.6KB

  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. .PHONY : opentelem
  8. opentelem:
  9. pushd opentelemetry-cpp && \
  10. set -ex && \
  11. git config --global --add safe.directory $$PWD && \
  12. git checkout v1.8.3 && \
  13. mkdir -p build && \
  14. cd build && \
  15. sudo apt update && \
  16. sudo apt install libcurl4-openssl-dev libprotobuf-dev -y && \
  17. cmake -DBUILD_PACKAGE:BOOL=on -DBUILD_TESTING=off -DWITH_OTLP_HTTP=on -DWITH_OTLP_HTTP=on -DWITH_EXAMPLES=off .. && \
  18. cmake --build . --target all && \
  19. echo cpack -G DEB && \
  20. popd
  21. #
  22. # for some reason this whole package build stuff doesn't work..
  23. # and ditto for the --install target.. ffs.
  24. #
  25. #cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=$$PWD/../out/ -DBUILD_TESTING=off -DBUILD_PACKAGE=ON .. && \
  26. #cmake --build . --target all && \
  27. #cmake --version && \
  28. #cmake --install . --prefix $$PWD/../../out/ -v && \
  29. #cpack -C debug && \
  30. package-ubuntu2204:
  31. rm -rf pkg_out
  32. mkdir -p pkg_out/opt/cppse/build/
  33. rsync -raPv out/ pkg_out/opt/cppse/build/
  34. rm -rf redis-plus-plus*amd64.deb
  35. 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
  36. clean:
  37. sudo rm -rf opentelemetry-cpp
  38. sudo rm -rf out
  39. sudo rm -rf pkg_out
  40. shell:
  41. FLAGS="-i --privileged" bash ../ubuntu2204.sh /bin/bash