-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.py
42 lines (31 loc) · 1.01 KB
/
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
42
name = "embree"
version = "3.13.5"
description = """
Intel® Embree is a collection of high-performance ray tracing kernels, developed at Intel. The target users
of Intel® Embree are graphics application engineers who want to improve the performance of their photo-realistic
rendering application by leveraging Embree's performance-optimized ray tracing kernels.
"""
authors = [
"Intel",
]
requires = [
"cmake-3",
]
variants = [
[
"platform-linux",
],
]
build_system = "cmake"
with scope("config") as config:
config.build_thread_count = "logical_cores"
def commands():
env.LIBRARY_PATH.prepend("{root}/lib")
env.LD_LIBRARY_PATH.prepend("{root}/lib")
env.CPATH.prepend("{root}/include")
env.embree_DIR.set("{root}")
env.CMAKE_MODULE_PATH.prepend("{root}/lib/cmake/embree-{version}")
# Helper environment variables.
env.EMBREE_BINARY_PATH.set("{root}/bin")
env.EMBREE_INCLUDE_PATH.set("{root}/include")
env.EMBREE_LIBRARY_PATH.set("{root}/lib")