📦 Added scribe pkg

This commit is contained in:
Edgar 2023-08-15 11:41:45 +02:00
parent fc1d4323ba
commit 994ab9bf27
No known key found for this signature in database
GPG key ID: 3C2E1F2C1C353131
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,4 @@
sources:
"2019.02":
url: "https://github.com/overte-org/scribe/archive/6e10bcb440b1fee2da322c7405858532d0bf403e.tar.gz"
sha256: "fd9a98e88cc6828a2b9f7ee10942af060c4a8b5171ec56fa43b124c0ffb72e07"

View 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)

View file

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