🎉 Added ogre3d-pagedgeometry

This commit is contained in:
Edgar 2021-08-04 16:59:10 +00:00 committed by GitHub
parent 3c247036eb
commit 4333a5e730
4 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,9 @@
sources:
"1.2.1":
url: "https://github.com/OGRECave/ogre-pagedgeometry/archive/7c9295f771e8c7973efc04d53283978ccd44fc9b.zip"
sha256: "513043eecf1aaf6f8b2335c953b0664128aa492007fe3d93068e5f4be436093a"
patches:
"1.2.1":
- patch_file: "patches/1.2.1/CMakeLists.txt.patch"
requirements:
- "ogre3d/[1.x]@anotherfoxguy/stable"

View File

@ -0,0 +1,33 @@
from conans import ConanFile, CMake, tools
class CaelumConan(ConanFile):
name = "ogre3d-pagedgeometry"
license = "GNU Lesser General Public License v2.1"
url = "https://github.com/RigsOfRods/Caelum/issues"
description = "PagedGeometry is a plugin for OGRE for rendering of dense vegetation "
settings = "os", "compiler", "build_type", "arch"
generators = "cmake_paths"
exports_sources = "patches/**"
def requirements(self):
for req in self.conan_data["requirements"]:
self.requires(req)
def source(self):
tools.get(**self.conan_data["sources"][self.version], strip_root=True)
for patch in self.conan_data["patches"][self.version]:
tools.patch(**patch)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def package_info(self):
self.cpp_info.includedirs = ['include/Caelum']
self.cpp_info.libs = tools.collect_libs(self)

View File

@ -0,0 +1,19 @@
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -9,6 +9,7 @@
cmake_minimum_required( VERSION 3.0.2 )
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake )
+include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
# add some functions we use that are shipped with cmake
INCLUDE(CheckLibraryExists)
@@ -20,7 +21,7 @@
# some versioning things
SET(LIB_MAJOR_VERSION "1")
SET(LIB_MINOR_VERSION "2")
-SET(LIB_BUILD_VERSION "0")
+SET(LIB_BUILD_VERSION "1")
SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_BUILD_VERSION}")
IF(NOT DEFINED LIB_INSTALL_DIR)
SET(LIB_INSTALL_DIR "lib${LIB_SUFFIX}")

View File

@ -0,0 +1,3 @@
versions:
"1.2.1":
folder: all