🎉 Added ogre3d-caelum

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

View File

@ -0,0 +1,9 @@
sources:
"0.6.4":
url: "https://github.com/OGRECave/ogre-caelum/archive/94913d2040a41148c14001c33a0bdc0f100842f8.zip"
sha256: "9de4159ae8050fd0858b3c1c09005aa50b36079a3a06accfb67203669be9a09e"
patches:
"0.6.4":
- patch_file: "patches/0.6.4/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-caelum"
license = "GNU Lesser General Public License v2.1"
url = "https://github.com/RigsOfRods/Caelum/issues"
description = "Caelum is a library which provides cross-platform socket abstraction"
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)
@@ -18,7 +19,7 @@
INCLUDE(CheckCSourceCompiles)
# define the project
-project(Caelum VERSION 0.6.3)
+project(Caelum VERSION 0.6.4)
# some versioning things
SET(LIB_MAJOR_VERSION ${Caelum_VERSION_MAJOR})

3
ogre-caelum/config.yml Normal file
View File

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