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

48 行
2.0KB

  1. SHELL:=/bin/bash
  2. caf:
  3. git clone https://github.com/actor-framework/actor-framework
  4. pushd actor-framework && git checkout 6bbe993f315eaa7c8264bc9ae240766b05e64513 # master at the time of writing
  5. bash ../ubuntu1804.sh make impl
  6. make package
  7. impl:
  8. switch-to-latest-clang
  9. pushd actor-framework && \
  10. CXX="$(which c++)" ./configure --cxx-flags="-stdlib=libstdc++" --disable-shared-libs --prefix=$$PWD/caf_out && \
  11. echo patch CMakeLists.txt ../caf-cmakefile.patch && \
  12. mkdir -p build && \
  13. pushd build && \
  14. cmake -DCAF_LOG_LEVEL=TRACE -DCMAKE_INSTALL_PREFIX=$$PWD/caf_out .. && \
  15. DO_NOT_SPECIFY_CMAKE_CXX_FLAGS_HERE="" make -j $$(nproc) && \
  16. make install
  17. # works: CXX="$(which c++)" ./configure --cxx-flags="-stdlib=libc++" --disable-shared-libs --prefix=$$PWD/caf_out && \
  18. # changed to libstdc++ (the gnu version)
  19. # until my question is answered here: https://groups.google.com/forum/#!topic/v8-users/Do5MvAvYFgs
  20. # i will not use libc++
  21. #
  22. # was: CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  23. # CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++ -DGLIBCXX_USE_CXX11_ABI=1 -D_GLIBCXX_USE_CXX11_ABI=1" make -j $$(nproc) && \
  24. #-DCAF_NO_AUTO_LIBCPP=yes \
  25. #GLIBCXX_USE_CXX11_ABI=1 CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  26. #make install
  27. #CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  28. package:
  29. rm -rf out
  30. mkdir -p out/opt/cppse/build/caf
  31. cp -prv actor-framework/build/caf_out/* out/opt/cppse/build/caf/
  32. # workaround for https://groups.google.com/forum/#!topic/actor-framework/xOmdVFRD7lc
  33. cp -prv actor-framework/build/caf/detail/build_config.hpp out/opt/cppse/build/caf/include/caf/detail/
  34. rm -rf caf_*_amd64.deb
  35. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -v 1.1.1 -s dir -t deb -n caf --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "caf - build dependency" --url "https://github.com/liballeg/caf.git" --deb-generate-changes -C /src/out
  36. clean:
  37. rm -rf actor-framework
  38. rm -rf out
  39. shell:
  40. FLAGS="-i --privileged" bash ../ubuntu2404.sh /bin/bash