forked from nobuyuki83/delfem2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-projects-linux.sh
114 lines (89 loc) · 1.5 KB
/
make-projects-linux.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#################################
# download & build submodules
git submodule update --init --recursive
######################
## test
cd 3rd_party/googletest
cmake .
make
cd ../..
cd test_cpp
mkdir buildMake
cd buildMake
cmake ..
make
./runUnitTests
cd ../../
cd test_cuda
mkdir buildMake
cd buildMake
cmake ..
make
./test_cuda
cd ../../
echo "test for C++ finished"
#######################
cd 3rd_party/glfw
cmake .
make
cd ../..
cd examples_glfwnew
mkdir buildMake
cd buildMake
cmake ..
make
cd ../../
cd examples_glfwold
mkdir buildMake
cd buildMake
cmake ..
make
cd ../../
#######################
# glut
cd examples_glut
mkdir buildMake
cd buildMake
cmake ..
make
cd ../../
#######################
# cuda
cd examples_cuda
mkdir buildMake
cd buildMake
cmake ..
make
cd ../../
#######################
#virtualenv --python=python3.7 myenv
#PATH_PYTHON="myenv/bin/"
#PATH_PYTHON=$( cd ${PATH_PYTHON}; pwd )"/python3"
PATH_PYTHON=$(which python3)
echo ${PATH_PYTHON}
cd src_pybind/core
mkdir buildMake
cd buildMake
cmake -DPYTHON_EXECUTABLE:PATH=${PATH_PYTHON} ..
cd ../../../
cd src_pybind/gl
mkdir buildMake
cd buildMake
cmake -DPYTHON_EXECUTABLE:PATH=${PATH_PYTHON} ..
cd ../../../
pip3 uninstall PyDelFEM2 -y
pip3 uninstall PyDelFEM2 -y
pip3 install -e .
python3 setup.py test
#python3 setup.py install
#python3 setup.py test
#python3 setup.py sdist bdist_wheel
#twine upload dist/*
########################
## build dll for CSharp
#cd src_dll
#mkdir build
#cd build
#cmake ..
#make
########################