From 23b026d664831efd182b29391314a38a897230b4 Mon Sep 17 00:00:00 2001 From: Edgar Date: Sun, 28 Nov 2021 16:48:49 +0000 Subject: [PATCH] :tada: Added OGRE 13.2 --- .github/workflows/conan-pkg.yml | 26 +++++++++---------- ogre/13/conandata.yml | 23 +++++----------- ogre/13/conanfile.py | 4 +++ ogre/13/patches/13.0.0/CMakeLists.txt.patch | 10 ------- .../13.0.0/FixFindOpenGLES2.cmake.patch | 11 -------- .../patches/13.0.1/FindPkgMacros.cmake.patch | 11 -------- .../13.0.1/FixFindOpenGLES2.cmake.patch | 11 -------- ogre/13/patches/13.0.1/pugixml-fix.patch | 15 ----------- .../{13.0.1 => 13.2.0}/CMakeLists.txt.patch | 2 +- .../FindPkgMacros.cmake.patch | 0 .../{13.0.0 => 13.2.0}/pugixml-fix.patch | 0 ogre/config.yml | 8 +++--- tools/cpfd.sh | 4 +++ tools/diffo.sh | 4 +++ 14 files changed, 36 insertions(+), 93 deletions(-) delete mode 100644 ogre/13/patches/13.0.0/CMakeLists.txt.patch delete mode 100644 ogre/13/patches/13.0.0/FixFindOpenGLES2.cmake.patch delete mode 100644 ogre/13/patches/13.0.1/FindPkgMacros.cmake.patch delete mode 100644 ogre/13/patches/13.0.1/FixFindOpenGLES2.cmake.patch delete mode 100644 ogre/13/patches/13.0.1/pugixml-fix.patch rename ogre/13/patches/{13.0.1 => 13.2.0}/CMakeLists.txt.patch (93%) rename ogre/13/patches/{13.0.0 => 13.2.0}/FindPkgMacros.cmake.patch (100%) rename ogre/13/patches/{13.0.0 => 13.2.0}/pugixml-fix.patch (100%) create mode 100755 tools/cpfd.sh create mode 100755 tools/diffo.sh diff --git a/.github/workflows/conan-pkg.yml b/.github/workflows/conan-pkg.yml index f07ad64..fb956ba 100644 --- a/.github/workflows/conan-pkg.yml +++ b/.github/workflows/conan-pkg.yml @@ -12,19 +12,19 @@ jobs: fail-fast: true matrix: config: - # - name: Ubuntu Debug - # os: ubuntu-latest - # conan-profile: ubuntu-debug - # - name: Ubuntu Release - # os: ubuntu-latest - # conan-profile: ubuntu-release + - name: Ubuntu Debug + os: ubuntu-latest + conan-profile: ubuntu-debug + - name: Ubuntu Release + os: ubuntu-latest + conan-profile: ubuntu-release - # - name: Windows 2016 Debug - # os: windows-2016 - # conan-profile: vs-2016-debug - # - name: Windows 2016 Release - # os: windows-2016 - # conan-profile: vs-2016-release + - name: Windows 2016 Debug + os: windows-2016 + conan-profile: vs-2016-debug + - name: Windows 2016 Release + os: windows-2016 + conan-profile: vs-2016-release - name: Windows 2022 Debug os: windows-2022 @@ -55,7 +55,7 @@ jobs: shell: cmake -P {0} run: | file(MAKE_DIRECTORY $ENV{DXSDK_DIR}) - file(DOWNLOAD http://prdownloads.sourceforge.net/rigs-of-rods/DirectX-SDK.zip "$ENV{TMP}/DirectX.zip" SHOW_PROGRESS) + file(DOWNLOAD https://cdn.anotherfoxguy.com/DirectX-SDK.zip "$ENV{TMP}/DirectX.zip" SHOW_PROGRESS) execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf "$ENV{TMP}/DirectX.zip" WORKING_DIRECTORY "$ENV{DXSDK_DIR}") - name: Run diff --git a/ogre/13/conandata.yml b/ogre/13/conandata.yml index e1c79c4..aeba643 100644 --- a/ogre/13/conandata.yml +++ b/ogre/13/conandata.yml @@ -1,21 +1,12 @@ sources: - "13.0.0": - url: "https://github.com/OGRECave/ogre/archive/refs/tags/v13.0.0.tar.gz" - sha256: "404c91b0ab27edb45a643bc268143589c8f5160125d531cbf5d958fa55136063" - "13.0.1": - url: "https://github.com/OGRECave/ogre/archive/refs/tags/v13.0.1.tar.gz" - sha256: "8d31a79d37f74e5af25e56a0a70928079e771f7cea50ef041e04bf235c3f701a" + "13.2.0": + url: "https://github.com/OGRECave/ogre/archive/refs/tags/v13.2.0.tar.gz" + sha256: "1bcac0915116c6fa2435f30a016b0225d146785481c927b70d995ea459de5b6a" patches: - "13.0.0": - - patch_file: "patches/13.0.0/CMakeLists.txt.patch" - - patch_file: "patches/13.0.0/pugixml-fix.patch" - - patch_file: "patches/13.0.0/FindPkgMacros.cmake.patch" - - patch_file: "patches/13.0.1/FixFindOpenGLES2.cmake.patch" - "13.0.1": - - patch_file: "patches/13.0.1/CMakeLists.txt.patch" - - patch_file: "patches/13.0.1/pugixml-fix.patch" - - patch_file: "patches/13.0.1/FindPkgMacros.cmake.patch" - - patch_file: "patches/13.0.1/FixFindOpenGLES2.cmake.patch" + "13.2.0": + - patch_file: "patches/13.2.0/CMakeLists.txt.patch" + - patch_file: "patches/13.2.0/pugixml-fix.patch" + - patch_file: "patches/13.2.0/FindPkgMacros.cmake.patch" requirements: - "zlib/[1.x]" - "zziplib/[0.13.x]" diff --git a/ogre/13/conanfile.py b/ogre/13/conanfile.py index affbc1f..5f49cac 100644 --- a/ogre/13/conanfile.py +++ b/ogre/13/conanfile.py @@ -21,6 +21,10 @@ class OGREConan(ConanFile): installer = SystemPackageTool() installer.install("libx11-dev") installer.install("libxaw7-dev") + installer.install("libxrandr-dev") + installer.install("libgles2-mesa-dev") + installer.install("libvulkan-dev") + installer.install("glslang-dev") def source(self): tools.get(**self.conan_data["sources"][self.version], strip_root=True) diff --git a/ogre/13/patches/13.0.0/CMakeLists.txt.patch b/ogre/13/patches/13.0.0/CMakeLists.txt.patch deleted file mode 100644 index 99fc08d..0000000 --- a/ogre/13/patches/13.0.0/CMakeLists.txt.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- CMakeLists.txt -+++ CMakeLists.txt -@@ -71,6 +71,7 @@ - - # Include necessary submodules - set(CMAKE_MODULE_PATH -+ "${CMAKE_BINARY_DIR}" - "${PROJECT_SOURCE_DIR}/CMake" - "${PROJECT_SOURCE_DIR}/CMake/Utils" - "${PROJECT_SOURCE_DIR}/CMake/Packages" \ No newline at end of file diff --git a/ogre/13/patches/13.0.0/FixFindOpenGLES2.cmake.patch b/ogre/13/patches/13.0.0/FixFindOpenGLES2.cmake.patch deleted file mode 100644 index 9986338..0000000 --- a/ogre/13/patches/13.0.0/FixFindOpenGLES2.cmake.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- CMake/Packages/FindOpenGLES2.cmake -+++ CMake/Packages/FindOpenGLES2.cmake -@@ -23,6 +23,8 @@ - # EGL_INCLUDE_DIR - the EGL include directory - # EGL_LIBRARIES - Link these to use EGL - -+include(FindPkgMacros) -+ - IF(APPLE) - create_search_paths(/Developer/Platforms) - findpkg_framework(OpenGLES2) diff --git a/ogre/13/patches/13.0.1/FindPkgMacros.cmake.patch b/ogre/13/patches/13.0.1/FindPkgMacros.cmake.patch deleted file mode 100644 index 6d62fc4..0000000 --- a/ogre/13/patches/13.0.1/FindPkgMacros.cmake.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- CMake/Utils/FindPkgMacros.cmake -+++ CMake/Utils/FindPkgMacros.cmake -@@ -82,7 +82,7 @@ - if (${PREFIX}_FWK) - set(${PREFIX} ${${PREFIX}_FWK}) - elseif (${PREFIX}_REL AND ${PREFIX}_DBG) -- set(${PREFIX} optimized ${${PREFIX}_REL} debug ${${PREFIX}_DBG}) -+ set(${PREFIX} "$<$:${${PREFIX}_DBG}>$<$>:${${PREFIX}_REL}>") - elseif (${PREFIX}_REL) - set(${PREFIX} ${${PREFIX}_REL}) - elseif (${PREFIX}_DBG) diff --git a/ogre/13/patches/13.0.1/FixFindOpenGLES2.cmake.patch b/ogre/13/patches/13.0.1/FixFindOpenGLES2.cmake.patch deleted file mode 100644 index 9986338..0000000 --- a/ogre/13/patches/13.0.1/FixFindOpenGLES2.cmake.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- CMake/Packages/FindOpenGLES2.cmake -+++ CMake/Packages/FindOpenGLES2.cmake -@@ -23,6 +23,8 @@ - # EGL_INCLUDE_DIR - the EGL include directory - # EGL_LIBRARIES - Link these to use EGL - -+include(FindPkgMacros) -+ - IF(APPLE) - create_search_paths(/Developer/Platforms) - findpkg_framework(OpenGLES2) diff --git a/ogre/13/patches/13.0.1/pugixml-fix.patch b/ogre/13/patches/13.0.1/pugixml-fix.patch deleted file mode 100644 index b132061..0000000 --- a/ogre/13/patches/13.0.1/pugixml-fix.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- Tools/XMLConverter/CMakeLists.txt -+++ Tools/XMLConverter/CMakeLists.txt -@@ -21,9 +21,10 @@ - src/OgreXMLSkeletonSerializer.cpp - ) - -+message("Fixing OgreXMLConverter") - add_executable(OgreXMLConverter ${HEADER_FILES} ${SOURCE_FILES}) --target_include_directories(OgreXMLConverter PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include) --target_link_libraries(OgreXMLConverter OgreMain pugixml) -+target_include_directories(OgreXMLConverter PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include ${pugixml_INCLUDE_DIRS}) -+target_link_libraries(OgreXMLConverter OgreMain pugixml::pugixml) - - if (OGRE_PROJECT_FOLDERS) - set_property(TARGET OgreXMLConverter PROPERTY FOLDER Tools) diff --git a/ogre/13/patches/13.0.1/CMakeLists.txt.patch b/ogre/13/patches/13.2.0/CMakeLists.txt.patch similarity index 93% rename from ogre/13/patches/13.0.1/CMakeLists.txt.patch rename to ogre/13/patches/13.2.0/CMakeLists.txt.patch index 9a81751..3796734 100644 --- a/ogre/13/patches/13.0.1/CMakeLists.txt.patch +++ b/ogre/13/patches/13.2.0/CMakeLists.txt.patch @@ -1,6 +1,6 @@ --- CMakeLists.txt +++ CMakeLists.txt -@@ -71,6 +71,7 @@ +@@ -76,6 +76,7 @@ # Include necessary submodules set(CMAKE_MODULE_PATH diff --git a/ogre/13/patches/13.0.0/FindPkgMacros.cmake.patch b/ogre/13/patches/13.2.0/FindPkgMacros.cmake.patch similarity index 100% rename from ogre/13/patches/13.0.0/FindPkgMacros.cmake.patch rename to ogre/13/patches/13.2.0/FindPkgMacros.cmake.patch diff --git a/ogre/13/patches/13.0.0/pugixml-fix.patch b/ogre/13/patches/13.2.0/pugixml-fix.patch similarity index 100% rename from ogre/13/patches/13.0.0/pugixml-fix.patch rename to ogre/13/patches/13.2.0/pugixml-fix.patch diff --git a/ogre/config.yml b/ogre/config.yml index ec858c3..0b39d80 100644 --- a/ogre/config.yml +++ b/ogre/config.yml @@ -1,9 +1,7 @@ versions: "1.11.6.1": folder: "1.11" - "13.0.0": - folder: "13" - "13.0.1": - folder: "13" "1.12.13": - folder: "1.12" \ No newline at end of file + folder: "1.12" + "13.2.0": + folder: "13" \ No newline at end of file diff --git a/tools/cpfd.sh b/tools/cpfd.sh new file mode 100755 index 0000000..d667bae --- /dev/null +++ b/tools/cpfd.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu + +cp $1 $1.org \ No newline at end of file diff --git a/tools/diffo.sh b/tools/diffo.sh new file mode 100755 index 0000000..a09b801 --- /dev/null +++ b/tools/diffo.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu + +diff -u $1.org $1 > $1.diff \ No newline at end of file