Merge branch 'blender2.8' into blender2.8-workbench
[blender.git] / source / blender / draw / 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) 2016, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Blender Institute
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         .
28         intern
29         modes
30
31         ../blenfont
32         ../blenkernel
33         ../blenlib
34         ../blentranslation
35         ../bmesh
36         ../depsgraph
37         ../editors/include
38         ../editors/space_view3d
39         ../gpu
40         ../imbuf
41         ../makesdna
42         ../makesrna
43         ../render/extern/include
44         ../render/intern/include
45         ../windowmanager
46
47         ../../../intern/glew-mx
48         ../../../intern/guardedalloc
49 )
50
51 set(INC_SYS
52         ${GLEW_INCLUDE_PATH}
53 )
54
55 set(SRC
56         intern/draw_armature.c
57         intern/draw_cache.c
58         intern/draw_cache_impl_curve.c
59         intern/draw_cache_impl_displist.c
60         intern/draw_cache_impl_lattice.c
61         intern/draw_cache_impl_mesh.c
62         intern/draw_cache_impl_metaball.c
63         intern/draw_cache_impl_particles.c
64         intern/draw_common.c
65         intern/draw_instance_data.c
66         intern/draw_manager.c
67         intern/draw_manager_data.c
68         intern/draw_manager_exec.c
69         intern/draw_manager_shader.c
70         intern/draw_manager_text.c
71         intern/draw_manager_texture.c
72         intern/draw_manager_profiling.c
73         intern/draw_view.c
74         modes/edit_armature_mode.c
75         modes/edit_curve_mode.c
76         modes/edit_lattice_mode.c
77         modes/edit_mesh_mode.c
78         modes/edit_mesh_mode_text.c
79         modes/edit_metaball_mode.c
80         modes/edit_surface_mode.c
81         modes/edit_text_mode.c
82         modes/object_mode.c
83         modes/paint_texture_mode.c
84         modes/paint_vertex_mode.c
85         modes/paint_weight_mode.c
86         modes/particle_mode.c
87         modes/pose_mode.c
88         modes/sculpt_mode.c
89         engines/basic/basic_engine.c
90         engines/clay/clay_engine.c
91         engines/eevee/eevee_bloom.c
92         engines/eevee/eevee_data.c
93         engines/eevee/eevee_depth_of_field.c
94         engines/eevee/eevee_effects.c
95         engines/eevee/eevee_engine.c
96         engines/eevee/eevee_lightprobes.c
97         engines/eevee/eevee_lights.c
98         engines/eevee/eevee_materials.c
99         engines/eevee/eevee_mist.c
100         engines/eevee/eevee_motion_blur.c
101         engines/eevee/eevee_occlusion.c
102         engines/eevee/eevee_render.c
103         engines/eevee/eevee_screen_raytrace.c
104         engines/eevee/eevee_subsurface.c
105         engines/eevee/eevee_temporal_sampling.c
106         engines/eevee/eevee_volumes.c
107         engines/workbench/workbench_engine.c
108         engines/workbench/workbench_materials.c
109         engines/external/external_engine.c
110
111         DRW_engine.h
112         intern/DRW_render.h
113         intern/draw_cache.h
114         intern/draw_cache_impl.h
115         intern/draw_common.h
116         intern/draw_instance_data.h
117         intern/draw_manager.h
118         intern/draw_manager_text.h
119         intern/draw_manager_profiling.h
120         intern/draw_view.h
121         modes/draw_mode_engines.h
122         modes/edit_mesh_mode_intern.h
123         engines/basic/basic_engine.h
124         engines/clay/clay_engine.h
125         engines/eevee/eevee_engine.h
126         engines/eevee/eevee_lut.h
127         engines/eevee/eevee_private.h
128         engines/external/external_engine.h
129 )
130
131 if(WITH_CLAY_ENGINE)
132         add_definitions(-DWITH_CLAY_ENGINE)
133 endif()
134
135 data_to_c_simple(engines/clay/shaders/clay_frag.glsl SRC)
136 data_to_c_simple(engines/clay/shaders/clay_fxaa.glsl SRC)
137 data_to_c_simple(engines/clay/shaders/clay_copy.glsl SRC)
138 data_to_c_simple(engines/clay/shaders/clay_prepass_frag.glsl SRC)
139 data_to_c_simple(engines/clay/shaders/clay_vert.glsl SRC)
140 data_to_c_simple(engines/clay/shaders/clay_particle_vert.glsl SRC)
141 data_to_c_simple(engines/clay/shaders/clay_particle_strand_frag.glsl SRC)
142 data_to_c_simple(engines/clay/shaders/ssao_alchemy.glsl SRC)
143 data_to_c_simple(engines/clay/shaders/ssao_groundtruth.glsl SRC)
144
145 data_to_c_simple(engines/eevee/shaders/ambient_occlusion_lib.glsl SRC)
146 data_to_c_simple(engines/eevee/shaders/default_frag.glsl SRC)
147 data_to_c_simple(engines/eevee/shaders/default_world_frag.glsl SRC)
148 data_to_c_simple(engines/eevee/shaders/background_vert.glsl SRC)
149 data_to_c_simple(engines/eevee/shaders/concentric_samples_lib.glsl SRC)
150 data_to_c_simple(engines/eevee/shaders/common_uniforms_lib.glsl SRC)
151 data_to_c_simple(engines/eevee/shaders/lamps_lib.glsl SRC)
152 data_to_c_simple(engines/eevee/shaders/lightprobe_lib.glsl SRC)
153 data_to_c_simple(engines/eevee/shaders/lightprobe_filter_glossy_frag.glsl SRC)
154 data_to_c_simple(engines/eevee/shaders/lightprobe_filter_diffuse_frag.glsl SRC)
155 data_to_c_simple(engines/eevee/shaders/lightprobe_filter_visibility_frag.glsl SRC)
156 data_to_c_simple(engines/eevee/shaders/lightprobe_geom.glsl SRC)
157 data_to_c_simple(engines/eevee/shaders/lightprobe_vert.glsl SRC)
158 data_to_c_simple(engines/eevee/shaders/lightprobe_cube_display_frag.glsl SRC)
159 data_to_c_simple(engines/eevee/shaders/lightprobe_cube_display_vert.glsl SRC)
160 data_to_c_simple(engines/eevee/shaders/lightprobe_grid_display_frag.glsl SRC)
161 data_to_c_simple(engines/eevee/shaders/lightprobe_grid_display_vert.glsl SRC)
162 data_to_c_simple(engines/eevee/shaders/lightprobe_grid_fill_frag.glsl SRC)
163 data_to_c_simple(engines/eevee/shaders/lightprobe_planar_display_frag.glsl SRC)
164 data_to_c_simple(engines/eevee/shaders/lightprobe_planar_display_vert.glsl SRC)
165 data_to_c_simple(engines/eevee/shaders/lit_surface_frag.glsl SRC)
166 data_to_c_simple(engines/eevee/shaders/lit_surface_vert.glsl SRC)
167 data_to_c_simple(engines/eevee/shaders/effect_bloom_frag.glsl SRC)
168 data_to_c_simple(engines/eevee/shaders/effect_dof_vert.glsl SRC)
169 data_to_c_simple(engines/eevee/shaders/effect_dof_geom.glsl SRC)
170 data_to_c_simple(engines/eevee/shaders/effect_dof_frag.glsl SRC)
171 data_to_c_simple(engines/eevee/shaders/effect_downsample_frag.glsl SRC)
172 data_to_c_simple(engines/eevee/shaders/effect_downsample_cube_frag.glsl SRC)
173 data_to_c_simple(engines/eevee/shaders/effect_gtao_frag.glsl SRC)
174 data_to_c_simple(engines/eevee/shaders/effect_minmaxz_frag.glsl SRC)
175 data_to_c_simple(engines/eevee/shaders/effect_mist_frag.glsl SRC)
176 data_to_c_simple(engines/eevee/shaders/effect_motion_blur_frag.glsl SRC)
177 data_to_c_simple(engines/eevee/shaders/effect_ssr_frag.glsl SRC)
178 data_to_c_simple(engines/eevee/shaders/effect_subsurface_frag.glsl SRC)
179 data_to_c_simple(engines/eevee/shaders/effect_temporal_aa.glsl SRC)
180 data_to_c_simple(engines/eevee/shaders/lightprobe_planar_downsample_frag.glsl SRC)
181 data_to_c_simple(engines/eevee/shaders/lightprobe_planar_downsample_geom.glsl SRC)
182 data_to_c_simple(engines/eevee/shaders/lightprobe_planar_downsample_vert.glsl SRC)
183 data_to_c_simple(engines/eevee/shaders/prepass_frag.glsl SRC)
184 data_to_c_simple(engines/eevee/shaders/prepass_vert.glsl SRC)
185 data_to_c_simple(engines/eevee/shaders/shadow_frag.glsl SRC)
186 data_to_c_simple(engines/eevee/shaders/shadow_vert.glsl SRC)
187 data_to_c_simple(engines/eevee/shaders/shadow_store_frag.glsl SRC)
188 data_to_c_simple(engines/eevee/shaders/shadow_copy_frag.glsl SRC)
189 data_to_c_simple(engines/eevee/shaders/bsdf_lut_frag.glsl SRC)
190 data_to_c_simple(engines/eevee/shaders/btdf_lut_frag.glsl SRC)
191 data_to_c_simple(engines/eevee/shaders/bsdf_direct_lib.glsl SRC)
192 data_to_c_simple(engines/eevee/shaders/bsdf_common_lib.glsl SRC)
193 data_to_c_simple(engines/eevee/shaders/irradiance_lib.glsl SRC)
194 data_to_c_simple(engines/eevee/shaders/octahedron_lib.glsl SRC)
195 data_to_c_simple(engines/eevee/shaders/bsdf_sampling_lib.glsl SRC)
196 data_to_c_simple(engines/eevee/shaders/raytrace_lib.glsl SRC)
197 data_to_c_simple(engines/eevee/shaders/ltc_lib.glsl SRC)
198 data_to_c_simple(engines/eevee/shaders/ssr_lib.glsl SRC)
199 data_to_c_simple(engines/eevee/shaders/update_noise_frag.glsl SRC)
200 data_to_c_simple(engines/eevee/shaders/volumetric_lib.glsl SRC)
201 data_to_c_simple(engines/eevee/shaders/volumetric_frag.glsl SRC)
202 data_to_c_simple(engines/eevee/shaders/volumetric_geom.glsl SRC)
203 data_to_c_simple(engines/eevee/shaders/volumetric_vert.glsl SRC)
204 data_to_c_simple(engines/eevee/shaders/volumetric_resolve_frag.glsl SRC)
205 data_to_c_simple(engines/eevee/shaders/volumetric_scatter_frag.glsl SRC)
206 data_to_c_simple(engines/eevee/shaders/volumetric_integration_frag.glsl SRC)
207
208 data_to_c_simple(engines/workbench/shaders/silhouette_frag.glsl SRC)
209 data_to_c_simple(engines/workbench/shaders/workbench_vert.glsl SRC)
210
211 data_to_c_simple(modes/shaders/common_globals_lib.glsl SRC)
212 data_to_c_simple(modes/shaders/common_view_lib.glsl SRC)
213 data_to_c_simple(modes/shaders/common_fxaa_lib.glsl SRC)
214 data_to_c_simple(modes/shaders/common_fullscreen_vert.glsl SRC)
215 data_to_c_simple(modes/shaders/edit_mesh_overlay_frag.glsl SRC)
216 data_to_c_simple(modes/shaders/edit_mesh_overlay_vert.glsl SRC)
217 data_to_c_simple(modes/shaders/edit_mesh_overlay_geom_tri.glsl SRC)
218 data_to_c_simple(modes/shaders/edit_mesh_overlay_geom_edge.glsl SRC)
219 data_to_c_simple(modes/shaders/edit_mesh_overlay_loosevert_vert.glsl SRC)
220 data_to_c_simple(modes/shaders/edit_mesh_overlay_facedot_frag.glsl SRC)
221 data_to_c_simple(modes/shaders/edit_mesh_overlay_facedot_vert.glsl SRC)
222 data_to_c_simple(modes/shaders/edit_mesh_overlay_mix_frag.glsl SRC)
223 data_to_c_simple(modes/shaders/edit_mesh_overlay_facefill_vert.glsl SRC)
224 data_to_c_simple(modes/shaders/edit_mesh_overlay_facefill_frag.glsl SRC)
225 data_to_c_simple(modes/shaders/edit_curve_overlay_frag.glsl SRC)
226 data_to_c_simple(modes/shaders/edit_curve_overlay_handle_geom.glsl SRC)
227 data_to_c_simple(modes/shaders/edit_curve_overlay_loosevert_vert.glsl SRC)
228 data_to_c_simple(modes/shaders/edit_lattice_overlay_frag.glsl SRC)
229 data_to_c_simple(modes/shaders/edit_lattice_overlay_loosevert_vert.glsl SRC)
230 data_to_c_simple(modes/shaders/edit_normals_vert.glsl SRC)
231 data_to_c_simple(modes/shaders/edit_normals_geom.glsl SRC)
232 data_to_c_simple(modes/shaders/object_empty_image_frag.glsl SRC)
233 data_to_c_simple(modes/shaders/object_empty_image_vert.glsl SRC)
234 data_to_c_simple(modes/shaders/object_outline_resolve_frag.glsl SRC)
235 data_to_c_simple(modes/shaders/object_outline_expand_frag.glsl SRC)
236 data_to_c_simple(modes/shaders/object_outline_detect_frag.glsl SRC)
237 data_to_c_simple(modes/shaders/object_grid_frag.glsl SRC)
238 data_to_c_simple(modes/shaders/object_grid_vert.glsl SRC)
239 data_to_c_simple(modes/shaders/object_lightprobe_grid_vert.glsl SRC)
240 data_to_c_simple(modes/shaders/object_particle_prim_vert.glsl SRC)
241 data_to_c_simple(modes/shaders/object_particle_dot_vert.glsl SRC)
242 data_to_c_simple(modes/shaders/object_particle_dot_frag.glsl SRC)
243 data_to_c_simple(modes/shaders/paint_texture_frag.glsl SRC)
244 data_to_c_simple(modes/shaders/paint_texture_vert.glsl SRC)
245 data_to_c_simple(modes/shaders/paint_wire_frag.glsl SRC)
246 data_to_c_simple(modes/shaders/paint_wire_vert.glsl SRC)
247 data_to_c_simple(modes/shaders/paint_vert_frag.glsl SRC)
248
249 list(APPEND INC
250 )
251
252 blender_add_lib(bf_draw "${SRC}" "${INC}" "${INC_SYS}")