]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Formally drop support for building with upstream Irrlicht
authorsfan5 <sfan5@live.de>
Sat, 21 May 2022 22:52:11 +0000 (00:52 +0200)
committersfan5 <sfan5@live.de>
Mon, 23 May 2022 20:50:58 +0000 (22:50 +0200)
It stopped working with (at least) the last commit.

.github/workflows/build.yml
CMakeLists.txt
README.md
cmake/Modules/MinetestFindIrrlichtHeaders.cmake
util/ci/common.sh

index 70340d82d584b3b417d985f48eb5dd4e6a5ea971..1717a282d4bd6c3475cbdfbd24714bbfc2c2159b 100644 (file)
@@ -132,7 +132,7 @@ jobs:
       - name: Install deps
         run: |
           source ./util/ci/common.sh
-          install_linux_deps --old-irr clang-9
+          install_linux_deps clang-9
 
       - name: Build prometheus-cpp
         run: |
index d8dd85af6e02c18ac9ef92965eea114c3bcd6828..09e3dcccd1f1481a1b54fd9c7e67adb36f1c3d96 100644 (file)
@@ -78,7 +78,6 @@ if(NOT "${IRRLICHTMT_BUILD_DIR}" STREQUAL "")
                # IrrlichtMtConfig.cmake
                message(FATAL_ERROR "Could not find IrrlichtMtConfig.cmake in ${IRRLICHTMT_BUILD_DIR}/cmake.")
        endif()
-# This is done here so that relative search paths are more reasonable
 elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/lib/irrlichtmt")
        message(STATUS "Using user-provided IrrlichtMt at subdirectory 'lib/irrlichtmt'")
        if(BUILD_CLIENT)
@@ -108,9 +107,9 @@ else()
 
                include(MinetestFindIrrlichtHeaders)
                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()
-               message(STATUS "Found Irrlicht headers: ${IRRLICHT_INCLUDE_DIR}")
+               message(STATUS "Found IrrlichtMt headers: ${IRRLICHT_INCLUDE_DIR}")
                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
                set_target_properties(IrrlichtMt::IrrlichtMt PROPERTIES
index b6b545a22ca85536afd141c209171cc481a7e440..8d0e68e0cd7fa2fb297609db662dc98eaff9da7f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -223,8 +223,8 @@ Run it:
 - 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>`.
   - 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.
-  - In that case use `-DIRRLICHT_INCLUDE_DIR=/some/where/irrlicht/include`.
+- 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/irrlichtmt/include`.
 
 - Minetest will use the IrrlichtMt package that is found first, given by the following order:
   1. Specified `IRRLICHTMT_BUILD_DIR` CMake variable
index d33b296d036939b2ec9c38b35689063ec3d53bde..e434b582f183e5ba9be6f61e7148cd4af7d01a16 100644 (file)
@@ -1,21 +1,13 @@
-# Locate Irrlicht or IrrlichtMt headers on system.
+# Locate IrrlichtMt headers on system.
 
-foreach(libname IN ITEMS IrrlichtMt Irrlicht)
-       string(TOLOWER "${libname}" libname2)
-
-       find_path(IRRLICHT_INCLUDE_DIR NAMES irrlicht.h
-               DOC "Path to the directory with IrrlichtMt includes"
-               PATHS
-               /usr/local/include/${libname2}
-               /usr/include/${libname2}
-               /system/develop/headers/${libname2} #Haiku
-               PATH_SUFFIXES "include/${libname2}"
-       )
-
-       if(IRRLICHT_INCLUDE_DIR)
-               break()
-       endif()
-endforeach()
+find_path(IRRLICHT_INCLUDE_DIR NAMES irrlicht.h
+       DOC "Path to the directory with IrrlichtMt includes"
+       PATHS
+       /usr/local/include/irrlichtmt
+       /usr/include/irrlichtmt
+       /system/develop/headers/irrlichtmt #Haiku
+       PATH_SUFFIXES "include/irrlichtmt"
+)
 
 # Handholding for users
 if(IRRLICHT_INCLUDE_DIR AND (NOT IS_DIRECTORY "${IRRLICHT_INCLUDE_DIR}" OR
index 16327ec308fd75b1b4dfcf1a230611240bbc6ba3..27034b4fbcac196933305b5f6023aafcf169eb8c 100644 (file)
@@ -9,9 +9,6 @@ install_linux_deps() {
 
        if [[ "$1" == "--no-irr" ]]; then
                shift
-       elif [[ "$1" == "--old-irr" ]]; then
-               shift
-               pkgs+=(libirrlicht-dev)
        else
                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