Mercurial > hg > orthanc-python
annotate Resources/Builders/Docker/docker-internal.sh @ 0:7ed502b17b8f
initial commit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 26 Mar 2020 18:47:01 +0100 |
parents | |
children |
rev | line source |
---|---|
0 | 1 #!/bin/bash |
2 set -ex | |
3 | |
4 mkdir /tmp/build | |
5 cd /tmp/build | |
6 | |
7 cmake /source \ | |
8 -DCMAKE_BUILD_TYPE=$1 \ | |
9 -DPYTHON_VERSION=3.7 \ | |
10 -DSTATIC_BUILD=ON \ | |
11 -DCMAKE_INSTALL_PREFIX=/target | |
12 | |
13 make -j`nproc` | |
14 | |
15 if [ "$1" == "Release" ]; then | |
16 strip ./libOrthancPython.so | |
17 fi | |
18 | |
19 make install |