forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbloaty.sh
More file actions
31 lines (27 loc) · 783 Bytes
/
bloaty.sh
File metadata and controls
31 lines (27 loc) · 783 Bytes
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
package: bloaty
version: "%(tag_basename)s"
tag: v1.1-alice2
requires:
- "GCC-Toolchain:(?!osx)"
- capstone
- abseil
- re2
- protobuf
- zlib
build_requires:
- CMake
- ninja
source: https://github.com/alisw/bloaty
---
#!/bin/bash -e
cmake $SOURCEDIR \
-G Ninja \
${CXXSTD:+-DCMAKE_CXX_STANDARD=$CXXSTD} \
-DBUILD_TESTING=OFF \
-DBLOATY_PREFER_SYSTEM_CAPSTONE=TRUE \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT
cmake --build . -- ${JOBS:+-j$JOBS} install
#ModuleFile
mkdir -p etc/modulefiles
alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles