Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup abseil #5167

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions abseil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,29 @@
- "GCC-Toolchain:(?!osx)"
build_requires:
- CMake
- ninja
- alibuild-recipe-tools
source: https://github.com/abseil/abseil-cpp
prefer_system: "osx"
prefer_system_check: |
printf '#include <absl/container/flat_hash_map.h>' | c++ -std=c++17 -I"$(brew --prefix abseil)/include" -c -xc++ - >/dev/null

Check warning on line 13 in abseil.sh

View workflow job for this annotation

GitHub Actions / alidistlint

line too long (127 > 120 characters) [yl:line-length]
incremental_recipe: |
make ${JOBS:+-j$JOBS} install
cmake --build . -- ${JOBS:+-j$JOBS} install
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
---
#!/bin/bash -e

mkdir -p $INSTALLROOT
cmake $SOURCEDIR \
${CXXSTD:+-DCMAKE_CXX_STANDARD=$CXXSTD} \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT

make ${JOBS:+-j$JOBS} install

cmake --build . -- ${JOBS:+-j$JOBS} install

# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
alibuild-generate-module --lib --bin --cmake > "$MODULEFILE"
cat >> "$MODULEFILE" <<EoF
prepend-path LD_LIBRARY_PATH \$PKG_ROOT/lib64
EoF