Cleanup: remove contributors for CMake files
[blender.git] / source / blender / blenlib / CMakeLists.txt
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 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         .
23         # ../blenkernel  # dont add this back!
24         ../makesdna
25         ../../../intern/guardedalloc
26         ../../../intern/atomic
27         ../../../intern/eigen
28         ../../../intern/numaapi/include
29         ../../../extern/wcwidth
30 )
31
32 set(INC_SYS
33         ${ZLIB_INCLUDE_DIRS}
34         ${FREETYPE_INCLUDE_DIRS}
35 )
36
37 set(SRC
38         intern/BLI_args.c
39         intern/BLI_array.c
40         intern/BLI_dial_2d.c
41         intern/BLI_dynstr.c
42         intern/BLI_filelist.c
43         intern/BLI_ghash.c
44         intern/BLI_ghash_utils.c
45         intern/BLI_heap.c
46         intern/BLI_heap_simple.c
47         intern/BLI_kdopbvh.c
48         intern/BLI_kdtree.c
49         intern/BLI_linklist.c
50         intern/BLI_linklist_lockfree.c
51         intern/BLI_memarena.c
52         intern/BLI_memiter.c
53         intern/BLI_mempool.c
54         intern/BLI_timer.c
55         intern/DLRB_tree.c
56         intern/array_store.c
57         intern/array_store_utils.c
58         intern/array_utils.c
59         intern/astar.c
60         intern/bitmap.c
61         intern/bitmap_draw_2d.c
62         intern/boxpack_2d.c
63         intern/buffer.c
64         intern/callbacks.c
65         intern/convexhull_2d.c
66         intern/dynlib.c
67         intern/easing.c
68         intern/edgehash.c
69         intern/endian_switch.c
70         intern/expr_pylike_eval.c
71         intern/fileops.c
72         intern/fnmatch.c
73         intern/freetypefont.c
74         intern/gsqueue.c
75         intern/hash_md5.c
76         intern/hash_mm2a.c
77         intern/hash_mm3.c
78         intern/jitter_2d.c
79         intern/lasso_2d.c
80         intern/list_sort_impl.h
81         intern/listbase.c
82         intern/math_base.c
83         intern/math_base_inline.c
84         intern/math_bits_inline.c
85         intern/math_color.c
86         intern/math_color_blend_inline.c
87         intern/math_color_inline.c
88         intern/math_geom.c
89         intern/math_geom_inline.c
90         intern/math_interp.c
91         intern/math_matrix.c
92         intern/math_rotation.c
93         intern/math_solvers.c
94         intern/math_statistics.c
95         intern/math_vector.c
96         intern/math_vector_inline.c
97         intern/memory_utils.c
98         intern/noise.c
99         intern/path_util.c
100         intern/polyfill_2d.c
101         intern/polyfill_2d_beautify.c
102         intern/quadric.c
103         intern/rand.c
104         intern/rct.c
105         intern/scanfill.c
106         intern/scanfill_utils.c
107         intern/smallhash.c
108         intern/sort.c
109         intern/sort_utils.c
110         intern/stack.c
111         intern/storage.c
112         intern/string.c
113         intern/string_cursor_utf8.c
114         intern/string_utf8.c
115         intern/string_utils.c
116         intern/system.c
117         intern/task.c
118         intern/threads.c
119         intern/time.c
120         intern/timecode.c
121         intern/uvproject.c
122         intern/voronoi_2d.c
123         intern/voxel.c
124         intern/winstuff.c
125         intern/winstuff_dir.c
126
127         BLI_alloca.h
128         BLI_args.h
129         BLI_array.h
130         BLI_array_store.h
131         BLI_array_store_utils.h
132         BLI_array_utils.h
133         BLI_assert.h
134         BLI_astar.h
135         BLI_bitmap.h
136         BLI_bitmap_draw_2d.h
137         BLI_blenlib.h
138         BLI_boxpack_2d.h
139         BLI_buffer.h
140         BLI_callbacks.h
141         BLI_compiler_attrs.h
142         BLI_compiler_compat.h
143         BLI_compiler_typecheck.h
144         BLI_console.h
145         BLI_convexhull_2d.h
146         BLI_dial_2d.h
147         BLI_dlrbTree.h
148         BLI_dynlib.h
149         BLI_dynstr.h
150         BLI_easing.h
151         BLI_edgehash.h
152         BLI_endian_switch.h
153         BLI_endian_switch_inline.h
154         BLI_expr_pylike_eval.h
155         BLI_fileops.h
156         BLI_fileops_types.h
157         BLI_fnmatch.h
158         BLI_ghash.h
159         BLI_gsqueue.h
160         BLI_hash.h
161         BLI_hash_md5.h
162         BLI_hash_mm2a.h
163         BLI_hash_mm3.h
164         BLI_heap.h
165         BLI_heap_simple.h
166         BLI_iterator.h
167         BLI_jitter_2d.h
168         BLI_kdopbvh.h
169         BLI_kdtree.h
170         BLI_lasso_2d.h
171         BLI_link_utils.h
172         BLI_linklist.h
173         BLI_linklist_lockfree.h
174         BLI_linklist_stack.h
175         BLI_listbase.h
176         BLI_math.h
177         BLI_math_base.h
178         BLI_math_bits.h
179         BLI_math_color.h
180         BLI_math_color_blend.h
181         BLI_math_geom.h
182         BLI_math_inline.h
183         BLI_math_interp.h
184         BLI_math_matrix.h
185         BLI_math_rotation.h
186         BLI_math_solvers.h
187         BLI_math_statistics.h
188         BLI_math_vector.h
189         BLI_memarena.h
190         BLI_memiter.h
191         BLI_memory_utils.h
192         BLI_mempool.h
193         BLI_noise.h
194         BLI_path_util.h
195         BLI_polyfill_2d.h
196         BLI_polyfill_2d_beautify.h
197         BLI_quadric.h
198         BLI_rand.h
199         BLI_rect.h
200         BLI_scanfill.h
201         BLI_smallhash.h
202         BLI_sort.h
203         BLI_sort_utils.h
204         BLI_stack.h
205         BLI_strict_flags.h
206         BLI_string.h
207         BLI_string_cursor_utf8.h
208         BLI_string_utf8.h
209         BLI_string_utils.h
210         BLI_sys_types.h
211         BLI_system.h
212         BLI_task.h
213         BLI_threads.h
214         BLI_timecode.h
215         BLI_timer.h
216         BLI_utildefines.h
217         BLI_utildefines_iter.h
218         BLI_utildefines_stack.h
219         BLI_utildefines_variadic.h
220         BLI_uvproject.h
221         BLI_vfontdata.h
222         BLI_voronoi_2d.h
223         BLI_voxel.h
224         BLI_winstuff.h
225         PIL_time.h
226         PIL_time_utildefines.h
227 )
228
229 if(WITH_MEM_VALGRIND)
230         add_definitions(-DWITH_MEM_VALGRIND)
231 endif()
232
233 if(WIN32)
234         list(APPEND INC
235                 ../../../intern/utfconv
236         )
237 endif()
238
239 # no need to compile object files for inline headers.
240 set_source_files_properties(
241         intern/math_base_inline.c
242         intern/math_bits_inline.c
243         intern/math_color_blend_inline.c
244         intern/math_color_inline.c
245         intern/math_geom_inline.c
246         intern/math_vector_inline.c
247         PROPERTIES HEADER_FILE_ONLY TRUE
248 )
249
250 blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")