Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « build_environment « build_files - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9f7eb3c2c505ee651e9e37196d7126b349dd3a32 (plain)
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
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ***** END GPL LICENSE BLOCK *****

####################################################################################################
#
# This is a build system used by platform maintainers to build library dependencies on
# Windows and macOS. There is some support for Linux as well, but not ready for releases.
#
# Windows and macOS users should download the precompiled libraries in lib/, Linux users
# should run install_deps.sh for building dependencies.
#
# WINDOWS USAGE:
#   Don't call this cmake file your self, use build_deps.cmd
#   build_deps 2013 x64 / build_deps 2013 x86
#   build_deps 2015 x64 / build_deps 2015 x86
#
# MAC OS X USAGE:
#	Install with homebrew: brew install autoconf automake libtool yasm openssl xz
#   Run "make deps" from main Blender directory
#
# LINUX USAGE:
#   Install compiler, cmake, autoconf, automake, libtool, yasm
#   Run "make deps" from main Blender directory
#
####################################################################################################

project("BlenderDependencies")
cmake_minimum_required(VERSION 3.5)

include(ExternalProject)
include(cmake/options.cmake)
include(cmake/versions.cmake)
include(cmake/zlib.cmake)
include(cmake/blendthumb.cmake)
include(cmake/openal.cmake)
include(cmake/png.cmake)
include(cmake/jpeg.cmake)
include(cmake/boost.cmake)
include(cmake/blosc.cmake)
include(cmake/pthreads.cmake)
include(cmake/ilmbase.cmake)
include(cmake/openexr.cmake)
include(cmake/freetype.cmake)
include(cmake/freeglut.cmake)
include(cmake/glew.cmake)
include(cmake/hdf5.cmake)
include(cmake/alembic.cmake)
include(cmake/glfw.cmake)
include(cmake/clew.cmake)
include(cmake/cuew.cmake)
include(cmake/opensubdiv.cmake)
include(cmake/sdl.cmake)
include(cmake/opencollada.cmake)
include(cmake/opencolorio.cmake)
include(cmake/llvm.cmake)
include(cmake/clang.cmake)
include(cmake/openimageio.cmake)
include(cmake/tiff.cmake)
include(cmake/flexbison.cmake)
include(cmake/osl.cmake)
include(cmake/tbb.cmake)
include(cmake/openvdb.cmake)
include(cmake/python.cmake)
include(cmake/python_site_packages.cmake)
include(cmake/numpy.cmake)
if (WITH_WEBP)
	include(cmake/webp.cmake)
endif()
if(WIN32)
	include(cmake/hidapi.cmake)
endif()

if(ENABLE_MINGW64)
	if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
		include(cmake/setup_mingw64.cmake)
	else()
		include(cmake/setup_mingw32.cmake)
	endif()
else()
	set(mingw_LIBDIR ${LIBDIR})
endif()

if(NOT WIN32 OR ENABLE_MINGW64)
	include(cmake/openjpeg.cmake)
	if(BUILD_MODE STREQUAL Release)
		if(WIN32)
			include(cmake/zlib_mingw.cmake)
		endif()
		include(cmake/lame.cmake)
		include(cmake/ogg.cmake)
		include(cmake/vorbis.cmake)
		include(cmake/theora.cmake)
		include(cmake/vpx.cmake)
		include(cmake/orc.cmake)
		include(cmake/schroedinger.cmake)
		include(cmake/x264.cmake)
		include(cmake/xvidcore.cmake)
		include(cmake/faad.cmake)
		include(cmake/ffmpeg.cmake)
		include(cmake/fftw.cmake)
		include(cmake/sndfile.cmake)
		if(WIN32)
			include(cmake/iconv.cmake)
			include(cmake/lapack.cmake)
		endif()
		if(UNIX)
			include(cmake/flac.cmake)
			if(NOT APPLE)
				include(cmake/spnav.cmake)
				include(cmake/jemalloc.cmake)
				include(cmake/xml2.cmake)
			endif()
		endif()
	endif()
endif()

include(cmake/harvest.cmake)