-
Notifications
You must be signed in to change notification settings - Fork 161
/
bookkeeping-api.sh
46 lines (42 loc) · 1.6 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
40
41
42
43
44
45
46
package: bookkeeping-api
version: "v0.93.0"
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"
---
#!/bin/bash -e
SONAME=so
case $ARCHITECTURE in
osx*)
SONAME=dylib
# If we preferred system tools, we need to make sure we can pick them up.
[[ -z "$OPENSSL_ROOT" ]] && OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)
[[ -z "$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} \
${OPENSSL_ROOT:+-DOPENSSL_INCLUDE_DIRS=$OPENSSL_ROOT/include} \
${OPENSSL_ROOT:+-DOPENSSL_LIBRARIES=$OPENSSL_ROOT/lib/libssl.$SONAME;$OPENSSL_ROOT/lib/libcrypto.$SONAME} \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT
VERBOSE=1 cmake --build . -- ${JOBS+-j $JOBS} install
#ModuleFile
mkdir -p etc/modulefiles
alibuild-generate-module --lib > etc/modulefiles/$PKGNAME
mkdir -p "$INSTALLROOT/etc/modulefiles"
rsync -a --delete etc/modulefiles/ "$INSTALLROOT/etc/modulefiles"