Cycles: add Principled Hair BSDF.
[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         ../../../extern/wcwidth
34 )
35
36 set(INC_SYS
37         ${ZLIB_INCLUDE_DIRS}
38         ${FREETYPE_INCLUDE_DIRS}
39 )
40
41 set(SRC
42         intern/BLI_args.c
43         intern/BLI_array.c
44         intern/BLI_dial_2d.c
45         intern/BLI_dynstr.c
46         intern/BLI_filelist.c
47         intern/BLI_ghash.c
48         intern/BLI_ghash_utils.c
49         intern/BLI_heap.c
50         intern/BLI_kdopbvh.c
51         intern/BLI_kdtree.c
52         intern/BLI_linklist.c
53         intern/BLI_linklist_lockfree.c
54         intern/BLI_memarena.c
55         intern/BLI_mempool.c
56         intern/DLRB_tree.c
57         intern/array_store.c
58         intern/array_store_utils.c
59         intern/array_utils.c
60         intern/astar.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/fileops.c
71         intern/fnmatch.c
72         intern/freetypefont.c
73         intern/graph.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_fileops.h
155         BLI_fileops_types.h
156         BLI_fnmatch.h
157         BLI_ghash.h
158         BLI_graph.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_jitter_2d.h
166         BLI_kdopbvh.h
167         BLI_kdtree.h
168         BLI_lasso_2d.h
169         BLI_link_utils.h
170         BLI_linklist.h
171         BLI_linklist_lockfree.h
172         BLI_linklist_stack.h
173         BLI_listbase.h
174         BLI_math.h
175         BLI_math_base.h
176         BLI_math_bits.h
177         BLI_math_color.h
178         BLI_math_color_blend.h
179         BLI_math_geom.h
180         BLI_math_inline.h
181         BLI_math_interp.h
182         BLI_math_matrix.h
183         BLI_math_rotation.h
184         BLI_math_solvers.h
185         BLI_math_statistics.h
186         BLI_math_vector.h
187         BLI_memarena.h
188         BLI_memory_utils.h
189         BLI_mempool.h
190         BLI_noise.h
191         BLI_path_util.h
192         BLI_polyfill_2d.h
193         BLI_polyfill_2d_beautify.h
194         BLI_quadric.h
195         BLI_rand.h
196         BLI_rect.h
197         BLI_scanfill.h
198         BLI_smallhash.h
199         BLI_sort.h
200         BLI_sort_utils.h
201         BLI_stack.h
202         BLI_strict_flags.h
203         BLI_string.h
204         BLI_string_cursor_utf8.h
205         BLI_string_utf8.h
206         BLI_string_utils.h
207         BLI_sys_types.h
208         BLI_system.h
209         BLI_task.h
210         BLI_threads.h
211         BLI_timecode.h
212         BLI_utildefines.h
213         BLI_utildefines_iter.h
214         BLI_utildefines_stack.h
215         BLI_utildefines_variadic.h
216         BLI_uvproject.h
217         BLI_vfontdata.h
218         BLI_voronoi_2d.h
219         BLI_voxel.h
220         BLI_winstuff.h
221         PIL_time.h
222         PIL_time_utildefines.h
223 )
224
225 if(WITH_MEM_VALGRIND)
226         add_definitions(-DWITH_MEM_VALGRIND)
227 endif()
228
229 if(WIN32)
230         list(APPEND INC
231                 ../../../intern/utfconv
232         )
233 endif()
234
235 # no need to compile object files for inline headers.
236 set_source_files_properties(
237         intern/math_base_inline.c
238         intern/math_bits_inline.c
239         intern/math_color_blend_inline.c
240         intern/math_color_inline.c
241         intern/math_geom_inline.c
242         intern/math_vector_inline.c
243         PROPERTIES HEADER_FILE_ONLY TRUE
244 )
245
246 blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")