-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathpcl-build-for-android.sh
executable file
·51 lines (35 loc) · 1.58 KB
/
pcl-build-for-android.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
#!/bin/bash
set -e
PROFILE=${1}
if [ ! -f "conan-profiles/${PROFILE}" ] ; then
echo "${PROFILE} not supported!"
exit 1
fi
echo -e "\n\n\033[1;35m###########################################"
echo -e "### ANDROID-TOOLCHAIN setup... ###"
echo -e "###########################################\033[m\n\n"
conan create -pr default conanfiles/android-toolchain bashbug/stable
echo -e "\n\n\033[1;35m###########################################"
echo -e "### FLANN cross-compiling start... ###"
echo -e "###########################################\033[m\n\n"
conan create -pr conan-profiles/${PROFILE} conanfiles/lz4 bashbug/stable
conan create -pr conan-profiles/${PROFILE} conanfiles/flann bashbug/stable
echo "FLANN cross-compiling finished!"
echo -e "\n\n\033[1;35m###########################################"
echo -e "### BOOST cross-compiling start... ###"
echo -e "###########################################\033[m\n\n"
conan create -pr conan-profiles/${PROFILE} conanfiles/boost bashbug/stable
echo "BOOST cross-compiling finished!"
echo -e "\n\n\033[1;35mm###########################################"
echo -e "### PCL cross-compiling start... ###"
echo -e "###########################################\033[m\n\n"
echo -e "\n\n\033[1;32m this will run for a while... time to drink a\n"
echo -e " ( ( "
echo -e " ) ) "
echo -e " ........ "
echo -e " | |] "
echo -e " \ / "
echo -e " '----' \033[m\n\n"
conan create -pr conan-profiles/${PROFILE} conanfiles/pcl bashbug/stable
cp conan-profiles/${PROFILE} ~/.conan/profiles
echo "PCL cross-compiling finished!"