Skip to content

Commit 6a26d6d

Browse files
committed
Adjust build config for Irrlicht changes (again)
1 parent 298bb3d commit 6a26d6d

File tree

6 files changed

+28
-21
lines changed

6 files changed

+28
-21
lines changed

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ stages:
99
- deploy
1010

1111
variables:
12-
IRRLICHT_TAG: "1.9.0mt0"
12+
IRRLICHT_TAG: "1.9.0mt1"
1313
MINETEST_GAME_REPO: "https://github.com/minetest/minetest_game.git"
1414
CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH
1515

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ Library specific options:
259259
GETTEXT_INCLUDE_DIR - Only when building with gettext; directory that contains iconv.h
260260
GETTEXT_LIBRARY - Only when building with gettext on Windows; path to libintl.dll.a
261261
GETTEXT_MSGFMT - Only when building with gettext; path to msgfmt/msgfmt.exe
262-
IRRLICHT_DLL - Only on Windows; path to Irrlicht.dll
262+
IRRLICHT_DLL - Only on Windows; path to IrrlichtMt.dll
263263
IRRLICHT_INCLUDE_DIR - Directory that contains IrrCompileConfig.h
264-
IRRLICHT_LIBRARY - Path to libIrrlicht.a/libIrrlicht.so/libIrrlicht.dll.a/Irrlicht.lib
264+
IRRLICHT_LIBRARY - Path to libIrrlichtMt.a/libIrrlichtMt.so/libIrrlichtMt.dll.a/IrrlichtMt.lib
265265
LEVELDB_INCLUDE_DIR - Only when building with LevelDB; directory that contains db.h
266266
LEVELDB_LIBRARY - Only when building with LevelDB; path to libleveldb.a/libleveldb.so/libleveldb.dll.a
267267
LEVELDB_DLL - Only when building with LevelDB on Windows; path to libleveldb.dll

cmake/Modules/FindIrrlicht.cmake

+18-11
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,31 @@ mark_as_advanced(IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR IRRLICHT_DLL)
33

44
# Find include directory and libraries
55

6-
if(TRUE)
6+
# find our fork first, then upstream (TODO: remove this?)
7+
foreach(libname IN ITEMS IrrlichtMt Irrlicht)
8+
string(TOLOWER "${libname}" libname2)
9+
710
find_path(IRRLICHT_INCLUDE_DIR NAMES irrlicht.h
8-
DOC "Path to the directory with Irrlicht includes"
11+
DOC "Path to the directory with IrrlichtMt includes"
912
PATHS
10-
/usr/local/include/irrlicht
11-
/usr/include/irrlicht
12-
/system/develop/headers/irrlicht #Haiku
13-
PATH_SUFFIXES "include/irrlicht"
13+
/usr/local/include/${libname2}
14+
/usr/include/${libname2}
15+
/system/develop/headers/${libname2} #Haiku
16+
PATH_SUFFIXES "include/${libname2}"
1417
)
1518

16-
find_library(IRRLICHT_LIBRARY NAMES libIrrlicht Irrlicht
17-
DOC "Path to the Irrlicht library file"
19+
find_library(IRRLICHT_LIBRARY NAMES lib${libname} ${libname}
20+
DOC "Path to the IrrlichtMt library file"
1821
PATHS
1922
/usr/local/lib
2023
/usr/lib
2124
/system/develop/lib # Haiku
2225
)
23-
endif()
26+
27+
if(IRRLICHT_INCLUDE_DIR OR IRRLICHT_LIBRARY)
28+
break()
29+
endif()
30+
endforeach()
2431

2532
# Users will likely need to edit these
2633
mark_as_advanced(CLEAR IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR)
@@ -29,8 +36,8 @@ mark_as_advanced(CLEAR IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR)
2936
if(WIN32)
3037
# If VCPKG_APPLOCAL_DEPS is ON, dll's are automatically handled by VCPKG
3138
if(NOT VCPKG_APPLOCAL_DEPS)
32-
find_file(IRRLICHT_DLL NAMES Irrlicht.dll
33-
DOC "Path of the Irrlicht dll (for installation)"
39+
find_file(IRRLICHT_DLL NAMES IrrlichtMt.dll
40+
DOC "Path of the IrrlichtMt dll (for installation)"
3441
)
3542
endif()
3643
endif(WIN32)

util/buildbot/buildwin32.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ -z "$toolchain_file" ]; then
3131
fi
3232
echo "Using $toolchain_file"
3333

34-
irrlicht_version=1.9.0mt0
34+
irrlicht_version=1.9.0mt1
3535
ogg_version=1.3.2
3636
vorbis_version=1.3.5
3737
curl_version=7.65.3
@@ -122,8 +122,8 @@ cmake .. \
122122
-DENABLE_FREETYPE=1 \
123123
-DENABLE_LEVELDB=1 \
124124
\
125-
-DIRRLICHT_INCLUDE_DIR=$libdir/irrlicht/include/irrlicht \
126-
-DIRRLICHT_LIBRARY=$libdir/irrlicht/lib/libIrrlicht.dll.a \
125+
-DIRRLICHT_INCLUDE_DIR=$libdir/irrlicht/include/irrlichtmt \
126+
-DIRRLICHT_LIBRARY=$libdir/irrlicht/lib/libIrrlichtMt.dll.a \
127127
-DIRRLICHT_DLL="$irr_dlls" \
128128
\
129129
-DZLIB_INCLUDE_DIR=$libdir/zlib/include \

util/buildbot/buildwin64.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ packagedir=$builddir/packages
2020
libdir=$builddir/libs
2121

2222
toolchain_file=$dir/toolchain_x86_64-w64-mingw32.cmake
23-
irrlicht_version=1.9.0mt0
23+
irrlicht_version=1.9.0mt1
2424
ogg_version=1.3.2
2525
vorbis_version=1.3.5
2626
curl_version=7.65.3
@@ -112,8 +112,8 @@ cmake .. \
112112
-DENABLE_FREETYPE=1 \
113113
-DENABLE_LEVELDB=1 \
114114
\
115-
-DIRRLICHT_INCLUDE_DIR=$libdir/irrlicht/include/irrlicht \
116-
-DIRRLICHT_LIBRARY=$libdir/irrlicht/lib/libIrrlicht.dll.a \
115+
-DIRRLICHT_INCLUDE_DIR=$libdir/irrlicht/include/irrlichtmt \
116+
-DIRRLICHT_LIBRARY=$libdir/irrlicht/lib/libIrrlichtMt.dll.a \
117117
-DIRRLICHT_DLL="$irr_dlls" \
118118
\
119119
-DZLIB_INCLUDE_DIR=$libdir/zlib/include \

util/ci/common.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ install_linux_deps() {
1212
shift
1313
pkgs+=(libirrlicht-dev)
1414
else
15-
wget "https://github.com/minetest/irrlicht/releases/download/1.9.0mt0/ubuntu-bionic.tar.gz"
15+
wget "https://github.com/minetest/irrlicht/releases/download/1.9.0mt1/ubuntu-bionic.tar.gz"
1616
sudo tar -xaf ubuntu-bionic.tar.gz -C /usr/local
1717
fi
1818

0 commit comments

Comments
 (0)