simplified data_to_c macro in cmake
[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         Bfont.c
32         bfont.ttf.c
33 )
34
35 if(WITH_BLENDER)
36         # blender only
37         list(APPEND SRC
38                 # startup.blend.c
39                 bmonofont.ttf.c
40         )
41
42         if(NOT WITH_HEADLESS)
43                 # blender UI only
44                 list(APPEND SRC
45                         # images
46                         splash.png.c
47                         blender_icons.png.c
48
49                         # brushes
50                         add.png.c
51                         blob.png.c
52                         blur.png.c
53                         clay.png.c
54                         clone.png.c
55                         crease.png.c
56                         darken.png.c
57                         draw.png.c
58                         fill.png.c
59                         flatten.png.c
60                         grab.png.c
61                         inflate.png.c
62                         layer.png.c
63                         lighten.png.c
64                         mask.png.c
65                         mix.png.c
66                         multiply.png.c
67                         nudge.png.c
68                         pinch.png.c
69                         prvicons.c
70                         scrape.png.c
71                         smear.png.c
72                         smooth.png.c
73                         snake_hook.png.c
74                         soften.png.c
75                         claystrips.png.c
76                         subtract.png.c
77                         texdraw.png.c
78                         thumb.png.c
79                         twist.png.c
80                         vertexdraw.png.c
81                 )
82
83                 data_to_c_simple(../../../../release/datafiles/preview.blend SRC)
84         endif()
85
86         data_to_c_simple(../../../../release/datafiles/startup.blend SRC)
87 endif()
88
89 blender_add_lib(bf_editor_datafiles "${SRC}" "${INC}" "${INC_SYS}")