🎉 Added OIS

This commit is contained in:
Edgar 2021-08-06 17:55:39 +00:00
parent fb90c5e78e
commit a2f4dca16e
No known key found for this signature in database
GPG Key ID: 17D930BB616061A5
3 changed files with 42 additions and 0 deletions

4
ois/all/conandata.yml Normal file
View File

@ -0,0 +1,4 @@
sources:
"1.5.1":
url: "https://github.com/wgois/OIS/archive/refs/tags/v1.5.1.tar.gz"
sha256: "614f6ef6d69cf6d84f1b50efff46a6c1acce426933e5f0dcf29862ea8332af73"

35
ois/all/conanfile.py Normal file
View File

@ -0,0 +1,35 @@
from conans import ConanFile, CMake, tools
from conans.tools import os_info, SystemPackageTool
class OisConan(ConanFile):
name = "ois"
license = "zlib"
author = "Edgar Edgar@AnotherFoxGuy.com"
url = "https://github.com/AnotherFoxGuy/conan-OIS/"
description = "Object oriented Input System"
topics = ("Input", "System")
settings = "os", "compiler", "build_type", "arch"
def system_requirements(self):
if os_info.is_linux:
if os_info.with_apt:
installer = SystemPackageTool()
installer.install("libx11-dev")
def source(self):
tools.get(**self.conan_data["sources"][self.version], strip_root=True)
def build(self):
cmake = CMake(self)
cmake.definitions['OIS_BUILD_DEMOS'] = 'OFF'
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def package_info(self):
self.cpp_info.includedirs = ['include', 'include/ois']
self.cpp_info.libs = tools.collect_libs(self)

3
ois/config.yml Normal file
View File

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