-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.py
49 lines (38 loc) · 992 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
42
43
44
45
46
47
48
49
name = "3delight"
version = "1.7.15"
authors = [
"DNA Research"
]
description = \
"""
3Delight is a CPU-based path tracer, fully built on the new NSI standard and OSL.
"""
requires = [
"cmake-3+",
"license_manager"
]
variants = [
["platform-linux"]
]
tools = [
"i-display",
"licserver",
"licutils",
"nsidepends",
"oslc",
"renderdl",
"tdlmake"
]
build_system = "cmake"
with scope("config") as config:
config.build_thread_count = "logical_cores"
uuid = "3delight-{version}".format(version=str(version))
def commands():
# We setup the correct environment variable in place of the ".3delight_bash" script coming with 3Delight.
env.PATH.prepend("{root}/bin")
env.LD_LIBRARY_PATH.prepend("{root}/lib")
env.DELIGHT.append("{root}")
# Helper environment variables.
env.DELIGHT_BINARY_PATH.set("{root}/bin")
env.DELIGHT_INCLUDE_PATH.set("{root}/include")
env.DELIGHT_LIBRARY_PATH.set("{root}/lib")