-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
35 lines (26 loc) · 1.24 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
import os
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, CMakeDeps, cmake_layout
from conan.tools.files import copy
import platform
class ImGuiExample(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain"
def requirements(self):
self.requires("tomlplusplus/3.3.0")
self.requires("glfw/3.3.8")
self.requires("imgui/1.90.4-docking")
self.requires("vulkan-loader/1.3.239.0")
self.requires("vulkan-headers/1.3.239.0")
if self.settings.os == "Linux":
self.requires("libalsa/1.2.7.2")
def generate(self):
imgui_res_bindings = os.path.join(self.dependencies["imgui"].package_folder,
"res", "bindings")
imterm_conan_imgui_bindings = os.path.join(self.source_folder, "deps", "conan", "imgui", "bindings")
copy(self, "*glfw*", imgui_res_bindings, imterm_conan_imgui_bindings)
#copy(self, "*opengl3*", imgui_res_bindings, imterm_conan_imgui_bindings)
copy(self, "*vulkan*", imgui_res_bindings, imterm_conan_imgui_bindings)
copy(self, "*win32*", imgui_res_bindings, imterm_conan_imgui_bindings)
def layout(self):
cmake_layout(self)