Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Until May 2022 (inclusive) no changelog was kept. We might try to reconstruct it
### Added

* Add pre-commit to python modules
* abseil: Add recipe for protobuf dependency

### Fixed

Expand Down
29 changes: 29 additions & 0 deletions abseil.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package: abseil
version: "%(tag_basename)s"
tag: "20240722.0"
requires:
- "GCC-Toolchain:(?!osx)"
source: https://github.com/abseil/abseil-cpp
build_requires:
- CMake
- ninja
- alibuild-recipe-tools
prepend_path:
PKG_CONFIG_PATH: "$ABSEIL_ROOT/lib/pkgconfig"
---
#!/bin/bash -e

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

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

# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
alibuild-generate-module --lib --bin --cmake > "$MODULEFILE"