1 # ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
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.
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 # ***** END GPL LICENSE BLOCK *****
32 ./intern/mallocn_guarded_impl.c
33 ./intern/mallocn_lockfree_impl.c
36 ./intern/mallocn_inline.h
37 ./intern/mallocn_intern.h
39 # only so the header is known by cmake
40 ../atomic/atomic_ops.h
41 ../atomic/intern/atomic_ops_ext.h
42 ../atomic/intern/atomic_ops_msvc.h
43 ../atomic/intern/atomic_ops_unix.h
44 ../atomic/intern/atomic_ops_utils.h
50 if(WIN32 AND NOT UNIX)
58 # Jemalloc 5.0.0+ needs extra configuration.
59 if(WITH_MEM_JEMALLOC AND NOT ("${JEMALLOC_VERSION}" VERSION_LESS "5.0.0"))
60 add_definitions(-DWITH_JEMALLOC_CONF)
63 blender_add_lib(bf_intern_guardedalloc "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
65 # Override C++ alloc, optional.
66 if(WITH_CXX_GUARDEDALLOC)
70 blender_add_lib(bf_intern_guardedalloc_cpp "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")