-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpackage.py
More file actions
executable file
·138 lines (121 loc) · 3.68 KB
/
package.py
File metadata and controls
executable file
·138 lines (121 loc) · 3.68 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
129
130
131
132
133
134
135
136
137
138
# Copyright 2024-2025 DreamWorks Animation LLC
# SPDX-License-Identifier: Apache-2.0
# -*- coding: utf-8 -*-
import os
import sys
unittestflags = (['@run_all', '--unittest-xml']
if os.environ.get('BROKEN_CUSTOM_ARGS_UNITTESTS') else [])
ratsflags = (['@rats'] if os.environ.get('BROKEN_CUSTOM_ARGS_RATS') else [])
name = 'hdMoonray'
if 'early' not in locals() or not callable(early):
def early(): return lambda x: x
@early()
def version():
_version = '7.6'
from rezbuild import earlybind
return earlybind.version(this, _version)
description = "Hydra delegate for Moonray"
authors = [
'DreamWorks Animation PSW - Hydra Moonray Team',
'moonbase-dev@dreamworks.com',
'hd-moonray@dreamworks.com'
]
help = ('For assistance, '
"please contact the folio's owner at: moonbase-dev@dreamworks.com")
if 'scons' in sys.argv:
build_system = 'scons'
build_system_pbr = 'bart_scons-10'
else:
build_system = 'cmake'
build_system_pbr = 'cmake_modules-1.1'
variants = [
[ # variant 0
'os-rocky-9',
'refplat-vfx2023.1',
'usd_imaging-0.23.8.x',
'openimageio-2.4.8.0.x',
'opt_level-optdebug',
'python-3.10'
],
[ # variant 1
'os-rocky-9',
'refplat-vfx2023.1',
'usd_imaging-0.23.8.x',
'openimageio-2.4.8.0.x',
'opt_level-debug',
'python-3.10'
],
[ # variant 2
'os-rocky-9',
'refplat-vfx2024.0',
'usd_imaging-0.24.3.x',
'openimageio-2.4.8.0.x',
'opt_level-optdebug',
'python-3.11'
],
[ # variant 3
'os-rocky-9',
'refplat-vfx2025.0',
'usd_imaging-0.25.5.1.x',
'openimageio-3.0',
'opt_level-optdebug',
'python-3.11'
],
[ # variant 4
'os-rocky-9',
'refplat-houdini21.0',
'usd_imaging-0.25.5.1.x.5',
'openimageio-3.0',
'opt_level-optdebug',
'python-3.11'
],
[ # variant 5
'os-rocky-9',
'refplat-vfx2022.0',
'usd_imaging-0.22.5.x.4',
'openimageio-2.3.20.0.x',
'opt_level-optdebug',
'python-3.9'
],
]
conf_CI_variants = variants
sconsTargets = {
'refplat-vfx2022.0': ['@install'] + unittestflags + ratsflags,
'refplat-vfx2023.0': ['@install'] + unittestflags + ratsflags,
}
requires = [
'moonray-18.4',
'moonshine_dwa-15.6',
'moonshine-15.6',
'mcrt_computation-16.4',
'arras4_core-4.10',
'mcrt_messages-15.0',
'mcrt_dataio-16.2',
'mkl'
]
private_build_requires = [
build_system_pbr,
'gcc-6.3.x|9.3.x|11.x',
'cppunit'
]
tests = {
# "rats-debug": {
# "command": "rats -a --rco=2 --nohtml --rac --var res 14 --ofwc hd_render",
# "requires": ["rats", "opt_level-debug", "usd_core_dwa_plugin"]
# },
"rats-opt-debug": {
"command": "rats -a --rco=2 --nohtml --rac --maxConcurrentTests=10",
"requires": ["rats", "opt_level-optdebug", "usd_core_dwa_plugin", "moonshine_usd", "usd_imaging-0.22.5", "moonshine_dwa", "houdini_dwa-19", "python-3.9", "gcc", "refplat-vfx2022"]
}
}
def commands():
prependenv('PXR_PLUGINPATH_NAME', '{root}/plugin/pxr') # usd_core-0.23.5 and later
prependenv('PXR_PLUGIN_PATH', '{root}/plugin/pxr') # usd_core-0.23.2 and earlier
prependenv('PATH', '{root}/bin')
prependenv('LD_LIBRARY_PATH', '{root}/lib64')
prependenv('ARRAS_SESSION_PATH', '{root}/sessions/dwa')
prependenv('HOUDINI_PATH', '{root}/plugin/houdini')
prependenv('HDMOONRAY_DOUBLESIDED', '1')
setenv('RATS_CANONICAL_PATH', '/work/rd/raas/hydra/rats/canonicals/')
setenv('RATS_TESTSUITE_PATH', '{root}/testSuite')
config_version = 0