Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

52 lines
2.3KB

  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. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40
  9. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40
  10. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40
  11. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40
  12. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40
  13. pushd actor-framework && \
  14. CXX="$(which c++)" ./configure --cxx-flags="-stdlib=libstdc++" --disable-shared-libs --prefix=$$PWD/caf_out && \
  15. echo patch CMakeLists.txt ../caf-cmakefile.patch && \
  16. mkdir -p build && \
  17. pushd build && \
  18. cmake -DCMAKE_INSTALL_PREFIX=$$PWD/caf_out .. && \
  19. DO_NOT_SPECIFY_CMAKE_CXX_FLAGS_HERE="" make -j $$(nproc) && \
  20. make install
  21. # works: CXX="$(which c++)" ./configure --cxx-flags="-stdlib=libc++" --disable-shared-libs --prefix=$$PWD/caf_out && \
  22. # changed to libstdc++ (the gnu version)
  23. # until my question is answered here: https://groups.google.com/forum/#!topic/v8-users/Do5MvAvYFgs
  24. # i will not use libc++
  25. #
  26. # was: CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  27. # CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++ -DGLIBCXX_USE_CXX11_ABI=1 -D_GLIBCXX_USE_CXX11_ABI=1" make -j $$(nproc) && \
  28. #-DCAF_NO_AUTO_LIBCPP=yes \
  29. #GLIBCXX_USE_CXX11_ABI=1 CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  30. #make install
  31. #CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
  32. package:
  33. rm -rf out
  34. mkdir -p out/opt/cppse/build/caf
  35. cp -prv actor-framework/build/caf_out/* out/opt/cppse/build/caf/
  36. # workaround for https://groups.google.com/forum/#!topic/actor-framework/xOmdVFRD7lc
  37. cp -prv actor-framework/build/caf/detail/build_config.hpp out/opt/cppse/build/caf/include/caf/detail/
  38. rm -rf caf_*_amd64.deb
  39. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 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
  40. clean:
  41. rm -rf actor-framework
  42. rm -rf out
  43. shell:
  44. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash