Minetest-For-Mobile/build/build-irrlicht.sh

34 lines
1.0 KiB
Bash
Raw Normal View History

2020-12-21 15:58:10 +00:00
#!/bin/sh
2020-12-22 23:17:34 +00:00
IRRLICHT_VERSION='6177'
2020-12-21 16:04:21 +00:00
2020-12-21 15:58:10 +00:00
set -e
2020-12-22 00:33:22 +00:00
svn export -r "${IRRLICHT_VERSION}" svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es irrlicht
2020-12-21 15:58:10 +00:00
cd irrlicht
dos2unix source/Irrlicht/CIrrDeviceLinux.cpp
dos2unix include/IrrCompileConfig.h
2020-12-22 23:17:34 +00:00
wget -O - https://sourceforge.net/p/irrlicht/patches/_discuss/thread/97431334ce/37b2/f348/0599/attachment/multitouch.patch | patch -p1
2020-12-21 15:58:10 +00:00
disable_feature() {
2020-12-22 23:17:34 +00:00
sed -i "s/^#define $1.*\$//g" include/IrrCompileConfig.h
2020-12-21 15:58:10 +00:00
}
enable_feature() {
2020-12-22 23:17:34 +00:00
sed -i "s/^#define NO$1.*\$//g" include/IrrCompileConfig.h
sed -i "s/^#ifdef NO$1\$/#ifndef $1\n#define $1\n#endif\n#ifdef NO$1/g" include/IrrCompileConfig.h
2020-12-21 15:58:10 +00:00
}
disable_feature _IRR_COMPILE_WITH_OPENGL_
disable_feature _IRR_COMPILE_WITH_OGLES2_
disable_feature _IRR_COMPILE_WITH_WEBGL1_
2020-12-23 20:38:13 +00:00
disable_feature _IRR_COMPILE_WITH_SOFTWARE_
disable_feature _IRR_COMPILE_WITH_BURNINGSVIDEO_
2020-12-21 15:58:10 +00:00
enable_feature _IRR_COMPILE_WITH_OGLES1_
enable_feature _IRR_LINUX_X11_XINPUT2_
cd source/Irrlicht
make NDEBUG=1 CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ -j$(nproc)