forked from GafferHQ/dependencies
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
96 lines (70 loc) · 2.13 KB
/
config.py
File metadata and controls
96 lines (70 loc) · 2.13 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
{
"downloads" : [
"https://github.com/ImageEngine/cortex/archive/refs/tags/10.7.0.0a6.tar.gz"
],
"url" : "https://github.com/ImageEngine/cortex",
"license" : "LICENSE",
"dependencies" : [
"Python", "OpenImageIO", "OpenEXR", "Boost", "OpenShadingLanguage",
"Blosc", "FreeType", "GLEW", "TBB", "OpenVDB", "USD"
],
"environment" : {
"LD_LIBRARY_PATH" : "{buildDir}/lib",
},
"commands" : [
# Build first.
"scons {args}",
# Then install separately. This avoids a problem with parallel builds - see
# https://github.com/ImageEngine/cortex/issues/1308.
"scons install {args}",
],
"variables" : {
"args" :
" -j {jobs}"
" CXX=`which g++`"
" CXXSTD=c++{c++Standard}"
" INSTALL_PREFIX={buildDir}"
" INSTALL_DOC_DIR={buildDir}/doc/cortex"
" INSTALL_PYTHON_DIR={buildDir}/python"
" INSTALL_IECORE_OPS=''"
" PYTHON_CONFIG={buildDir}/bin/python{pythonMajorVersion}-config"
" PYTHON={buildDir}/bin/python"
" BOOST_INCLUDE_PATH={buildDir}/include/boost"
" LIBPATH={buildDir}/lib"
" BOOST_LIB_SUFFIX=''"
" OPENEXR_INCLUDE_PATH={buildDir}/include"
" ILMBASE_INCLUDE_PATH={buildDir}/include/Imath"
" VDB_INCLUDE_PATH={buildDir}/include"
" TBB_INCLUDE_PATH={buildDir}/include"
" OIIO_INCLUDE_PATH={buildDir}/include"
" OSL_INCLUDE_PATH={buildDir}/include"
" BLOSC_INCLUDE_PATH={buildDir}/include"
" FREETYPE_INCLUDE_PATH={buildDir}/include/freetype2"
" WITH_GL=1"
" GLEW_INCLUDE_PATH={buildDir}/include/GL"
" NUKE_ROOT="
" USD_LIB_PREFIX=usd_"
" ENV_VARS_TO_IMPORT='LD_LIBRARY_PATH TERM'"
" OPTIONS=''"
" {extraArgs}"
" SAVE_OPTIONS=gaffer.options",
"extraArgs" : "",
},
"manifest" : [
"include/IECore*",
"lib/libIECore*{sharedLibraryExtension}",
"python/IECore*",
"glsl/IECoreGL",
"glsl/*.frag",
"glsl/*.vert",
"resources/IECoreUSD/plugInfo.json",
],
"platform:macos" : {
"variables" : {
# On Mac, `python3-config --ldflags` is broken, so we specify the flags explicitly.
"extraArgs" :
" PYTHON_LIB_PATH={buildDir}/lib/Python.framework/Versions/{pythonVersion}/lib"
" PYTHON_LINK_FLAGS=-lpython{pythonVersion}"
},
},
}