flatpak/com.vscodium.codium/tool.cpplibs/com.vscodium.codium.tool.cp...

64 lines
2.1 KiB
YAML

id: "com.vscodium.codium.tool.cpplibs"
build-extension: true
branch: "21.08"
runtime: com.vscodium.codium
sdk: org.freedesktop.Sdk//21.08
runtime-version: stable
separate-locales: false
build-options:
prefix: /app/tools/cpplibs
env:
- SOURCE_DATE_EPOCH=1
modules:
- name: catch2
sources:
- type: git
url: https://github.com/catchorg/Catch2.git
tag: v2.13.8
commit: 216713a4066b79d9803d374f261ccb30c0fb451f
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_INSTALL_PREFIX=/app/tools/cpplibs
- name: b2
sources:
- type: git
url: https://github.com/boostorg/build.git
tag: boost-1.78.0
commit: aaa95bba19a7acb07badb1929737c67583b14ba0
buildsystem: simple
build-commands:
- ./bootstrap.sh
- ./b2 install --prefix=/app/tools/cpplibs
- name: boost
sources:
- type: git
url: https://github.com/boostorg/boost.git
tag: boost-1.78.0
commit: a07c63c9e56f4d3b5bc904e25a7ad6f900728dbf
buildsystem: simple
build-commands:
- /app/tools/cpplibs/bin/b2 variant=release address-model=64 link=static,shared install --prefix=/app/tools/cpplibs
- name: yaml-cpp
sources:
- type: git
url: https://github.com/jbeder/yaml-cpp.git
tag: yaml-cpp-0.7.0
commit: 0579ae3d976091d7d664aa9d2527e0d0cff25763
buildsystem: cmake-ninja
- name: taocpp-pegtl
sources:
- type: git
url: https://github.com/taocpp/PEGTL.git
tag: "3.2.5"
commit: eeba7fa1180655bd683be620cc31be35607442ca
buildsystem: cmake-ninja
- name: fixes
buildsystem: simple
build-commands:
- find /app/tools/cpplibs -type f | xargs -I{} strip -g {} || true
- cd /app/tools/cpplibs && if [ -d "share/pkgconfig" ]; then mv share/pkgconfig lib/pkgconfig; else exit 1; fi