CMake: store icon names
[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         scene_data
156         renderlayers
157         world_data
158         object_data
159         mesh_data
160         curve_data
161         meta_data
162         lattice_data
163         lamp_data
164         material_data
165         texture_data
166         anim_data
167         camera_data
168         particle_data
169         library_data_direct
170         group
171         armature_data
172         pose_data
173         bone_data
174         constraint
175         shapekey_data
176         constraint_bone
177         camera_stereo
178         package
179         uglypackage
180         brush_data
181         image_data
182         file
183         fcurve
184         font_data
185         render_result
186         surface_data
187         empty_data
188         settings
189         render_animation
190         render_still
191         library_data_broken
192         boids
193         strands
194         library_data_indirect
195         greasepencil
196         line_data
197         group_bone
198         group_vertex
199         group_vcol
200         group_uvs
201         rna
202         rna_add
203         outliner_ob_empty
204         outliner_ob_mesh
205         outliner_ob_curve
206         outliner_ob_lattice
207         outliner_ob_meta
208         outliner_ob_lamp
209         outliner_ob_camera
210         outliner_ob_armature
211         outliner_ob_font
212         outliner_ob_surface
213         outliner_ob_speaker
214         outliner_ob_force_field
215         outliner_ob_group_instance
216         restrict_color_off
217         restrict_color_on
218         restrict_view_off
219         restrict_view_on
220         restrict_select_off
221         restrict_select_on
222         restrict_render_off
223         restrict_render_on
224         outliner_data_empty
225         outliner_data_mesh
226         outliner_data_curve
227         outliner_data_lattice
228         outliner_data_meta
229         outliner_data_lamp
230         outliner_data_camera
231         outliner_data_armature
232         outliner_data_font
233         outliner_data_surface
234         outliner_data_speaker
235         outliner_data_pose
236         mesh_plane
237         mesh_cube
238         mesh_circle
239         mesh_uvsphere
240         mesh_icosphere
241         mesh_grid
242         mesh_monkey
243         mesh_cylinder
244         mesh_torus
245         mesh_cone
246         mesh_capsule
247         lamp_point
248         lamp_sun
249         lamp_spot
250         lamp_hemi
251         lamp_area
252         meta_empty
253         meta_plane
254         meta_cube
255         meta_ball
256         meta_ellipsoid
257         meta_capsule
258         surface_ncurve
259         surface_ncircle
260         surface_nsurface
261         surface_ncylinder
262         surface_nsphere
263         surface_ntorus
264         curve_bezcurve
265         curve_bezcircle
266         curve_ncurve
267         curve_ncircle
268         curve_path
269         color_red
270         color_green
271         color_blue
272         tria_right_bar
273         tria_down_bar
274         tria_left_bar
275         tria_up_bar
276         force_force
277         force_wind
278         force_vortex
279         force_magnetic
280         force_harmonic
281         force_charge
282         force_lennardjones
283         force_texture
284         force_curve
285         force_boid
286         force_turbulence
287         force_drag
288         force_smokeflow
289         node_insert_on
290         node_insert_off
291         modifier
292         mod_wave
293         mod_build
294         mod_decim
295         mod_mirror
296         mod_soft
297         mod_subsurf
298         hook
299         mod_physics
300         mod_particles
301         mod_boolean
302         mod_edgesplit
303         mod_array
304         mod_uvproject
305         mod_displace
306         mod_curve
307         mod_lattice
308         constraint_data
309         mod_armature
310         mod_shrinkwrap
311         mod_cast
312         mod_meshdeform
313         mod_bevel
314         mod_smooth
315         mod_simpledeform
316         mod_mask
317         mod_cloth
318         mod_explode
319         mod_fluidsim
320         mod_multires
321         mod_smoke
322         mod_solidify
323         mod_screw
324         mod_vertex_weight
325         mod_dynamicpaint
326         mod_remesh
327         mod_ocean
328         mod_warp
329         mod_skin
330         mod_triangulate
331         mod_wireframe
332         mod_data_transfer
333         mod_normaledit
334         rec
335         play
336         ff
337         rew
338         pause
339         prev_keyframe
340         next_keyframe
341         play_audio
342         play_reverse
343         preview_range
344         action_tweak
345         pmarker_act
346         pmarker_sel
347         pmarker
348         marker_hlt
349         marker
350         space2
351         space3
352         keyingset
353         key_dehlt
354         key_hlt
355         mute_ipo_off
356         mute_ipo_on
357         visible_ipo_off
358         visible_ipo_on
359         driver
360         solo_off
361         solo_on
362         frame_prev
363         frame_next
364         nla_pushdown
365         ipo_constant
366         ipo_linear
367         ipo_bezier
368         ipo_sine
369         ipo_quad
370         ipo_cubic
371         ipo_quart
372         ipo_quint
373         ipo_expo
374         ipo_circ
375         ipo_bounce
376         ipo_elastic
377         ipo_back
378         ipo_ease_in
379         ipo_ease_out
380         ipo_ease_in_out
381         normalize_fcurves
382         vertexsel
383         edgesel
384         facesel
385         loopsel
386         rotate
387         cursor
388         rotatecollection
389         rotatecenter
390         rotactive
391         align
392         smoothcurve
393         spherecurve
394         rootcurve
395         sharpcurve
396         lincurve
397         nocurve
398         rndcurve
399         prop_off
400         prop_on
401         prop_con
402         particle_point
403         particle_tip
404         particle_path
405         man_trans
406         man_rot
407         man_scale
408         manipul
409         snap_off
410         snap_on
411         snap_normal
412         snap_grid
413         snap_vertex
414         snap_edge
415         snap_face
416         snap_volume
417         snap_increment
418         sticky_uvs_loc
419         sticky_uvs_disable
420         sticky_uvs_vert
421         clipuv_dehlt
422         clipuv_hlt
423         snap_peel_object
424         grid
425         pastedown
426         copydown
427         pasteflipup
428         pasteflipdown
429         snap_surface
430         automerge_on
431         automerge_off
432         retopo
433         uv_vertexsel
434         uv_edgesel
435         uv_facesel
436         uv_islandsel
437         uv_sync_select
438         bbox
439         wire
440         solid
441         smooth
442         potato
443         ortho
444         lockview_off
445         lockview_on
446         axis_side
447         axis_front
448         axis_top
449         ndof_dom
450         ndof_turn
451         ndof_fly
452         ndof_trans
453         layer_used
454         layer_active
455         sortalpha
456         sortbyext
457         sorttime
458         sortsize
459         longdisplay
460         shortdisplay
461         ghost
462         imgdisplay
463         save_as
464         save_copy
465         bookmarks
466         fontpreview
467         filter
468         newfolder
469         open_recent
470         file_parent
471         file_refresh
472         file_folder
473         file_blend
474         file_image
475         file_movie
476         file_script
477         file_sound
478         file_font
479         file_text
480         recover_auto
481         save_prefs
482         link_blend
483         append_blend
484         import
485         export
486         external_data
487         load_factory
488         loop_back
489         loop_forwards
490         back
491         forward
492         file_hidden
493         file_backup
494         disk_drive
495         matplane
496         matsphere
497         matcube
498         monkey
499         hair
500         aliased
501         antialiased
502         mat_sphere_sky
503         wordwrap_off
504         wordwrap_on
505         syntax_off
506         syntax_on
507         linenumbers_off
508         linenumbers_on
509         scriptplugins
510         seq_sequencer
511         seq_preview
512         seq_luma_waveform
513         seq_chroma_scope
514         seq_histogram
515         seq_splitview
516         image_rgb
517         image_rgb_alpha
518         image_alpha
519         image_zdepth
520         imagefile
521 )
522
523 data_to_c_simple(../../../../release/datafiles/bfont.pfb SRC)
524 data_to_c_simple(../../../../release/datafiles/bfont.ttf SRC)
525 data_to_c_simple(../../../../release/datafiles/bmonofont.ttf SRC)
526
527 if(WITH_BLENDER)
528         # blender only (not player)
529
530         if(NOT WITH_HEADLESS)
531                 # blender UI only
532
533                 # blends
534                 data_to_c_simple(../../../../release/datafiles/preview.blend SRC)
535                 data_to_c_simple(../../../../release/datafiles/preview_cycles.blend SRC)
536
537                 # images
538                 data_to_c_simple(../../../../release/datafiles/splash.png SRC)
539                 data_to_c_simple(../../../../release/datafiles/splash_2x.png SRC)
540                 # XXX These are handy, but give nasty "false changes" in svn :/
541                 #svg_to_png(../../../../release/datafiles/blender_icons.svg
542                            #../../../../release/datafiles/blender_icons16.png
543                            #90 SRC)
544
545                 data_to_c_simple_icons(../../../../release/datafiles/blender_icons16 "icon16_" "${ICON_NAMES}" SRC)
546                 #data_to_c_simple(../../../../release/datafiles/blender_icons16.png SRC)
547                 #svg_to_png(../../../../release/datafiles/blender_icons.svg
548                            #../../../../release/datafiles/blender_icons32.png
549                            #180 SRC)
550                 data_to_c_simple_icons(../../../../release/datafiles/blender_icons32 "icon32_" "${ICON_NAMES}" SRC)
551                 #data_to_c_simple(../../../../release/datafiles/blender_icons32.png SRC)
552                 #svg_to_png(../../../../release/datafiles/prvicons.svg
553                            #../../../../release/datafiles/prvicons.png
554                            #90 SRC)
555                 data_to_c_simple(../../../../release/datafiles/prvicons.png SRC)
556
557                 # brushes
558                 data_to_c_simple(../../../../release/datafiles/brushicons/add.png SRC)
559                 data_to_c_simple(../../../../release/datafiles/brushicons/blob.png SRC)
560                 data_to_c_simple(../../../../release/datafiles/brushicons/blur.png SRC)
561                 data_to_c_simple(../../../../release/datafiles/brushicons/clay.png SRC)
562                 data_to_c_simple(../../../../release/datafiles/brushicons/claystrips.png SRC)
563                 data_to_c_simple(../../../../release/datafiles/brushicons/clone.png SRC)
564                 data_to_c_simple(../../../../release/datafiles/brushicons/crease.png SRC)
565                 data_to_c_simple(../../../../release/datafiles/brushicons/darken.png SRC)
566                 data_to_c_simple(../../../../release/datafiles/brushicons/draw.png SRC)
567                 data_to_c_simple(../../../../release/datafiles/brushicons/fill.png SRC)
568                 data_to_c_simple(../../../../release/datafiles/brushicons/flatten.png SRC)
569                 data_to_c_simple(../../../../release/datafiles/brushicons/grab.png SRC)
570                 data_to_c_simple(../../../../release/datafiles/brushicons/inflate.png SRC)
571                 data_to_c_simple(../../../../release/datafiles/brushicons/layer.png SRC)
572                 data_to_c_simple(../../../../release/datafiles/brushicons/lighten.png SRC)
573                 data_to_c_simple(../../../../release/datafiles/brushicons/mask.png SRC)
574                 data_to_c_simple(../../../../release/datafiles/brushicons/mix.png SRC)
575                 data_to_c_simple(../../../../release/datafiles/brushicons/multiply.png SRC)
576                 data_to_c_simple(../../../../release/datafiles/brushicons/nudge.png SRC)
577                 data_to_c_simple(../../../../release/datafiles/brushicons/pinch.png SRC)
578                 data_to_c_simple(../../../../release/datafiles/brushicons/scrape.png SRC)
579                 data_to_c_simple(../../../../release/datafiles/brushicons/smear.png SRC)
580                 data_to_c_simple(../../../../release/datafiles/brushicons/smooth.png SRC)
581                 data_to_c_simple(../../../../release/datafiles/brushicons/snake_hook.png SRC)
582                 data_to_c_simple(../../../../release/datafiles/brushicons/soften.png SRC)
583                 data_to_c_simple(../../../../release/datafiles/brushicons/subtract.png SRC)
584                 data_to_c_simple(../../../../release/datafiles/brushicons/texdraw.png SRC)
585                 data_to_c_simple(../../../../release/datafiles/brushicons/texfill.png SRC)
586                 data_to_c_simple(../../../../release/datafiles/brushicons/texmask.png SRC)
587                 data_to_c_simple(../../../../release/datafiles/brushicons/thumb.png SRC)
588                 data_to_c_simple(../../../../release/datafiles/brushicons/twist.png SRC)
589                 data_to_c_simple(../../../../release/datafiles/brushicons/vertexdraw.png SRC)
590
591                 # matcap
592                 data_to_c_simple(../../../../release/datafiles/matcaps/mc01.jpg SRC)
593                 data_to_c_simple(../../../../release/datafiles/matcaps/mc02.jpg SRC)
594                 data_to_c_simple(../../../../release/datafiles/matcaps/mc03.jpg SRC)
595                 data_to_c_simple(../../../../release/datafiles/matcaps/mc04.jpg SRC)
596                 data_to_c_simple(../../../../release/datafiles/matcaps/mc05.jpg SRC)
597                 data_to_c_simple(../../../../release/datafiles/matcaps/mc06.jpg SRC)
598                 data_to_c_simple(../../../../release/datafiles/matcaps/mc07.jpg SRC)
599                 data_to_c_simple(../../../../release/datafiles/matcaps/mc08.jpg SRC)
600                 data_to_c_simple(../../../../release/datafiles/matcaps/mc09.jpg SRC)
601                 data_to_c_simple(../../../../release/datafiles/matcaps/mc10.jpg SRC)
602                 data_to_c_simple(../../../../release/datafiles/matcaps/mc11.jpg SRC)
603                 data_to_c_simple(../../../../release/datafiles/matcaps/mc12.jpg SRC)
604                 data_to_c_simple(../../../../release/datafiles/matcaps/mc13.jpg SRC)
605                 data_to_c_simple(../../../../release/datafiles/matcaps/mc14.jpg SRC)
606                 data_to_c_simple(../../../../release/datafiles/matcaps/mc15.jpg SRC)
607                 data_to_c_simple(../../../../release/datafiles/matcaps/mc16.jpg SRC)
608                 data_to_c_simple(../../../../release/datafiles/matcaps/mc17.jpg SRC)
609                 data_to_c_simple(../../../../release/datafiles/matcaps/mc18.jpg SRC)
610                 data_to_c_simple(../../../../release/datafiles/matcaps/mc19.jpg SRC)
611                 data_to_c_simple(../../../../release/datafiles/matcaps/mc20.jpg SRC)
612                 data_to_c_simple(../../../../release/datafiles/matcaps/mc21.jpg SRC)
613                 data_to_c_simple(../../../../release/datafiles/matcaps/mc22.jpg SRC)
614                 data_to_c_simple(../../../../release/datafiles/matcaps/mc23.jpg SRC)
615                 data_to_c_simple(../../../../release/datafiles/matcaps/mc24.jpg SRC)
616
617         endif()
618
619         data_to_c_simple(../../../../release/datafiles/startup.blend SRC)
620 endif()
621
622 unset(ICON_NAMES)
623
624 blender_add_lib(bf_editor_datafiles "${SRC}" "${INC}" "${INC_SYS}")