Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- SHELL:=/bin/bash
-
- caf:
- git clone https://github.com/actor-framework/actor-framework
- pushd actor-framework && git checkout 6bbe993f315eaa7c8264bc9ae240766b05e64513 # master at the time of writing
- bash ../ubuntu1804.sh make impl
- make package
-
- impl:
- switch-to-latest-clang
- pushd actor-framework && \
- CXX="$(which c++)" ./configure --cxx-flags="-stdlib=libstdc++" --disable-shared-libs --prefix=$$PWD/caf_out && \
- echo patch CMakeLists.txt ../caf-cmakefile.patch && \
- mkdir -p build && \
- pushd build && \
- cmake -DCAF_LOG_LEVEL=TRACE -DCMAKE_INSTALL_PREFIX=$$PWD/caf_out .. && \
- DO_NOT_SPECIFY_CMAKE_CXX_FLAGS_HERE="" make -j $$(nproc) && \
- make install
-
- # works: CXX="$(which c++)" ./configure --cxx-flags="-stdlib=libc++" --disable-shared-libs --prefix=$$PWD/caf_out && \
- # changed to libstdc++ (the gnu version)
- # until my question is answered here: https://groups.google.com/forum/#!topic/v8-users/Do5MvAvYFgs
- # i will not use libc++
- #
-
- # was: CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
- # CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++ -DGLIBCXX_USE_CXX11_ABI=1 -D_GLIBCXX_USE_CXX11_ABI=1" make -j $$(nproc) && \
- #-DCAF_NO_AUTO_LIBCPP=yes \
- #GLIBCXX_USE_CXX11_ABI=1 CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
- #make install
- #CMAKE_CXX_FLAGS="-std=c++17 -stdlib=libc++" make -j $$(nproc) && \
-
- package:
- rm -rf out
- mkdir -p out/opt/cppse/build/caf
- cp -prv actor-framework/build/caf_out/* out/opt/cppse/build/caf/
- # workaround for https://groups.google.com/forum/#!topic/actor-framework/xOmdVFRD7lc
- cp -prv actor-framework/build/caf/detail/build_config.hpp out/opt/cppse/build/caf/include/caf/detail/
- rm -rf caf_*_amd64.deb
- docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.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
-
- clean:
- rm -rf actor-framework
- rm -rf out
-
- shell:
- FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash
|