43 lines
1.1 KiB
Python
43 lines
1.1 KiB
Python
from conan import ConanFile
|
|
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps
|
|
|
|
|
|
class glsl_basicRecipe(ConanFile):
|
|
name = "glsl-basic"
|
|
version = "0.1.0"
|
|
package_type = "application"
|
|
|
|
# Optional metadata
|
|
license = "<Put the package license here>"
|
|
author = "<Put your name here> <And your email here>"
|
|
url = "<Package recipe repository url here, for issues about the package>"
|
|
description = "<Description of glsl-basic package here>"
|
|
topics = ("<Put some tag here>", "<here>", "<and here>")
|
|
|
|
# Binary configuration
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
|
|
# Sources are located in the same place as this recipe, copy them to the recipe
|
|
exports_sources = "CMakeLists.txt", "src/*"
|
|
|
|
def layout(self):
|
|
cmake_layout(self)
|
|
|
|
def generate(self):
|
|
deps = CMakeDeps(self)
|
|
deps.generate()
|
|
tc = CMakeToolchain(self)
|
|
tc.generate()
|
|
|
|
def build(self):
|
|
cmake = CMake(self)
|
|
cmake.configure()
|
|
cmake.build()
|
|
|
|
def package(self):
|
|
cmake = CMake(self)
|
|
cmake.install()
|
|
|
|
|
|
|
|
|