-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
41 lines (34 loc) · 1.21 KB
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from conans import ConanFile, CMake
import conans.tools as tools
import shutil, os
class AT2(ConanFile):
settings = "os", "compiler", "build_type", "arch"
requires = ["glm/0.9.9.8", "stb/20200203", "assimp/5.0.1", "glad/0.1.34", "nlohmann_json/3.9.1"]
generators = "cmake"
options = {
"use_sdl": ["ON", "OFF", "True", "False"],
"use_gtest": ["ON", "OFF", "True", "False"]
}
default_options = {
"glad:gl_version": "4.5",
"glad:gl_profile" : "core",
"glad:extensions" : "GL_ARB_texture_filter_anisotropic, GL_ARB_seamless_cubemap_per_texture"
}
def requirements(self):
if self.options.use_sdl in ["ON", "True"]:
self.requires("sdl/[>=2.0.18]")
else:
self.requires("glfw/[>=3.3.2]")
if self.options.use_gtest in ["ON", "True"]:
self.requires("gtest/[>=1.10.0]")
def imports(self):
self.copy("*.dll", dst="bin", src="bin")
self.copy("*.dylib*", dst="bin", src="lib")
def configure(self):
if not os.path.isdir("fx-gltf"):
git = tools.Git(folder="fx-gltf")
git.clone("https://github.com/jessey-git/fx-gltf")
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()