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