mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 11:46:34 +02:00
📦 Added scribe pkg
This commit is contained in:
parent
fc1d4323ba
commit
994ab9bf27
3 changed files with 43 additions and 0 deletions
4
conan-recipes/scribe/all/conandata.yml
Normal file
4
conan-recipes/scribe/all/conandata.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
sources:
|
||||
"2019.02":
|
||||
url: "https://github.com/overte-org/scribe/archive/6e10bcb440b1fee2da322c7405858532d0bf403e.tar.gz"
|
||||
sha256: "fd9a98e88cc6828a2b9f7ee10942af060c4a8b5171ec56fa43b124c0ffb72e07"
|
36
conan-recipes/scribe/all/conanfile.py
Normal file
36
conan-recipes/scribe/all/conanfile.py
Normal file
|
@ -0,0 +1,36 @@
|
|||
import os
|
||||
from conan import ConanFile
|
||||
from conan.tools.files import get, collect_libs
|
||||
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
|
||||
|
||||
class ScribeConan(ConanFile):
|
||||
name = "scribe"
|
||||
license = "Apache License 2.0"
|
||||
url = "https://github.com/overte-org/scribe"
|
||||
description = "Scribe is a language for generating glsl files from templates"
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
|
||||
def layout(self):
|
||||
cmake_layout(self)
|
||||
|
||||
def source(self):
|
||||
get(self, **self.conan_data["sources"][self.version], strip_root=True)
|
||||
|
||||
def generate(self):
|
||||
tc = CMakeToolchain(self)
|
||||
tc.generate()
|
||||
|
||||
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 = []
|
||||
bin_dir = os.path.join(self.package_folder, "tools")
|
||||
self.output.info('Appending PATH environment variable: {}'.format(bin_dir))
|
||||
self.env_info.PATH.append(bin_dir)
|
3
conan-recipes/scribe/config.yml
Normal file
3
conan-recipes/scribe/config.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
versions:
|
||||
"2019.02":
|
||||
folder: all
|
Loading…
Reference in a new issue