-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.py
41 lines (30 loc) · 902 Bytes
/
package.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
name = "glfw"
version = "3.3.8"
description = """
GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan application development.
It provides a simple, platform-independent API for creating windows, contexts and surfaces, reading input,
handling events, etc.
"""
authors = [
"GLFW Development Team",
]
requires = [
"cmake-3",
"gcc-4.8+",
]
variants = [
[
"platform-linux",
],
]
build_system = "cmake"
with scope("config") as config:
config.build_thread_count = "logical_cores"
def commands():
env.PATH.prepend("{root}/bin")
env.LD_LIBRARY_PATH.prepend("{root}/lib")
env.PKG_CONFIG_PATH.prepend("{root}/lib/pkgconfig")
env.CMAKE_MODULE_PATH.prepend("{root}/lib/cmake/glfw3")
# Helper environment variables.
env.GLFW_INCLUDE_PATH.set("{root}/include")
env.GLFW_LIBRARY_PATH.set("{root}/lib")