-
Notifications
You must be signed in to change notification settings - Fork 1
/
windows_compile_distribution.sh
executable file
·56 lines (46 loc) · 1.31 KB
/
windows_compile_distribution.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
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
LAL_HEADERS="C:/Users/$USER/Desktop/LAL-DISTRIBUTION/latest/windows10-c++-libs-msys64/include"
LAL_LIBRARY="C:/Users/$USER/Desktop/LAL-DISTRIBUTION/latest/windows10-c++-libs-msys64/bin"
if [ -z $1 ]; then
PYTHON_HEADERS="C:/msys64/mingw64/include/python3.11"
PYTHON_LIBRARY=""
./compile.sh \
--environment=distribution \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$PYTHON_HEADERS" \
--python-libs="$PYTHON_LIBRARY" \
--build=release
./compile.sh \
--environment=distribution \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$PYTHON_HEADERS" \
--python-libs="$PYTHON_LIBRARY" \
--build=debug
# for anaconda users only
elif [ "$1" == "anaconda" ]; then
anaconda_dir="C:/Users/$USER/anaconda3"
./compile.sh \
--environment=distribution \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$anaconda_dir/include/" \
--python-libs="$anaconda_dir" \
--build=release
./compile.sh \
--environment=distribution \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$anaconda_dir/include/" \
--python-libs="$anaconda_dir" \
--build=debug
fi