-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpackage.py
More file actions
128 lines (112 loc) · 3.09 KB
/
Copy pathpackage.py
File metadata and controls
128 lines (112 loc) · 3.09 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Copyright 2024-2025 DreamWorks Animation LLC
# SPDX-License-Identifier: Apache-2.0
# -*- coding: utf-8 -*-
import os
name = 'moonshine_usd'
if 'early' not in locals() or not callable(early):
def early(): return lambda x: x
@early()
def version():
"""
Increment the build in the version.
"""
_version = '15.6'
from rezbuild import earlybind
return earlybind.version(this, _version)
description = 'USD Shaders for Moonray'
authors = [
'PSW Rendering and Shading',
'moonbase-dev@dreamworks.com',
'Ron.Woods@dreamworks.com'
]
help = ('For assistance, '
"please contact the folio's owner at: moonbase-dev@dreamworks.com")
variants = [
[ # variant 0
'os-rocky-9',
'opt_level-optdebug',
'refplat-vfx2023.1',
'gcc-11.x',
'usd_core-0.23.8.x'
],
[ # variant 1
'os-rocky-9',
'opt_level-debug',
'refplat-vfx2023.1',
'gcc-11.x',
'usd_core-0.23.8.x'
],
[ # variant 2
'os-rocky-9',
'opt_level-optdebug',
'refplat-vfx2023.1',
'clang-17.0.6.x',
'usd_core-0.23.8.x'
],
[ # variant 3
'os-rocky-9',
'opt_level-optdebug',
'refplat-vfx2024.0',
'gcc-11.x',
'usd_core-0.24.3.x'
],
[ # variant 4
'os-rocky-9',
'opt_level-optdebug',
'refplat-vfx2025.0',
'gcc-11.x',
'usd_core-0.25.5.1.x'
],
[ # variant 5
'os-rocky-9',
'opt_level-optdebug',
'refplat-houdini21.0',
'gcc-11.x',
'usd_core-0.25.5.1.x'
],
[ # variant 6
'os-rocky-9',
'opt_level-optdebug',
'refplat-vfx2022.0',
'gcc-9.3.x.1',
'usd_core-0.22.5.x'
],
]
conf_rats_variants = variants[0:2]
conf_CI_variants = variants
# Add ephemeral package to each variant.
for i, variant in enumerate(variants):
variant.insert(0, '.moonshine_usd_variant-%d' % i)
requires = [
'moonray-18.4',
'moonshine-15.6',
'scene_rdl2-16.2',
]
private_build_requires = [
'cmake_modules-1.1',
'usd_imaging',
'cppunit',
'ispc-1.20.0.x',
]
commandstr = lambda i: "cd build/"+os.path.join(*variants[i])+"; ctest -j $(nproc)"
testentry = lambda i: ("variant%d" % i,
{ "command": commandstr(i),
"requires": ["cmake"],
"on_variants": {
"type": "requires",
"value": [".moonshine_usd_variant-%d" % i],
},
"run_on": "explicit",
}, )
testlist = [testentry(i) for i in range(len(variants))]
tests = dict(testlist)
def commands():
prependenv('CMAKE_PREFIX_PATH', '{root}')
prependenv('SOFTMAP_PATH', '{root}')
prependenv('MOONRAY_DSO_PATH', '{root}/rdl2dso')
prependenv('RDL2_DSO_PATH', '{root}/rdl2dso')
prependenv('LD_LIBRARY_PATH', '{root}/lib')
prependenv('PATH', '{root}/bin')
prependenv('MOONRAY_CLASS_PATH', '{root}/coredata')
uuid = 'bb291e0f-ce27-445d-b280-320a5f23e9b9'
config_version = 0