-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
71 lines (65 loc) · 2.12 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import os
from conan import ConanFile
from conan.tools.cmake import cmake_layout
from conan.tools.files import copy
class OpenGLStudy(ConanFile):
settings = 'os', 'compiler', 'build_type', 'arch'
generators = 'CMakeDeps', 'CMakeToolchain'
def requirements(self):
self.requires('fmt/10.2.1')
self.requires('pulseaudio/17.0', override=True)
self.requires('sdl/[~2.30]', override=True)
self.requires('imgui/[~1]')
self.requires('glfw/3.3.8')
self.requires('freeglut/3.4.0')
self.requires('argparse/2.9')
self.requires('gsl-lite/0.41.0')
self.requires('doctest/2.4.11')
self.requires('spdlog/1.12.0')
self.requires('sdl_image/2.6.3')
self.requires('ktx/4.3.2')
# Use this for entity component system
# self.requires('flecs/3.2.11')
# This needs an update
# self.requires('joltphysics/3.0.1')
def configure(self):
self.options["sdl"].pulse = False
def generate(self):
copy(
self,
'*glfw*',
os.path.join(
self.dependencies['imgui'].package_folder,
'res',
'bindings'
),
os.path.join(self.source_folder, 'build', 'bindings'))
copy(
self,
'*opengl3*',
os.path.join(
self.dependencies['imgui'].package_folder,
'res',
'bindings'
),
os.path.join(self.source_folder, 'build', 'bindings'))
copy(
self,
'*sdl2*',
os.path.join(
self.dependencies['imgui'].package_folder,
'res',
'bindings'
),
os.path.join(self.source_folder, 'build', 'bindings'))
copy(
self,
'*sdlrenderer2*',
os.path.join(
self.dependencies['imgui'].package_folder,
'res',
'bindings'
),
os.path.join(self.source_folder, 'build', 'bindings'))
def layout(self):
cmake_layout(self)