Remove (comment out) auto-generating png form svg (r59382) in CMake, handy but gives...
[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 data_to_c_simple(../../../../release/datafiles/bfont.pfb SRC)
35 data_to_c_simple(../../../../release/datafiles/bfont.ttf SRC)
36
37 if(WITH_BLENDER)
38         # blender only (not player)
39         data_to_c_simple(../../../../release/datafiles/bmonofont.ttf SRC)
40
41         if(NOT WITH_HEADLESS)
42                 # blender UI only
43
44                 # blends
45                 data_to_c_simple(../../../../release/datafiles/preview.blend SRC)
46                 data_to_c_simple(../../../../release/datafiles/preview_cycles.blend SRC)
47
48                 # images
49                 data_to_c_simple(../../../../release/datafiles/splash.png SRC)
50                 # XXX These are handy, but give nasty "false changes" in svn :/
51                 #svg_to_png(../../../../release/datafiles/blender_icons.svg
52                            #../../../../release/datafiles/blender_icons16.png
53                            #90 SRC)
54                 data_to_c_simple(../../../../release/datafiles/blender_icons16.png SRC)
55                 #svg_to_png(../../../../release/datafiles/blender_icons.svg
56                            #../../../../release/datafiles/blender_icons32.png
57                            #180 SRC)
58                 data_to_c_simple(../../../../release/datafiles/blender_icons32.png SRC)
59                 #svg_to_png(../../../../release/datafiles/prvicons.svg
60                            #../../../../release/datafiles/prvicons.png
61                            #90 SRC)
62                 data_to_c_simple(../../../../release/datafiles/prvicons.png SRC)
63
64                 # brushes
65                 data_to_c_simple(../../../../release/datafiles/brushicons/add.png SRC)
66                 data_to_c_simple(../../../../release/datafiles/brushicons/blob.png SRC)
67                 data_to_c_simple(../../../../release/datafiles/brushicons/blur.png SRC)
68                 data_to_c_simple(../../../../release/datafiles/brushicons/clay.png SRC)
69                 data_to_c_simple(../../../../release/datafiles/brushicons/claystrips.png SRC)
70                 data_to_c_simple(../../../../release/datafiles/brushicons/clone.png SRC)
71                 data_to_c_simple(../../../../release/datafiles/brushicons/crease.png SRC)
72                 data_to_c_simple(../../../../release/datafiles/brushicons/darken.png SRC)
73                 data_to_c_simple(../../../../release/datafiles/brushicons/draw.png SRC)
74                 data_to_c_simple(../../../../release/datafiles/brushicons/fill.png SRC)
75                 data_to_c_simple(../../../../release/datafiles/brushicons/flatten.png SRC)
76                 data_to_c_simple(../../../../release/datafiles/brushicons/grab.png SRC)
77                 data_to_c_simple(../../../../release/datafiles/brushicons/inflate.png SRC)
78                 data_to_c_simple(../../../../release/datafiles/brushicons/layer.png SRC)
79                 data_to_c_simple(../../../../release/datafiles/brushicons/lighten.png SRC)
80                 data_to_c_simple(../../../../release/datafiles/brushicons/mask.png SRC)
81                 data_to_c_simple(../../../../release/datafiles/brushicons/mix.png SRC)
82                 data_to_c_simple(../../../../release/datafiles/brushicons/multiply.png SRC)
83                 data_to_c_simple(../../../../release/datafiles/brushicons/nudge.png SRC)
84                 data_to_c_simple(../../../../release/datafiles/brushicons/pinch.png SRC)
85                 data_to_c_simple(../../../../release/datafiles/brushicons/scrape.png SRC)
86                 data_to_c_simple(../../../../release/datafiles/brushicons/smear.png SRC)
87                 data_to_c_simple(../../../../release/datafiles/brushicons/smooth.png SRC)
88                 data_to_c_simple(../../../../release/datafiles/brushicons/snake_hook.png SRC)
89                 data_to_c_simple(../../../../release/datafiles/brushicons/soften.png SRC)
90                 data_to_c_simple(../../../../release/datafiles/brushicons/subtract.png SRC)
91                 data_to_c_simple(../../../../release/datafiles/brushicons/texdraw.png SRC)
92                 data_to_c_simple(../../../../release/datafiles/brushicons/thumb.png SRC)
93                 data_to_c_simple(../../../../release/datafiles/brushicons/twist.png SRC)
94                 data_to_c_simple(../../../../release/datafiles/brushicons/vertexdraw.png SRC)
95
96                 # matcap
97                 data_to_c_simple(../../../../release/datafiles/matcaps/mc01.jpg SRC)
98                 data_to_c_simple(../../../../release/datafiles/matcaps/mc02.jpg SRC)
99                 data_to_c_simple(../../../../release/datafiles/matcaps/mc03.jpg SRC)
100                 data_to_c_simple(../../../../release/datafiles/matcaps/mc04.jpg SRC)
101                 data_to_c_simple(../../../../release/datafiles/matcaps/mc05.jpg SRC)
102                 data_to_c_simple(../../../../release/datafiles/matcaps/mc06.jpg SRC)
103                 data_to_c_simple(../../../../release/datafiles/matcaps/mc07.jpg SRC)
104                 data_to_c_simple(../../../../release/datafiles/matcaps/mc08.jpg SRC)
105                 data_to_c_simple(../../../../release/datafiles/matcaps/mc09.jpg SRC)
106                 data_to_c_simple(../../../../release/datafiles/matcaps/mc10.jpg SRC)
107                 data_to_c_simple(../../../../release/datafiles/matcaps/mc11.jpg SRC)
108                 data_to_c_simple(../../../../release/datafiles/matcaps/mc12.jpg SRC)
109                 data_to_c_simple(../../../../release/datafiles/matcaps/mc13.jpg SRC)
110                 data_to_c_simple(../../../../release/datafiles/matcaps/mc14.jpg SRC)
111                 data_to_c_simple(../../../../release/datafiles/matcaps/mc15.jpg SRC)
112                 data_to_c_simple(../../../../release/datafiles/matcaps/mc16.jpg SRC)
113                 data_to_c_simple(../../../../release/datafiles/matcaps/mc17.jpg SRC)
114                 data_to_c_simple(../../../../release/datafiles/matcaps/mc18.jpg SRC)
115                 data_to_c_simple(../../../../release/datafiles/matcaps/mc19.jpg SRC)
116                 data_to_c_simple(../../../../release/datafiles/matcaps/mc20.jpg SRC)
117                 data_to_c_simple(../../../../release/datafiles/matcaps/mc21.jpg SRC)
118                 data_to_c_simple(../../../../release/datafiles/matcaps/mc22.jpg SRC)
119                 data_to_c_simple(../../../../release/datafiles/matcaps/mc23.jpg SRC)
120                 data_to_c_simple(../../../../release/datafiles/matcaps/mc24.jpg SRC)
121
122         endif()
123
124         data_to_c_simple(../../../../release/datafiles/startup.blend SRC)
125 endif()
126
127 blender_add_lib(bf_editor_datafiles "${SRC}" "${INC}" "${INC_SYS}")