2008-04-16 22:40:48 +00:00
|
|
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
2006-11-17 02:27:12 +00:00
|
|
|
#
|
|
|
|
|
# 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
|
2008-04-16 22:40:48 +00:00
|
|
|
# of the License, or (at your option) any later version.
|
2006-11-17 02:27:12 +00:00
|
|
|
#
|
|
|
|
|
# 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,
|
2010-02-12 13:34:04 +00:00
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2006-11-17 02:27:12 +00:00
|
|
|
#
|
|
|
|
|
# The Original Code is Copyright (C) 2006, Blender Foundation
|
|
|
|
|
# All rights reserved.
|
2008-04-16 22:40:48 +00:00
|
|
|
# ***** END GPL LICENSE BLOCK *****
|
2006-11-17 02:27:12 +00:00
|
|
|
|
|
|
|
|
|
2018-06-08 08:07:48 +02:00
|
|
|
set(INC
|
2019-04-17 06:17:24 +02:00
|
|
|
extern/include
|
|
|
|
|
intern/include
|
|
|
|
|
../blenkernel
|
|
|
|
|
../blenlib
|
|
|
|
|
../blentranslation
|
|
|
|
|
../depsgraph
|
2019-04-24 14:39:31 +10:00
|
|
|
../draw
|
|
|
|
|
../gpu
|
|
|
|
|
../imbuf
|
2019-04-17 06:17:24 +02:00
|
|
|
../makesdna
|
|
|
|
|
../makesrna
|
|
|
|
|
../nodes
|
|
|
|
|
../physics
|
|
|
|
|
../../../intern/atomic
|
|
|
|
|
../../../intern/guardedalloc
|
|
|
|
|
../../../intern/mikktspace
|
2019-12-16 15:50:14 +01:00
|
|
|
../../../intern/mantaflow/extern
|
2006-11-17 02:27:12 +00:00
|
|
|
)
|
|
|
|
|
|
2011-05-31 01:15:44 +00:00
|
|
|
set(INC_SYS
|
2019-04-17 06:17:24 +02:00
|
|
|
${GLEW_INCLUDE_PATH}
|
2011-05-31 01:15:44 +00:00
|
|
|
)
|
|
|
|
|
|
2010-12-08 08:43:06 +00:00
|
|
|
set(SRC
|
2019-04-17 06:17:24 +02:00
|
|
|
intern/source/bake_api.c
|
|
|
|
|
intern/source/external_engine.c
|
|
|
|
|
intern/source/imagetexture.c
|
|
|
|
|
intern/source/initrender.c
|
|
|
|
|
intern/source/multires_bake.c
|
|
|
|
|
intern/source/pipeline.c
|
|
|
|
|
intern/source/pointdensity.c
|
|
|
|
|
intern/source/render_result.c
|
|
|
|
|
intern/source/render_texture.c
|
|
|
|
|
intern/source/zbuf.c
|
2010-11-29 04:35:56 +00:00
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
extern/include/RE_bake.h
|
|
|
|
|
extern/include/RE_engine.h
|
|
|
|
|
extern/include/RE_multires_bake.h
|
|
|
|
|
extern/include/RE_pipeline.h
|
|
|
|
|
extern/include/RE_render_ext.h
|
|
|
|
|
extern/include/RE_shader_ext.h
|
|
|
|
|
intern/include/initrender.h
|
|
|
|
|
intern/include/render_result.h
|
|
|
|
|
intern/include/render_types.h
|
|
|
|
|
intern/include/renderpipeline.h
|
|
|
|
|
intern/include/texture.h
|
|
|
|
|
intern/include/zbuf.h
|
2010-10-23 04:05:55 +00:00
|
|
|
)
|
|
|
|
|
|
2019-04-14 15:18:44 +02:00
|
|
|
set(LIB
|
|
|
|
|
)
|
|
|
|
|
|
2011-10-22 17:01:54 +00:00
|
|
|
if(WITH_PYTHON)
|
2019-04-17 06:17:24 +02:00
|
|
|
add_definitions(-DWITH_PYTHON)
|
|
|
|
|
list(APPEND INC
|
|
|
|
|
../python
|
|
|
|
|
)
|
2011-10-22 17:01:54 +00:00
|
|
|
endif()
|
|
|
|
|
|
2010-12-08 08:43:06 +00:00
|
|
|
if(WITH_IMAGE_OPENEXR)
|
2019-04-17 06:17:24 +02:00
|
|
|
list(APPEND LIB
|
|
|
|
|
bf_imbuf_openexr
|
|
|
|
|
)
|
|
|
|
|
add_definitions(-DWITH_OPENEXR)
|
2010-12-08 08:43:06 +00:00
|
|
|
endif()
|
2006-11-17 02:27:12 +00:00
|
|
|
|
2012-12-20 07:57:26 +00:00
|
|
|
if(WITH_FREESTYLE)
|
2019-04-17 06:17:24 +02:00
|
|
|
list(APPEND INC
|
|
|
|
|
../freestyle
|
|
|
|
|
)
|
|
|
|
|
list(APPEND LIB
|
|
|
|
|
bf_freestyle
|
|
|
|
|
)
|
|
|
|
|
add_definitions(-DWITH_FREESTYLE)
|
2012-12-20 07:57:26 +00:00
|
|
|
endif()
|
|
|
|
|
|
2013-03-10 16:55:01 +00:00
|
|
|
if(WITH_INTERNATIONAL)
|
2019-04-17 06:17:24 +02:00
|
|
|
add_definitions(-DWITH_INTERNATIONAL)
|
2013-03-10 16:55:01 +00:00
|
|
|
endif()
|
|
|
|
|
|
2010-12-08 08:43:06 +00:00
|
|
|
if(APPLE)
|
2019-04-17 06:17:24 +02:00
|
|
|
# SSE math is enabled by default on x86_64
|
|
|
|
|
if(CMAKE_OSX_ARCHITECTURES MATCHES "i386")
|
|
|
|
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
|
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
|
|
|
|
|
endif()
|
2010-12-08 08:43:06 +00:00
|
|
|
endif()
|
2009-11-09 17:52:13 +00:00
|
|
|
|
2020-05-19 17:36:40 +02:00
|
|
|
add_definitions(${GL_DEFINITIONS})
|
|
|
|
|
|
2019-04-14 15:18:44 +02:00
|
|
|
blender_add_lib_nolist(bf_render "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|