📦 Added nvidia-texture-tools pkg

This commit is contained in:
Edgar 2023-08-15 12:32:53 +02:00 committed by Julian Groß
parent 9e1e6e2e91
commit fd52f2a83a
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,4 @@
sources:
"2023.01":
url: "https://github.com/JulianGro/nvidia-texture-tools/archive/2a56c2321e5923b00c59a19f1b1528a72b2e0f6e.tar.gz"
sha256: "aaef7f283509fb57a683a00cfae2e5d6b48b809ea936bb5af523afa7b200e26f"

View file

@ -0,0 +1,34 @@
import os
from conan import ConanFile
from conan.tools.files import get, collect_libs
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
class NTTConan(ConanFile):
name = "nvidia-texture-tools"
license = "MIT"
url = "https://github.com/JulianGro/nvidia-texture-tools"
description = "Texture processing tools with support for Direct3D 10 and 11 formats."
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.variables["BUILD_TESTS"] = "OFF"
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.libs = collect_libs(self)

View file

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