dfdfe50ab493a21b10a97ce6f642e5f389273e9c
[blender-staging.git] / build_files / build_environment / cmake / harvest.cmake
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # ***** END GPL LICENSE BLOCK *****
18
19 ########################################################################
20 # Copy all generated files to the proper strucure as blender prefers
21 ########################################################################
22
23 if(NOT DEFINED HARVEST_TARGET)
24         set(HARVEST_TARGET ${CMAKE_CURRENT_SOURCE_DIR}/Harvest)
25 endif()
26 message("HARVEST_TARGET = ${HARVEST_TARGET}")
27
28 if(WIN32)
29
30 if(BUILD_MODE STREQUAL Release)
31         add_custom_target(Harvest_Release_Results
32                                 # Zlib Rename the lib file and copy the include/bin folders
33                 COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/zlib/lib/zlibstatic.lib ${HARVEST_TARGET}/zlib/lib/libz_st.lib &&
34                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/zlib/include/ ${HARVEST_TARGET}/zlib/include/ &&
35                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/zlib/bin/ ${HARVEST_TARGET}/zlib/bin/ &&
36                                 # Boost copy lib + rename boost_1_60 to boost
37                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/boost/lib/ ${HARVEST_TARGET}/boost/lib/ &&
38                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/boost/include/boost-1_60/ ${HARVEST_TARGET}/boost/include/ &&
39                                 # jpeg rename libfile + copy include
40                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/jpg/lib/jpeg-static.lib ${HARVEST_TARGET}/jpeg/lib/libjpeg.lib &&
41                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/jpg/include/ ${HARVEST_TARGET}/jpeg/include/ &&
42                                 # FreeType, straight up copy
43                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/freetype ${HARVEST_TARGET}/freetype &&
44                                 # pthreads, rename include dir
45                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/pthreads/inc/ ${HARVEST_TARGET}/pthreads/include/ &&
46                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/pthreads/lib/ ${HARVEST_TARGET}/pthreads/lib &&
47                                 # ffmpeg copy include+bin
48                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/ffmpeg/include ${HARVEST_TARGET}/ffmpeg/include &&
49                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/ffmpeg/bin ${HARVEST_TARGET}/ffmpeg/lib &&
50                                 # sdl merge bin/lib folder, copy include
51                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/sdl/include/sdl2 ${HARVEST_TARGET}/sdl/include &&
52                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/sdl/lib ${HARVEST_TARGET}/sdl/lib &&
53                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/sdl/bin ${HARVEST_TARGET}/sdl/lib &&
54                                 # openal
55                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/openal/lib/openal32.lib ${HARVEST_TARGET}/openal/lib/openal32.lib &&
56                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/openal/bin/openal32.dll ${HARVEST_TARGET}/openal/lib/openal32.dll &&
57                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/openal/include/ ${HARVEST_TARGET}/openal/include/ &&
58                                 # OpenImageIO
59                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/OpenImageIO/include ${HARVEST_TARGET}/OpenImageIO/include &&
60                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/OpenImageIO/lib ${HARVEST_TARGET}/OpenImageIO/lib &&
61                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/OpenImageIO/bin/idiff.exe ${HARVEST_TARGET}/OpenImageIO/bin/idiff.exe &&
62                                 # openEXR
63                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/ilmbase ${HARVEST_TARGET}/openexr &&
64                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/openexr/lib ${HARVEST_TARGET}/openexr/lib &&
65                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/openexr/include ${HARVEST_TARGET}/openexr/include &&
66                                 # png
67                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/png/lib/libpng16_static.lib ${HARVEST_TARGET}/png/lib/libpng.lib &&
68                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/png/include/ ${HARVEST_TARGET}/png/include/ &&
69                                 # fftw3
70                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/fftw3/lib/libfftw3.a ${HARVEST_TARGET}/fftw3/lib/libfftw.lib &&
71                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/fftw3/include/fftw3.h ${HARVEST_TARGET}/fftw3/include/fftw3.h &&
72                                 # freeglut-> opengl
73                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/freeglut/lib/freeglut_static.lib ${HARVEST_TARGET}/opengl/lib/freeglut_static.lib &&
74                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/freeglut/include/ ${HARVEST_TARGET}/opengl/include/ &&
75                                 # glew-> opengl
76                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/glew/lib/libglew32.lib ${HARVEST_TARGET}/opengl/lib/glew.lib &&
77                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/glew/include/ ${HARVEST_TARGET}/opengl/include/ &&
78                                 # sndfile
79                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/sndfile/lib/libsndfile.dll.a ${HARVEST_TARGET}/sndfile/lib/libsndfile-1.lib &&
80                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/sndfile/bin/libsndfile-1.dll ${HARVEST_TARGET}/sndfile/lib/libsndfile-1.dll &&
81                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/sndfile/include/sndfile.h ${HARVEST_TARGET}/sndfile/include/sndfile.h &&
82                                 # tiff
83                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/tiff/lib/tiff.lib ${HARVEST_TARGET}/tiff/lib/libtiff.lib &&
84                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/tiff/include/ ${HARVEST_TARGET}/tiff/include/ &&
85                                 # iconv
86                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/iconv/lib/libiconv.a ${HARVEST_TARGET}/iconv/lib/iconv.lib &&
87                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/iconv/include/iconv.h ${HARVEST_TARGET}/iconv/include/iconv.h &&
88                                 # opencolorIO
89                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/OpenColorIO/ ${HARVEST_TARGET}/opencolorio &&
90                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/OpenColorIO/lib/OpenColorIO.dll ${HARVEST_TARGET}/opencolorio/bin/OpenColorIO.dll &&
91                                 # Osl
92                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/osl/ ${HARVEST_TARGET}/osl &&
93                                 # OpenVDB
94                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/openVDB/ ${HARVEST_TARGET}/openVDB &&
95                                 # blosc
96                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/blosc/lib/libblosc.lib ${HARVEST_TARGET}/blosc/lib/libblosc.lib &&
97                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/blosc/include/ ${HARVEST_TARGET}/blosc/include/ &&
98                                 # tbb
99                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/tbb/lib/tbb_static.lib ${HARVEST_TARGET}/tbb/lib/tbb.lib &&
100                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/tbb/include/ ${HARVEST_TARGET}/tbb/include/ &&
101                                 # llvm
102                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/llvm/ ${HARVEST_TARGET}/llvm/ &&
103                                 # opencollada
104                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/opencollada/ ${HARVEST_TARGET}/opencollada/ &&
105                                 # opensubdiv
106                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/opensubdiv ${HARVEST_TARGET}/opensubdiv &&
107                                 # python
108                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/python/ ${HARVEST_TARGET}/python/ &&
109                                 # alembic
110                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/alembic ${HARVEST_TARGET}/alembic &&
111                                 # hdf5
112                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/hdf5 ${HARVEST_TARGET}/hdf5 &&
113                                 # BlendThumb
114                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/BlendThumb64/bin/blendthumb.dll ${HARVEST_TARGET}/ThumbHandler/lib/BlendThumb64.dll &&
115                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/BlendThumb32/bin/blendthumb.dll ${HARVEST_TARGET}/ThumbHandler/lib/BlendThumb.dll &&
116                                 # python
117                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/python35.tar.gz ${HARVEST_TARGET}/Release/python35.tar.gz &&
118                                 # requests
119                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/requests ${HARVEST_TARGET}/Release/site-packages/requests &&
120                                 # numpy
121                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/python35_numpy${PYTHON_POSTFIX}_1.10.tar.gz ${HARVEST_TARGET}/Release/python35_numpy_1.10.tar.gz &&
122                                 # hidapi
123                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/hidapi/ ${HARVEST_TARGET}/hidapi/ &&
124                                 # webp, straight up copy
125                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/webp ${HARVEST_TARGET}/webp
126                 DEPENDS
127 )
128 endif(BUILD_MODE STREQUAL Release)
129
130 if(BUILD_MODE STREQUAL Debug)
131         add_custom_target(Harvest_Debug_Results
132                                 # OpenImageIO
133                 COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/openimageio/lib/OpenImageIO.lib ${HARVEST_TARGET}/openimageio/lib/OpenImageIO_d.lib &&
134                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/openimageio/lib/OpenImageIO_Util.lib ${HARVEST_TARGET}/openimageio/lib/OpenImageIO_Util_d.lib &&
135                                 # ilmbase+openexr
136                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/ilmbase/lib/Half.lib ${HARVEST_TARGET}/openexr/lib/Half_d.lib &&
137                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/ilmbase/lib/Iex-2_2.lib ${HARVEST_TARGET}/openexr/lib/Iex-2_2_d.lib &&
138                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/ilmbase/lib/IexMath-2_2.lib ${HARVEST_TARGET}/openexr/lib/IexMath-2_2_d.lib &&
139                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/ilmbase/lib/IlmThread-2_2.lib ${HARVEST_TARGET}/openexr/lib/IlmThread-2_2_d.lib &&
140                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/ilmbase/lib/Imath-2_2.lib ${HARVEST_TARGET}/openexr/lib/Imath-2_2_d.lib &&
141                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/openexr/lib/IlmImf-2_2.lib ${HARVEST_TARGET}/openexr/lib/IlmImf-2_2_d.lib &&
142                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/openexr/lib/IlmImfUtil-2_2.lib ${HARVEST_TARGET}/openexr/lib/IlmImfUtil-2_2_d.lib &&
143                                 # opencollada
144                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/buffer.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/buffer_d.lib &&
145                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/ftoa.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/ftoa_d.lib &&
146                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/GeneratedSaxParser.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/GeneratedSaxParser_d.lib &&
147                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/MathMLSolver.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/MathMLSolver_d.lib &&
148                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADABaseUtils.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADABaseUtils_d.lib &&
149                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADAFramework.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADAFramework_d.lib &&
150                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADASaxFrameworkLoader.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADASaxFrameworkLoader_d.lib &&
151                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADAStreamWriter.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADAStreamWriter_d.lib &&
152                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/pcre.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/pcre_d.lib &&
153                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/UTF.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/UTF_d.lib &&
154                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/xml.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/xml_d.lib &&
155                                 # blosc
156                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/blosc/lib/libblosc_d.lib ${HARVEST_TARGET}/blosc/lib/libblosc_d.lib &&
157                                 # boost
158                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/boost/lib/ ${HARVEST_TARGET}/boost/lib/ &&
159                                 # llvm
160                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/llvm/lib/ ${HARVEST_TARGET}/llvm/debug/lib/ &&
161                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/llvm/bin/ ${HARVEST_TARGET}/llvm/debug/bin/ &&
162                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/llvm/include/ ${HARVEST_TARGET}/llvm/debug/include/ &&
163                                 # osl
164                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/osl/lib/oslcomp.lib ${HARVEST_TARGET}/osl/lib/oslcomp_d.lib &&
165                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/osl/lib/oslexec.lib ${HARVEST_TARGET}/osl/lib/oslexec_d.lib &&
166                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/osl/lib/oslquery.lib ${HARVEST_TARGET}/osl/lib/oslquery_d.lib &&
167                                 # opensubdiv
168                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opensubdiv/lib/osdCPU.lib ${HARVEST_TARGET}/opensubdiv/lib/osdCPU_d.lib &&
169                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/opensubdiv/lib/osdGPU.lib ${HARVEST_TARGET}/opensubdiv/lib/osdGPU_d.lib &&
170                                 # tbb
171                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/tbb/lib/tbb_static.lib ${HARVEST_TARGET}/tbb/lib/tbb_debug.lib &&
172                                 # openvdb
173                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/openvdb/lib/openvdb.lib ${HARVEST_TARGET}/openvdb/lib/openvdb_d.lib &&
174                                 # python
175                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/python/ ${HARVEST_TARGET}/python/ &&
176                                 # alembic
177                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/alembic/lib/alembic.lib ${HARVEST_TARGET}/alembic/lib/alembic_d.lib &&
178                                 # hdf5
179                                 ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/hdf5/lib ${HARVEST_TARGET}/hdf5/lib &&
180                                 # numpy
181                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/python35_numpy_1.10d.tar.gz ${HARVEST_TARGET}/Release/python35_numpy_1.10d.tar.gz &&
182                                 # python
183                                 ${CMAKE_COMMAND} -E copy ${LIBDIR}/python35_d.tar.gz ${HARVEST_TARGET}/Release/python35_d.tar.gz
184                 DEPENDS Package_Python
185 )
186 endif(BUILD_MODE STREQUAL Debug)
187
188 else(WIN32)
189
190 function(harvest from to)
191         set(pattern "")
192         foreach(f ${ARGN})
193                 set(pattern ${f})
194         endforeach()
195
196         if(pattern STREQUAL "")
197                 get_filename_component(dirpath ${to} DIRECTORY)
198                 get_filename_component(filename ${to} NAME)
199                 install(
200                         FILES ${LIBDIR}/${from}
201                         DESTINATION ${HARVEST_TARGET}/${dirpath}
202                         RENAME ${filename})
203         else()
204                 install(
205                         DIRECTORY ${LIBDIR}/${from}/
206                         DESTINATION ${HARVEST_TARGET}/${to}
207                         USE_SOURCE_PERMISSIONS
208                         FILES_MATCHING PATTERN ${pattern}
209                         PATTERN "pkgconfig" EXCLUDE
210                         PATTERN "cmake" EXCLUDE
211                         PATTERN "clang" EXCLUDE)
212         endif()
213 endfunction()
214
215 harvest(alembic/include alembic/include "*.h")
216 harvest(alembic/lib/libAlembic.a alembic/lib/libAlembic.a)
217 harvest(alembic/bin alembic/bin "*")
218 harvest(blosc/lib openvdb/lib "*.a")
219 harvest(boost/include boost/include "*")
220 harvest(boost/lib boost/lib "*.a")
221 harvest(ffmpeg/include ffmpeg/include "*.h")
222 harvest(ffmpeg/lib ffmpeg/lib "*.a")
223 harvest(fftw3/include fftw3/include "*.h")
224 harvest(fftw3/lib fftw3/lib "*.a")
225 harvest(flac/lib sndfile/lib "libFLAC.a")
226 harvest(freetype/include freetype/include "*.h")
227 harvest(freetype/lib/libfreetype2ST.a freetype/lib/libfreetype.a)
228 harvest(glew/include glew/include "*.h")
229 harvest(glew/lib glew/lib "*.a")
230 harvest(ilmbase openexr "*")
231 harvest(ilmbase/include openexr/include "*.h")
232 harvest(jemalloc/include jemalloc/include "*.h")
233 harvest(jemalloc/lib jemalloc/lib "*.a")
234 harvest(jpg/include jpeg/include "*.h")
235 harvest(jpg/lib jpeg/lib "libjpeg.a")
236 harvest(lame/lib ffmpeg/lib "*.a")
237 harvest(llvm/bin llvm/bin "llvm-config")
238 harvest(llvm/lib llvm/lib "libLLVM*.a")
239 harvest(ogg/lib ffmpeg/lib "*.a")
240 harvest(openal/include openal/include "*.h")
241 if(UNIX AND NOT APPLE)
242         harvest(openal/lib openal/lib "*.a")
243 endif()
244 harvest(opencollada/include/opencollada opencollada/include "*.h")
245 harvest(opencollada/lib/opencollada opencollada/lib "*.a")
246 harvest(opencolorio/include opencolorio/include "*.h")
247 harvest(opencolorio/lib opencolorio/lib "*.a")
248 harvest(openexr/include openexr/include "*.h")
249 harvest(openexr/lib openexr/lib "*.a")
250 harvest(openimageio/bin openimageio/bin "idiff")
251 harvest(openimageio/bin openimageio/bin "maketx")
252 harvest(openimageio/bin openimageio/bin "oiiotool")
253 harvest(openimageio/include openimageio/include "*")
254 harvest(openimageio/lib openimageio/lib "*.a")
255 harvest(openjpeg/include/openjpeg-1.5 openjpeg/include "*.h")
256 harvest(openjpeg/lib openjpeg/lib "*.a")
257 harvest(opensubdiv/include opensubdiv/include "*.h")
258 harvest(opensubdiv/lib opensubdiv/lib "*.a")
259 harvest(openvdb/include/openvdb/openvdb openvdb/include/openvdb "*.h")
260 harvest(openvdb/lib openvdb/lib "*.a")
261 harvest(orc/lib/liborc-0.4.a ffmpeg/lib/liborc.a)
262 harvest(osl/bin osl/bin "oslc")
263 harvest(osl/include osl/include "*.h")
264 harvest(osl/lib osl/lib "*.a")
265 harvest(osl/shaders osl/shaders "*.h")
266 harvest(png/include png/include "*.h")
267 harvest(png/lib png/lib "*.a")
268 harvest(python/bin python/bin "python${PYTHON_SHORT_VERSION}m")
269 harvest(python/include python/include "*h")
270 if(UNIX AND NOT APPLE)
271         harvest(python/lib/libpython${PYTHON_SHORT_VERSION}m.a python/lib/libpython${PYTHON_SHORT_VERSION}m.a)
272         harvest(python/lib/python${PYTHON_SHORT_VERSION} python/lib/python${PYTHON_SHORT_VERSION} "*")
273         harvest(requests python/lib/python${PYTHON_SHORT_VERSION}/site-packages/requests "*")
274         harvest(numpy python/lib/python${PYTHON_SHORT_VERSION}/site-packages/numpy "*")
275 else()
276         harvest(python/lib/libpython${PYTHON_SHORT_VERSION}m.a python/lib/python${PYTHON_SHORT_VERSION}/libpython${PYTHON_SHORT_VERSION}m.a)
277         harvest(python/release release "*")
278         harvest(requests release/site-packages/requests "*")
279         harvest(numpy release/site-packages/numpy "*")
280 endif()
281 harvest(schroedinger/lib/libschroedinger-1.0.a ffmpeg/lib/libschroedinger.a)
282 harvest(sdl/include/SDL2 sdl/include "*.h")
283 harvest(sdl/lib sdl/lib "libSDL2.a")
284 harvest(sndfile/include sndfile/include "*.h")
285 harvest(sndfile/lib sndfile/lib "*.a")
286 harvest(spnav/include spnav/include "*.h")
287 harvest(spnav/lib spnav/lib "*.a")
288 harvest(tbb/include tbb/include "*.h")
289 harvest(tbb/lib/libtbb_static.a tbb/lib/libtbb.a)
290 harvest(theora/lib ffmpeg/lib "*.a")
291 harvest(tiff/include tiff/include "*.h")
292 harvest(tiff/lib tiff/lib "*.a")
293 harvest(vorbis/lib ffmpeg/lib "*.a")
294 harvest(vpx/lib ffmpeg/lib "*.a")
295 harvest(webp/lib ffmpeg/lib "*.a")
296 harvest(x264/lib ffmpeg/lib "*.a")
297 harvest(xml2/lib opencollada/lib "*.a")
298 harvest(xvidcore/lib ffmpeg/lib "*.a")
299
300 endif(WIN32)