Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / datafiles / 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 LicenseS
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 # Contributor(s): Jacques Beaurain.
18 #
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22
23 )
24
25 set(INC_SYS
26
27 )
28
29 # blender and player
30 set(SRC
31
32 )
33
34 # Order matches "UI_icons.h", final name will be formatted: "icons{size}_{name}.dat"
35 set(ICON_NAMES
36         question
37         error
38         cancel
39         tria_right
40         tria_down
41         tria_left
42         tria_up
43         arrow_leftright
44         plus
45         disclosure_tri_down
46         disclosure_tri_right
47         radiobut_off
48         radiobut_on
49         menu_panel
50         blender
51         grip
52         dot
53         collapsemenu
54         x
55         go_left
56         plug
57         ui
58         node
59         node_sel
60         fullscreen
61         splitscreen
62         rightarrow_thin
63         bordermove
64         viewzoom
65         zoomin
66         zoomout
67         panel_close
68         copy_id
69         eyedropper
70         link_area
71         auto
72         checkbox_dehlt
73         checkbox_hlt
74         unlocked
75         locked
76         unpinned
77         pinned
78         screen_back
79         rightarrow
80         downarrow_hlt
81         dotsup
82         dotsdown
83         link
84         inlink
85         plugin
86         help
87         ghost_enabled
88         color
89         linked
90         unlinked
91         hand
92         zoom_all
93         zoom_selected
94         zoom_previous
95         zoom_in
96         zoom_out
97         render_region
98         border_rect
99         border_lasso
100         freeze
101         stylus_pressure
102         ghost_disabled
103         new
104         file_tick
105         quit
106         url
107         recover_last
108         fullscreen_enter
109         fullscreen_exit
110         lamp
111         material
112         texture
113         anim
114         world
115         scene
116         edit
117         game
118         radio
119         script
120         particles
121         physics
122         speaker
123         texture_shaded
124         view3d
125         ipo
126         oops
127         buts
128         filesel
129         image_col
130         info
131         sequence
132         text
133         imasel
134         sound
135         action
136         nla
137         scriptwin
138         time
139         nodetree
140         logic
141         console
142         preferences
143         clip
144         asset_manager
145         object_datamode
146         editmode_hlt
147         facesel_hlt
148         vpaint_hlt
149         tpaint_hlt
150         wpaint_hlt
151         sculptmode_hlt
152         pose_hlt
153         particlemode
154         lightpaint
155         greasepencil_stroke_paint
156         scene_data
157         renderlayers
158         world_data
159         object_data
160         mesh_data
161         curve_data
162         meta_data
163         lattice_data
164         lamp_data
165         material_data
166         texture_data
167         anim_data
168         camera_data
169         particle_data
170         library_data_direct
171         group
172         armature_data
173         pose_data
174         bone_data
175         constraint
176         shapekey_data
177         constraint_bone
178         camera_stereo
179         package
180         uglypackage
181         brush_data
182         image_data
183         file
184         fcurve
185         font_data
186         render_result
187         surface_data
188         empty_data
189         settings
190         render_animation
191         render_still
192         library_data_broken
193         boids
194         strands
195         library_data_indirect
196         greasepencil
197         line_data
198         library_data_override
199         group_bone
200         group_vertex
201         group_vcol
202         group_uvs
203         rna
204         rna_add
205         outliner_ob_empty
206         outliner_ob_mesh
207         outliner_ob_curve
208         outliner_ob_lattice
209         outliner_ob_meta
210         outliner_ob_lamp
211         outliner_ob_camera
212         outliner_ob_armature
213         outliner_ob_font
214         outliner_ob_surface
215         outliner_ob_speaker
216         outliner_ob_force_field
217         outliner_ob_group_instance
218         outliner_ob_greasepencil
219         restrict_color_off
220         restrict_color_on
221         restrict_view_off
222         restrict_view_on
223         restrict_select_off
224         restrict_select_on
225         restrict_render_off
226         restrict_render_on
227         outliner_data_empty
228         outliner_data_mesh
229         outliner_data_curve
230         outliner_data_lattice
231         outliner_data_meta
232         outliner_data_lamp
233         outliner_data_camera
234         outliner_data_armature
235         outliner_data_font
236         outliner_data_surface
237         outliner_data_speaker
238         outliner_data_pose
239         outliner_data_greasepencil
240         mesh_plane
241         mesh_cube
242         mesh_circle
243         mesh_uvsphere
244         mesh_icosphere
245         mesh_grid
246         mesh_monkey
247         mesh_cylinder
248         mesh_torus
249         mesh_cone
250         mesh_capsule
251         lamp_point
252         lamp_sun
253         lamp_spot
254         lamp_hemi
255         lamp_area
256         meta_empty
257         meta_plane
258         meta_cube
259         meta_ball
260         meta_ellipsoid
261         meta_capsule
262         surface_ncurve
263         surface_ncircle
264         surface_nsurface
265         surface_ncylinder
266         surface_nsphere
267         surface_ntorus
268         curve_bezcurve
269         curve_bezcircle
270         curve_ncurve
271         curve_ncircle
272         curve_path
273         color_red
274         color_green
275         color_blue
276         tria_right_bar
277         tria_down_bar
278         tria_left_bar
279         tria_up_bar
280         force_force
281         force_wind
282         force_vortex
283         force_magnetic
284         force_harmonic
285         force_charge
286         force_lennardjones
287         force_texture
288         force_curve
289         force_boid
290         force_turbulence
291         force_drag
292         force_smokeflow
293         node_insert_on
294         node_insert_off
295         modifier
296         mod_wave
297         mod_build
298         mod_decim
299         mod_mirror
300         mod_soft
301         mod_subsurf
302         hook
303         mod_physics
304         mod_particles
305         mod_boolean
306         mod_edgesplit
307         mod_array
308         mod_uvproject
309         mod_displace
310         mod_curve
311         mod_lattice
312         constraint_data
313         mod_armature
314         mod_shrinkwrap
315         mod_cast
316         mod_meshdeform
317         mod_bevel
318         mod_smooth
319         mod_simpledeform
320         mod_mask
321         mod_cloth
322         mod_explode
323         mod_fluidsim
324         mod_multires
325         mod_smoke
326         mod_solidify
327         mod_screw
328         mod_vertex_weight
329         mod_dynamicpaint
330         mod_remesh
331         mod_ocean
332         mod_warp
333         mod_skin
334         mod_triangulate
335         mod_wireframe
336         mod_data_transfer
337         mod_normaledit
338         rec
339         play
340         ff
341         rew
342         pause
343         prev_keyframe
344         next_keyframe
345         play_audio
346         play_reverse
347         preview_range
348         action_tweak
349         pmarker_act
350         pmarker_sel
351         pmarker
352         marker_hlt
353         marker
354         space2
355         space3
356         keyingset
357         key_dehlt
358         key_hlt
359         mute_ipo_off
360         mute_ipo_on
361         visible_ipo_off
362         visible_ipo_on
363         driver
364         solo_off
365         solo_on
366         frame_prev
367         frame_next
368         nla_pushdown
369         ipo_constant
370         ipo_linear
371         ipo_bezier
372         ipo_sine
373         ipo_quad
374         ipo_cubic
375         ipo_quart
376         ipo_quint
377         ipo_expo
378         ipo_circ
379         ipo_bounce
380         ipo_elastic
381         ipo_back
382         ipo_ease_in
383         ipo_ease_out
384         ipo_ease_in_out
385         normalize_fcurves
386         vertexsel
387         edgesel
388         facesel
389         loopsel
390         rotate
391         cursor
392         rotatecollection
393         rotatecenter
394         rotactive
395         align
396         smoothcurve
397         spherecurve
398         rootcurve
399         sharpcurve
400         lincurve
401         nocurve
402         rndcurve
403         prop_off
404         prop_on
405         prop_con
406         particle_point
407         particle_tip
408         particle_path
409         man_trans
410         man_rot
411         man_scale
412         manipul
413         snap_off
414         snap_on
415         snap_normal
416         snap_grid
417         snap_vertex
418         snap_edge
419         snap_face
420         snap_volume
421         snap_increment
422         sticky_uvs_loc
423         sticky_uvs_disable
424         sticky_uvs_vert
425         clipuv_dehlt
426         clipuv_hlt
427         snap_peel_object
428         grid
429         object_origin
430         pastedown
431         copydown
432         pasteflipup
433         pasteflipdown
434         snap_surface
435         automerge_on
436         automerge_off
437         retopo
438         uv_vertexsel
439         uv_edgesel
440         uv_facesel
441         uv_islandsel
442         uv_sync_select
443         bbox
444         wire
445         solid
446         smooth
447         potato
448         ortho
449         lockview_off
450         lockview_on
451         axis_side
452         axis_front
453         axis_top
454         ndof_dom
455         ndof_turn
456         ndof_fly
457         ndof_trans
458         layer_used
459         layer_active
460         sortalpha
461         sortbyext
462         sorttime
463         sortsize
464         longdisplay
465         shortdisplay
466         ghost
467         imgdisplay
468         save_as
469         save_copy
470         bookmarks
471         fontpreview
472         filter
473         newfolder
474         open_recent
475         file_parent
476         file_refresh
477         file_folder
478         file_blend
479         file_image
480         file_movie
481         file_script
482         file_sound
483         file_font
484         file_text
485         recover_auto
486         save_prefs
487         link_blend
488         append_blend
489         import
490         export
491         external_data
492         load_factory
493         loop_back
494         loop_forwards
495         back
496         forward
497         file_hidden
498         file_backup
499         disk_drive
500         matplane
501         matsphere
502         matcube
503         monkey
504         hair
505         aliased
506         antialiased
507         mat_sphere_sky
508         wordwrap_off
509         wordwrap_on
510         syntax_off
511         syntax_on
512         linenumbers_off
513         linenumbers_on
514         scriptplugins
515         seq_sequencer
516         seq_preview
517         seq_luma_waveform
518         seq_chroma_scope
519         seq_histogram
520         seq_splitview
521         image_rgb
522         image_rgb_alpha
523         image_alpha
524         image_zdepth
525         imagefile
526 )
527
528 data_to_c_simple(../../../../release/datafiles/bfont.pfb SRC)
529 data_to_c_simple(../../../../release/datafiles/bfont.ttf SRC)
530 data_to_c_simple(../../../../release/datafiles/bmonofont.ttf SRC)
531
532 if(WITH_BLENDER)
533         # blender only (not player)
534
535         if(NOT WITH_HEADLESS)
536                 # blender UI only
537
538                 # blends
539                 data_to_c_simple(../../../../release/datafiles/preview.blend SRC)
540                 data_to_c_simple(../../../../release/datafiles/preview_cycles.blend SRC)
541
542                 # images
543                 data_to_c_simple(../../../../release/datafiles/splash.png SRC)
544                 data_to_c_simple(../../../../release/datafiles/splash_2x.png SRC)
545                 # XXX These are handy, but give nasty "false changes" in svn :/
546                 #svg_to_png(../../../../release/datafiles/blender_icons.svg
547                            #../../../../release/datafiles/blender_icons16.png
548                            #90 SRC)
549
550                 data_to_c_simple_icons(../../../../release/datafiles/blender_icons16 "icon16_" "${ICON_NAMES}" SRC)
551                 #data_to_c_simple(../../../../release/datafiles/blender_icons16.png SRC)
552                 #svg_to_png(../../../../release/datafiles/blender_icons.svg
553                            #../../../../release/datafiles/blender_icons32.png
554                            #180 SRC)
555                 data_to_c_simple_icons(../../../../release/datafiles/blender_icons32 "icon32_" "${ICON_NAMES}" SRC)
556                 #data_to_c_simple(../../../../release/datafiles/blender_icons32.png SRC)
557                 #svg_to_png(../../../../release/datafiles/prvicons.svg
558                            #../../../../release/datafiles/prvicons.png
559                            #90 SRC)
560                 data_to_c_simple(../../../../release/datafiles/prvicons.png SRC)
561
562                 # brushes
563                 data_to_c_simple(../../../../release/datafiles/brushicons/add.png SRC)
564                 data_to_c_simple(../../../../release/datafiles/brushicons/blob.png SRC)
565                 data_to_c_simple(../../../../release/datafiles/brushicons/blur.png SRC)
566                 data_to_c_simple(../../../../release/datafiles/brushicons/clay.png SRC)
567                 data_to_c_simple(../../../../release/datafiles/brushicons/claystrips.png SRC)
568                 data_to_c_simple(../../../../release/datafiles/brushicons/clone.png SRC)
569                 data_to_c_simple(../../../../release/datafiles/brushicons/crease.png SRC)
570                 data_to_c_simple(../../../../release/datafiles/brushicons/darken.png SRC)
571                 data_to_c_simple(../../../../release/datafiles/brushicons/draw.png SRC)
572                 data_to_c_simple(../../../../release/datafiles/brushicons/fill.png SRC)
573                 data_to_c_simple(../../../../release/datafiles/brushicons/flatten.png SRC)
574                 data_to_c_simple(../../../../release/datafiles/brushicons/grab.png SRC)
575                 data_to_c_simple(../../../../release/datafiles/brushicons/inflate.png SRC)
576                 data_to_c_simple(../../../../release/datafiles/brushicons/layer.png SRC)
577                 data_to_c_simple(../../../../release/datafiles/brushicons/lighten.png SRC)
578                 data_to_c_simple(../../../../release/datafiles/brushicons/mask.png SRC)
579                 data_to_c_simple(../../../../release/datafiles/brushicons/mix.png SRC)
580                 data_to_c_simple(../../../../release/datafiles/brushicons/multiply.png SRC)
581                 data_to_c_simple(../../../../release/datafiles/brushicons/nudge.png SRC)
582                 data_to_c_simple(../../../../release/datafiles/brushicons/pinch.png SRC)
583                 data_to_c_simple(../../../../release/datafiles/brushicons/scrape.png SRC)
584                 data_to_c_simple(../../../../release/datafiles/brushicons/smear.png SRC)
585                 data_to_c_simple(../../../../release/datafiles/brushicons/smooth.png SRC)
586                 data_to_c_simple(../../../../release/datafiles/brushicons/snake_hook.png SRC)
587                 data_to_c_simple(../../../../release/datafiles/brushicons/soften.png SRC)
588                 data_to_c_simple(../../../../release/datafiles/brushicons/subtract.png SRC)
589                 data_to_c_simple(../../../../release/datafiles/brushicons/texdraw.png SRC)
590                 data_to_c_simple(../../../../release/datafiles/brushicons/texfill.png SRC)
591                 data_to_c_simple(../../../../release/datafiles/brushicons/texmask.png SRC)
592                 data_to_c_simple(../../../../release/datafiles/brushicons/thumb.png SRC)
593                 data_to_c_simple(../../../../release/datafiles/brushicons/twist.png SRC)
594                 data_to_c_simple(../../../../release/datafiles/brushicons/vertexdraw.png SRC)
595
596                 # matcap
597                 data_to_c_simple(../../../../release/datafiles/matcaps/mc01.jpg SRC)
598                 data_to_c_simple(../../../../release/datafiles/matcaps/mc02.jpg SRC)
599                 data_to_c_simple(../../../../release/datafiles/matcaps/mc03.jpg SRC)
600                 data_to_c_simple(../../../../release/datafiles/matcaps/mc04.jpg SRC)
601                 data_to_c_simple(../../../../release/datafiles/matcaps/mc05.jpg SRC)
602                 data_to_c_simple(../../../../release/datafiles/matcaps/mc06.jpg SRC)
603                 data_to_c_simple(../../../../release/datafiles/matcaps/mc07.jpg SRC)
604                 data_to_c_simple(../../../../release/datafiles/matcaps/mc08.jpg SRC)
605                 data_to_c_simple(../../../../release/datafiles/matcaps/mc09.jpg SRC)
606                 data_to_c_simple(../../../../release/datafiles/matcaps/mc10.jpg SRC)
607                 data_to_c_simple(../../../../release/datafiles/matcaps/mc11.jpg SRC)
608                 data_to_c_simple(../../../../release/datafiles/matcaps/mc12.jpg SRC)
609                 data_to_c_simple(../../../../release/datafiles/matcaps/mc13.jpg SRC)
610                 data_to_c_simple(../../../../release/datafiles/matcaps/mc14.jpg SRC)
611                 data_to_c_simple(../../../../release/datafiles/matcaps/mc15.jpg SRC)
612                 data_to_c_simple(../../../../release/datafiles/matcaps/mc16.jpg SRC)
613                 data_to_c_simple(../../../../release/datafiles/matcaps/mc17.jpg SRC)
614                 data_to_c_simple(../../../../release/datafiles/matcaps/mc18.jpg SRC)
615                 data_to_c_simple(../../../../release/datafiles/matcaps/mc19.jpg SRC)
616                 data_to_c_simple(../../../../release/datafiles/matcaps/mc20.jpg SRC)
617                 data_to_c_simple(../../../../release/datafiles/matcaps/mc21.jpg SRC)
618                 data_to_c_simple(../../../../release/datafiles/matcaps/mc22.jpg SRC)
619                 data_to_c_simple(../../../../release/datafiles/matcaps/mc23.jpg SRC)
620                 data_to_c_simple(../../../../release/datafiles/matcaps/mc24.jpg SRC)
621
622         endif()
623
624         data_to_c_simple(../../../../release/datafiles/startup.blend SRC)
625 endif()
626
627 unset(ICON_NAMES)
628
629 blender_add_lib(bf_editor_datafiles "${SRC}" "${INC}" "${INC_SYS}")