-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
50 lines (37 loc) · 1.17 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
42
43
44
45
46
47
48
49
50
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps
class vulkandemoRecipe(ConanFile):
name = "vulkandemo"
version = "1.0.0"
package_type = "application"
# Sources are located in the same place as this recipe, copy them to the recipe
exports_sources = "CMakeLists.txt", "src/*"
requires = [
"doctest/2.4.11",
"sdl/2.30.8",
"spdlog/1.14.1",
"fmt/10.2.1",
"ms-gsl/4.1.0",
"strong_type/v14",
"range-v3/0.12.0",
"frozen/1.2.0",
"etl/20.39.4"
]
settings = "build_type", "os"
def layout(self):
cmake_layout(self)
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
tc.variables["CMAKE_C_VISIBILITY_PRESET"] = "default"
tc.variables["CMAKE_CXX_VISIBILITY_PRESET"] = "hidden"
tc.variables["CMAKE_INTERPROCEDURAL_OPTIMIZATION"] = "ON"
tc.generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()