forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bookkeeping-api.sh
39 lines (35 loc) · 1.37 KB
/
bookkeeping-api.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package: bookkeeping-api
version: "v0.49.1"
tag: "@aliceo2/[email protected]"
requires:
- grpc
- protobuf
build_requires:
- "GCC-Toolchain:(?!osx)"
- CMake
- alibuild-recipe-tools
source: https://github.com/AliceO2Group/Bookkeeping
incremental_recipe: |
cmake --build . -- ${JOBS+-j $JOBS} install
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
---
case $ARCHITECTURE in
osx*)
# If we preferred system tools, we need to make sure we can pick them up.
[[ ! $OPENSSL_ROOT ]] && OPENSSL_ROOT_DIR=$(brew --prefix [email protected])
[[ ! $GRPC_ROOT ]] && GRPC_ROOT=`brew --prefix grpc`
;;
esac
cmake $SOURCEDIR/cxx-client \
${CMAKE_GENERATOR:+-G "$CMAKE_GENERATOR"} \
${CMAKE_BUILD_TYPE:+-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE} \
${CONFIGURATION_REVISION:+-DConfiguration_ROOT=$CONFIGURATION_ROOT} \
${INFOLOGGER_REVISION:+-DInfoLogger_ROOT=$INFOLOGGER_ROOT} \
-DCMAKE_INSTALL_LIBDIR=lib \
${OPENSSL_ROOT_DIR:+-DOPENSSL_ROOT_DIR=$OPENSSL_ROOT_DIR} \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT
VERBOSE=1 cmake --build . -- ${JOBS+-j $JOBS} install
#ModuleFile
mkdir -p etc/modulefiles
alibuild-generate-module > etc/modulefiles/$PKGNAME
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles