-
Notifications
You must be signed in to change notification settings - Fork 3
/
postBuild
40 lines (36 loc) · 1.16 KB
/
postBuild
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
#!/bin/bash
# Get LibKet repository
curl -s https://gitlab.com/libket/LibKet/-/archive/master/LibKet-master.tar.bz2 | tar -xjf - -C $HOME/
mv $HOME/LibKet-master $HOME/LibKet
# Build LibKet external libraries
cd $HOME/LibKet
mkdir build
cd build
cmake -DLIBKET_BUILD_C_API=OFF \
-DLIBKET_BUILD_DOCS=OFF \
-DLIBKET_BUILD_PYTHON_API=OFF \
-DLIBKET_BUILD_EXAMPLES=OFF \
-DLIBKET_BUILD_UNITTESTS=OFF \
-DLIBKET_USE_PCH=OFF \
-DLIBKET_WITH_AQASM=OFF \
-DLIBKET_WITH_CIRQ=ON \
-DLIBKET_WITH_CQASM=ON \
-DLIBKET_WITH_MPI=OFF \
-DLIBKET_WITH_OPENMP=OFF \
-DLIBKET_WITH_OPENQASM=ON \
-DLIBKET_WITH_OPENQL=OFF \
-DLIBKET_WITH_QASM=OFF \
-DLIBKET_WITH_QUEST=ON \
-DLIBKET_WITH_QUIL=ON \
-DLIBKET_WITH_QX=OFF \
..
make
# Retrieve doxygen tag file
curl https://libket.gitlab.io/LibKet/libket-doxygen.tag.xml --output /srv/conda/envs/notebook/share/xeus-cling/tagfiles/libket-doxygen-web.tag
# Generate JSON configuration file
cat >/srv/conda/envs/notebook/etc/xeus-cling/tags.d/libket.json <<EOL
{
"url": "https://libket.gitlab.io/LibKet/",
"tagfile": "libket-doxygen-web.tag"
}
EOL