]> git.street.me.uk Git - andy/viking.git/blame - src/icons/Makefile.am
Remove dependencies to gob2
[andy/viking.git] / src / icons / Makefile.am
CommitLineData
dad55b79
GB
1WAYPOINT_ICONS = \
2 wp_camp.png \
3 wp_car.png \
4 wp_deer.png \
5 wp_flag.png \
6 wp_geocache.png \
7 wp_geocache_fnd.png \
8 wp_house.png \
2f31d988
AF
9 wp_wpt_dot.png \
10 wp_dollar.png \
11 wp_golf.png \
12 wp_summit.png \
13 wp_anchor.png \
14 wp_forest.png \
15 wp_parking.png \
16 wp_sml_cty.png \
17 wp_med_cty.png \
18 wp_lrg_cty.png \
4587152b
MC
19 wp_cap_cty.png \
20 wp_bell.png \
21 wp_diamond_grn.png \
22 wp_diamond_red.png \
23 wp_dive1.png \
24 wp_dive2.png \
25 wp_fish.png \
26 wp_fuel.png \
27 wp_horn.png \
28 wp_knife.png \
29 wp_light.png \
30 wp_mug.png \
31 wp_skull.png \
32 wp_square_grn.png \
33 wp_square_red.png \
34 wp_wbuoy.png \
35 wp_wreck.png \
36 wp_null.png \
37 wp_mine.png \
38 wp_school.png \
39 wp_cemetery.png \
40 wp_church.png \
41 wp_military.png \
42 wp_mob.png \
43 wp_buoy_ambr.png \
44 wp_buoy_blck.png \
45 wp_buoy_blue.png \
46 wp_buoy_grn.png \
47 wp_buoy_grn_red.png \
48 wp_buoy_grn_wht.png \
49 wp_buoy_orng.png \
50 wp_buoy_red.png \
51 wp_buoy_red_grn.png \
52 wp_buoy_red_wht.png \
53 wp_buoy_violet.png \
54 wp_buoy_wht.png \
55 wp_buoy_wht_grn.png \
56 wp_buoy_wht_red.png \
57 wp_dot.png \
58 wp_rbcn.png \
59 wp_boat_ramp.png \
60 wp_restroom.png \
61 wp_shower.png \
62 wp_drinking_wtr.png \
63 wp_phone.png \
64 wp_1st_aid.png \
65 wp_info.png \
66 wp_park.png \
67 wp_picnic.png \
68 wp_scenic.png \
69 wp_skiing.png \
70 wp_swimming.png \
71 wp_dam.png \
72 wp_controlled.png \
73 wp_danger.png \
74 wp_restricted.png \
75 wp_ball.png \
76 wp_rv_park.png \
77 wp_bridge.png \
78 wp_building.png \
79 wp_tunnel.png \
80 wp_beach.png \
81 wp_airplane.png
dad55b79
GB
82
83ICONS = \
020b155b 84 viking_icon.png \
dad55b79 85 addtr_18.png \
98f5364d 86 begintr_18.png \
dad55b79
GB
87 addwp_18.png \
88 edtr_18.png \
89 edwp_18.png \
90 geomove_18.png \
91 geozoom_18.png \
92 mapdl_18.png \
0c1044e9 93 demdl_18.png \
576cbd17 94 mover_22.png \
dad55b79
GB
95 ruler_18.png \
96 showpic_18.png \
ee6ef0b1 97 zoom_18.png \
5bfafde9
GB
98 iscissors_18.png \
99 thumbnails.png \
100 vikaggregatelayer.png \
101 vikcoordlayer.png \
102 vikdemlayer.png \
103 vikgeoreflayer.png \
104 vikgpslayer.png \
105 vikmapslayer.png \
106 viktrwlayer.png
dad55b79 107
bce3a7b0
EB
108CURSORS = \
109 cursor_addtr.png \
98f5364d 110 cursor_begintr.png \
bce3a7b0
EB
111 cursor_edtr.png \
112 cursor_geozoom.png \
113 cursor_ruler.png \
114 cursor_addwp.png \
115 cursor_edwp.png \
116 cursor_iscissors.png \
117 cursor_showpic.png \
118 cursor_demdl.png \
119 cursor_geomove.png \
6dd43d93
QT
120 cursor_mapdl.png \
121 cursor_zoom.png
bce3a7b0
EB
122
123ALL_ICONS = $(ICONS) $(WAYPOINT_ICONS) $(CURSORS)
80dc8501 124EXTRA_DIST = $(ALL_ICONS)
5bfafde9 125ALL_ICONS_HEADER = $(ALL_ICONS:%.png=%_pixmap.h)
80dc8501 126
578c251a 127BUILT_SOURCES = $(ALL_ICONS_HEADER) icons.c icons.h
dad55b79
GB
128CLEANFILES = $(BUILT_SOURCES)
129
b6e6dfbd
GB
130noinst_LIBRARIES = libicons.a
131libicons_a_SOURCES = icons.c icons.h
132
578c251a 133icons.h: $(ALL_ICONS_HEADER)
b6e6dfbd 134 echo "/* Generated file */" > $@
5bfafde9 135 sed -n "s/^\(const.*\) = {/extern \1;/p" *_pixmap.h >> $@
b6e6dfbd 136
578c251a 137icons.c: $(ALL_ICONS_HEADER)
b6e6dfbd
GB
138 echo "/* Generated file */" > $@
139 echo "#include <gdk-pixbuf/gdk-pixdata.h>" >> $@
5bfafde9 140 for file in *_pixmap.h ; do echo "#include \"$$file\"" >> $@ ; done
80dc8501 141
5bfafde9
GB
142%_pixmap.h: %.png
143 gdk-pixbuf-csource --name="`basename $< .png`_pixbuf" --struct --extern $< > $@
941aa6e9
AF
144 cat $@ | sed -e 's/\(pixel_data: ..\)/\1 (unsigned char \*)/' > temp.h
145 mv temp.h $@
b6e6dfbd 146
578c251a
GB
147$(BUILT_SOURCES): $(srcdir)/Makefile.am
148
b6e6dfbd
GB
149INCLUDES = @GTK_CFLAGS@
150AM_CFLAGS = -Wall -g -D_GNU_SOURCE
ace0dae0
QT
151
152iconsdir = $(datadir)/icons
153icons_DATA = viking_icon.png