Formally drop support for building with upstream Irrlicht

It stopped working with (at least) the last commit.
This commit is contained in:
sfan5 2022-05-22 00:52:11 +02:00
parent 5daafc9d33
commit 16a30556df
5 changed files with 14 additions and 26 deletions

@ -132,7 +132,7 @@ jobs:
- name: Install deps - name: Install deps
run: | run: |
source ./util/ci/common.sh source ./util/ci/common.sh
install_linux_deps --old-irr clang-9 install_linux_deps clang-9
- name: Build prometheus-cpp - name: Build prometheus-cpp
run: | run: |

@ -78,7 +78,6 @@ if(NOT "${IRRLICHTMT_BUILD_DIR}" STREQUAL "")
# IrrlichtMtConfig.cmake # IrrlichtMtConfig.cmake
message(FATAL_ERROR "Could not find IrrlichtMtConfig.cmake in ${IRRLICHTMT_BUILD_DIR}/cmake.") message(FATAL_ERROR "Could not find IrrlichtMtConfig.cmake in ${IRRLICHTMT_BUILD_DIR}/cmake.")
endif() endif()
# This is done here so that relative search paths are more reasonable
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/lib/irrlichtmt") elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/lib/irrlichtmt")
message(STATUS "Using user-provided IrrlichtMt at subdirectory 'lib/irrlichtmt'") message(STATUS "Using user-provided IrrlichtMt at subdirectory 'lib/irrlichtmt'")
if(BUILD_CLIENT) if(BUILD_CLIENT)
@ -108,9 +107,9 @@ else()
include(MinetestFindIrrlichtHeaders) include(MinetestFindIrrlichtHeaders)
if(NOT IRRLICHT_INCLUDE_DIR) if(NOT IRRLICHT_INCLUDE_DIR)
message(FATAL_ERROR "Irrlicht or IrrlichtMt headers are required to build the server, but none found.\n${explanation_msg}") message(FATAL_ERROR "IrrlichtMt headers are required to build the server, but none found.\n${explanation_msg}")
endif() endif()
message(STATUS "Found Irrlicht headers: ${IRRLICHT_INCLUDE_DIR}") message(STATUS "Found IrrlichtMt headers: ${IRRLICHT_INCLUDE_DIR}")
add_library(IrrlichtMt::IrrlichtMt INTERFACE IMPORTED) add_library(IrrlichtMt::IrrlichtMt INTERFACE IMPORTED)
# Note that we can't use target_include_directories() since that doesn't work for IMPORTED targets before CMake 3.11 # Note that we can't use target_include_directories() since that doesn't work for IMPORTED targets before CMake 3.11
set_target_properties(IrrlichtMt::IrrlichtMt PROPERTIES set_target_properties(IrrlichtMt::IrrlichtMt PROPERTIES

@ -223,8 +223,8 @@ Run it:
- You can disable the client build by specifying `-DBUILD_CLIENT=FALSE`. - You can disable the client build by specifying `-DBUILD_CLIENT=FALSE`.
- You can select between Release and Debug build by `-DCMAKE_BUILD_TYPE=<Debug or Release>`. - You can select between Release and Debug build by `-DCMAKE_BUILD_TYPE=<Debug or Release>`.
- Debug build is slower, but gives much more useful output in a debugger. - Debug build is slower, but gives much more useful output in a debugger.
- If you build a bare server you don't need to have the Irrlicht or IrrlichtMt library installed. - If you build a bare server you don't need to compile IrrlichtMt, just the headers suffice.
- In that case use `-DIRRLICHT_INCLUDE_DIR=/some/where/irrlicht/include`. - In that case use `-DIRRLICHT_INCLUDE_DIR=/some/where/irrlichtmt/include`.
- Minetest will use the IrrlichtMt package that is found first, given by the following order: - Minetest will use the IrrlichtMt package that is found first, given by the following order:
1. Specified `IRRLICHTMT_BUILD_DIR` CMake variable 1. Specified `IRRLICHTMT_BUILD_DIR` CMake variable

@ -1,21 +1,13 @@
# Locate Irrlicht or IrrlichtMt headers on system. # Locate IrrlichtMt headers on system.
foreach(libname IN ITEMS IrrlichtMt Irrlicht) find_path(IRRLICHT_INCLUDE_DIR NAMES irrlicht.h
string(TOLOWER "${libname}" libname2)
find_path(IRRLICHT_INCLUDE_DIR NAMES irrlicht.h
DOC "Path to the directory with IrrlichtMt includes" DOC "Path to the directory with IrrlichtMt includes"
PATHS PATHS
/usr/local/include/${libname2} /usr/local/include/irrlichtmt
/usr/include/${libname2} /usr/include/irrlichtmt
/system/develop/headers/${libname2} #Haiku /system/develop/headers/irrlichtmt #Haiku
PATH_SUFFIXES "include/${libname2}" PATH_SUFFIXES "include/irrlichtmt"
) )
if(IRRLICHT_INCLUDE_DIR)
break()
endif()
endforeach()
# Handholding for users # Handholding for users
if(IRRLICHT_INCLUDE_DIR AND (NOT IS_DIRECTORY "${IRRLICHT_INCLUDE_DIR}" OR if(IRRLICHT_INCLUDE_DIR AND (NOT IS_DIRECTORY "${IRRLICHT_INCLUDE_DIR}" OR

@ -9,9 +9,6 @@ install_linux_deps() {
if [[ "$1" == "--no-irr" ]]; then if [[ "$1" == "--no-irr" ]]; then
shift shift
elif [[ "$1" == "--old-irr" ]]; then
shift
pkgs+=(libirrlicht-dev)
else else
wget "https://github.com/minetest/irrlicht/releases/download/1.9.0mt6/ubuntu-bionic.tar.gz" wget "https://github.com/minetest/irrlicht/releases/download/1.9.0mt6/ubuntu-bionic.tar.gz"
sudo tar -xaf ubuntu-bionic.tar.gz -C /usr/local sudo tar -xaf ubuntu-bionic.tar.gz -C /usr/local