-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.py
executable file
·105 lines (89 loc) · 4.02 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
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
# Copyright 2024 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 = '5.10'
from rezbuild import earlybind
return earlybind.version(this, _version)
description = "Hydra delegate for Moonray"
authors = [
'DreamWorks Animation PSW - Hydra Moonray Team',
]
help = ('For assistance, '
"please contact the folio's owner at: [email protected]")
if 'scons' in sys.argv:
build_system = 'scons'
build_system_pbr = 'bart_scons-10'
else:
build_system = 'cmake'
build_system_pbr = 'cmake_modules-1.0'
variants = [
['os-CentOS-7', 'refplat-vfx2021.0', 'usd_imaging-0.21.8.x.2', 'opt_level-optdebug', 'python-3.7'],
['os-CentOS-7', 'refplat-vfx2021.0', 'usd_imaging-0.21.8.x.2', 'opt_level-debug', 'python-3.7'],
['os-CentOS-7', 'refplat-vfx2021.0', 'usd_imaging-0.22.5.x.2', 'opt_level-optdebug', 'python-3.7'],
['os-CentOS-7', 'refplat-vfx2021.0', 'usd_imaging-0.22.5.x.2', 'opt_level-debug', 'python-3.7'],
['os-CentOS-7', 'refplat-vfx2022.0', 'usd_imaging-0.22.5.x.3', 'opt_level-optdebug', 'python-3.9'],
['os-CentOS-7', 'refplat-vfx2022.0', 'usd_imaging-0.22.5.x.3', 'opt_level-debug', 'python-3.9'],
['os-CentOS-7', 'refplat-vfx2021.0', 'usd_imaging-0.21.8.x.2', 'opt_level-optdebug', 'python-2.7'],
['os-CentOS-7', 'refplat-vfx2021.0', 'usd_imaging-0.21.8.x.2', 'opt_level-debug', 'python-2.7'],
['os-rocky-9', 'refplat-vfx2021.0', 'usd_imaging-0.21.8.x.2', 'opt_level-optdebug', 'python-3.7'],
['os-rocky-9', 'refplat-vfx2021.0', 'usd_imaging-0.21.8.x.2', 'opt_level-debug', 'python-3.7'],
['os-rocky-9', 'refplat-vfx2021.0', 'usd_imaging-0.22.5.x.3', 'opt_level-optdebug', 'python-3.7'],
['os-rocky-9', 'refplat-vfx2021.0', 'usd_imaging-0.22.5.x.3', 'opt_level-debug', 'python-3.7'],
['os-rocky-9', 'refplat-vfx2022.0', 'usd_imaging-0.22.5.x.3', 'opt_level-optdebug', 'python-3.9'],
['os-rocky-9', 'refplat-vfx2022.0', 'usd_imaging-0.22.5.x.3', 'opt_level-debug', 'python-3.9'],
['os-rocky-9', 'refplat-vfx2023.0', 'usd_imaging-0.22.5.x.3', 'opt_level-optdebug', 'python-3.10'],
['os-rocky-9', 'refplat-vfx2023.0', 'usd_imaging-0.22.5.x.3', 'opt_level-debug', 'python-3.10'],
]
sconsTargets = {
'refplat-vfx2021.0': ['@install'] + unittestflags + ratsflags,
'refplat-vfx2022.0': ['@install'] + unittestflags + ratsflags,
'refplat-vfx2023.0': ['@install'] + unittestflags + ratsflags,
}
requires = [
'moonray-16.10',
'moonshine_dwa-13.10',
'moonshine-13.10',
'mcrt_computation-14.10',
'arras4_core-4.10',
'mcrt_messages-13.2',
'mcrt_dataio-14.8',
'mkl',
'openimageio-2.3.20.0.x',
]
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",
"requires": ["rats", "opt_level-optdebug", "usd_core_dwa_plugin", "usd_imaging-0.22.5", "moonshine_dwa", "houdini_dwa-19", "python-3.9"]
}
}
def commands():
prependenv('PXR_PLUGIN_PATH', '{root}/plugin/pxr')
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