Geometry API: polyfill2d, ear clipping polygon filling functions.
[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 # XXX allowing blenkernel and RNA includes in blenlib is a hack,
27 # but needed in a few places atm (bpath.c for instance)
28 set(INC
29         .
30         # ../blenkernel  # dont add this back!
31         ../makesdna
32         ../../../intern/ghost
33         ../../../intern/guardedalloc
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_dynstr.c
46         intern/BLI_ghash.c
47         intern/BLI_heap.c
48         intern/BLI_kdopbvh.c
49         intern/BLI_kdtree.c
50         intern/BLI_linklist.c
51         intern/BLI_memarena.c
52         intern/BLI_mempool.c
53         intern/DLRB_tree.c
54         intern/boxpack2d.c
55         intern/buffer.c
56         intern/callbacks.c
57         intern/convexhull2d.c
58         intern/cpu.c
59         intern/dynlib.c
60         intern/edgehash.c
61         intern/endian_switch.c
62         intern/fileops.c
63         intern/fnmatch.c
64         intern/freetypefont.c
65         intern/graph.c
66         intern/gsqueue.c
67         intern/jitter.c
68         intern/lasso.c
69         intern/listbase.c
70         intern/math_base.c
71         intern/math_base_inline.c
72         intern/math_color.c
73         intern/math_color_blend_inline.c
74         intern/math_color_inline.c
75         intern/math_geom.c
76         intern/math_geom_inline.c
77         intern/math_interp.c
78         intern/math_matrix.c
79         intern/math_rotation.c
80         intern/math_vector.c
81         intern/math_vector_inline.c
82         intern/md5.c
83         intern/noise.c
84         intern/path_util.c
85         intern/polyfill2d.c
86         intern/quadric.c
87         intern/rand.c
88         intern/rct.c
89         intern/scanfill.c
90         intern/smallhash.c
91         intern/sort.c
92         intern/sort_utils.c
93         intern/stack.c
94         intern/storage.c
95         intern/string.c
96         intern/string_cursor_utf8.c
97         intern/string_utf8.c
98         intern/task.c
99         intern/threads.c
100         intern/time.c
101         intern/uvproject.c
102         intern/voronoi.c
103         intern/voxel.c
104         intern/winstuff.c
105
106         BLI_alloca.h
107         BLI_args.h
108         BLI_array.h
109         BLI_bitmap.h
110         BLI_blenlib.h
111         BLI_boxpack2d.h
112         BLI_buffer.h
113         BLI_callbacks.h
114         BLI_compiler_attrs.h
115         BLI_convexhull2d.h
116         BLI_cpu.h
117         BLI_dlrbTree.h
118         BLI_dynlib.h
119         BLI_dynstr.h
120         BLI_edgehash.h
121         BLI_endian_switch.h
122         BLI_endian_switch_inline.h
123         BLI_fileops.h
124         BLI_fileops_types.h
125         BLI_fnmatch.h
126         BLI_ghash.h
127         BLI_graph.h
128         BLI_gsqueue.h
129         BLI_heap.h
130         BLI_jitter.h
131         BLI_kdopbvh.h
132         BLI_kdtree.h
133         BLI_lasso.h
134         BLI_linklist.h
135         BLI_linklist_stack.h
136         BLI_listbase.h
137         BLI_math.h
138         BLI_math_base.h
139         BLI_math_color.h
140         BLI_math_color_blend.h
141         BLI_math_geom.h
142         BLI_math_inline.h
143         BLI_math_interp.h
144         BLI_math_matrix.h
145         BLI_math_rotation.h
146         BLI_math_vector.h
147         BLI_md5.h
148         BLI_memarena.h
149         BLI_mempool.h
150         BLI_noise.h
151         BLI_path_util.h
152         BLI_polyfill2d.h
153         BLI_quadric.h
154         BLI_rand.h
155         BLI_rect.h
156         BLI_scanfill.h
157         BLI_smallhash.h
158         BLI_sort.h
159         BLI_sort_utils.h
160         BLI_stack.h
161         BLI_strict_flags.h
162         BLI_string.h
163         BLI_string_cursor_utf8.h
164         BLI_string_utf8.h
165         BLI_sys_types.h
166         BLI_task.h
167         BLI_threads.h
168         BLI_utildefines.h
169         BLI_uvproject.h
170         BLI_vfontdata.h
171         BLI_voronoi.h
172         BLI_voxel.h
173         BLI_winstuff.h
174         PIL_time.h
175         PIL_time_utildefines.h
176 )
177
178 if(WITH_BINRELOC)
179         list(APPEND INC_SYS
180                 ${BINRELOC_INCLUDE_DIRS}
181         )
182         add_definitions(-DWITH_BINRELOC)
183 endif()
184
185 if(WITH_MEM_VALGRIND)
186         add_definitions(-DWITH_MEM_VALGRIND)
187 endif()
188
189 if(WIN32)
190         list(APPEND INC
191                 ../../../intern/utfconv
192         )
193 endif()
194
195 blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")
196
197 if(MSVC)
198         # Quiet warning about inline math library files that do not export symbols.
199         # (normally you'd exclude from project, but we still want to see the files in MSVC)
200         set_target_properties(bf_blenlib PROPERTIES STATIC_LIBRARY_FLAGS /ignore:4221)
201 endif()