🎉 Added OIS
This commit is contained in:
parent
fb90c5e78e
commit
a2f4dca16e
4
ois/all/conandata.yml
Normal file
4
ois/all/conandata.yml
Normal 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
35
ois/all/conanfile.py
Normal 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
3
ois/config.yml
Normal file
@ -0,0 +1,3 @@
|
||||
versions:
|
||||
"1.5.1":
|
||||
folder: all
|
Loading…
x
Reference in New Issue
Block a user