forked from GafferHQ/dependencies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
58 lines (41 loc) · 1.27 KB
/
config.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
{
"downloads" : [
"https://github.com/AcademySoftwareFoundation/openvdb/archive/refs/tags/v10.1.0.tar.gz"
],
"url" : "http://www.openvdb.org",
"license" : "LICENSE",
"dependencies" : [ "Blosc", "TBB", "OpenEXR", "Python", "Boost", "PyBind11" ],
"environment" : {
"LD_LIBRARY_PATH" : "{buildDir}/lib",
},
"commands" : [
"mkdir build",
"cd build && cmake"
" -D CMAKE_INSTALL_PREFIX={buildDir}"
" -D CMAKE_PREFIX_PATH={buildDir}"
# OpenVDB's CMake setup uses GNUInstallDirs, which unhelpfully
# puts the libraries in `lib64`. Coax them back.
" -D CMAKE_INSTALL_LIBDIR={buildDir}/lib"
" -D OPENVDB_BUILD_PYTHON_MODULE=ON"
" -D OPENVDB_BUILD_NANOVDB=ON"
" -D OPENVDB_ENABLE_RPATH=OFF"
" -D CONCURRENT_MALLOC=None"
" -D PYOPENVDB_INSTALL_DIRECTORY={buildDir}/python"
" -D Python_ROOT_DIR={buildDir}"
" -D Python_FIND_STRATEGY=LOCATION"
" -D Python_FIND_VERSION={pythonVersion}"
" -D Python_FIND_VERSION_MAJOR={pythonMajorVersion}"
" -D BOOST_ROOT={buildDir}"
" -D Boost_NO_SYSTEM_PATHS=ON"
" .."
,
"cd build && make VERBOSE=1 -j {jobs} && make install",
],
"manifest" : [
"include/openvdb",
"include/pyopenvdb.h",
"include/nanovdb",
"lib/libopenvdb*{sharedLibraryExtension}*",
"python/pyopenvdb*",
],
}