]> git.street.me.uk Git - andy/viking.git/blob - src/icons/Makefile.am
Prevent requests for downloading tiles at Zoom Level 19 and above for most map types
[andy/viking.git] / src / icons / Makefile.am
1 WAYPOINT_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 \
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 \
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 \
82         wp_ice_skating.png
83
84 WAYPOINT_ICONS_LARGE =
85 WAYPOINT_ICONS_LARGE += wp_1st_aid_large.png
86 WAYPOINT_ICONS_LARGE += wp_airplane_large.png
87 WAYPOINT_ICONS_LARGE += wp_amuse_pk_large.png
88 WAYPOINT_ICONS_LARGE += wp_anchor_large.png
89 WAYPOINT_ICONS_LARGE += wp_ball_large.png
90 WAYPOINT_ICONS_LARGE += wp_beach_large.png
91 WAYPOINT_ICONS_LARGE += wp_bell_large.png
92 WAYPOINT_ICONS_LARGE += wp_bike_trail_large.png
93 WAYPOINT_ICONS_LARGE += wp_block_blue_large.png
94 WAYPOINT_ICONS_LARGE += wp_block_green_large.png
95 WAYPOINT_ICONS_LARGE += wp_block_red_large.png
96 WAYPOINT_ICONS_LARGE += wp_boat_ramp_large.png
97 WAYPOINT_ICONS_LARGE += wp_bowling_large.png
98 WAYPOINT_ICONS_LARGE += wp_bridge_large.png
99 WAYPOINT_ICONS_LARGE += wp_building_large.png
100 WAYPOINT_ICONS_LARGE += wp_buoy_ambr_large.png
101 WAYPOINT_ICONS_LARGE += wp_buoy_blck_large.png
102 WAYPOINT_ICONS_LARGE += wp_buoy_blue_large.png
103 WAYPOINT_ICONS_LARGE += wp_buoy_grn_large.png
104 WAYPOINT_ICONS_LARGE += wp_buoy_grn_red_large.png
105 WAYPOINT_ICONS_LARGE += wp_buoy_grn_wht_large.png
106 WAYPOINT_ICONS_LARGE += wp_buoy_orng_large.png
107 WAYPOINT_ICONS_LARGE += wp_buoy_red_grn_large.png
108 WAYPOINT_ICONS_LARGE += wp_buoy_red_large.png
109 WAYPOINT_ICONS_LARGE += wp_buoy_red_wht_large.png
110 WAYPOINT_ICONS_LARGE += wp_buoy_violet_large.png
111 WAYPOINT_ICONS_LARGE += wp_buoy_wht_grn_large.png
112 WAYPOINT_ICONS_LARGE += wp_buoy_wht_large.png
113 WAYPOINT_ICONS_LARGE += wp_buoy_wht_red_large.png
114 WAYPOINT_ICONS_LARGE += wp_camp_large.png
115 WAYPOINT_ICONS_LARGE += wp_car_large.png
116 WAYPOINT_ICONS_LARGE += wp_car_rental_large.png
117 WAYPOINT_ICONS_LARGE += wp_car_repair_large.png
118 WAYPOINT_ICONS_LARGE += wp_cemetery_large.png
119 WAYPOINT_ICONS_LARGE += wp_church_large.png
120 WAYPOINT_ICONS_LARGE += wp_civil_large.png
121 WAYPOINT_ICONS_LARGE += wp_controlled_large.png
122 WAYPOINT_ICONS_LARGE += wp_conv_store_large.png
123 WAYPOINT_ICONS_LARGE += wp_crossing_large.png
124 WAYPOINT_ICONS_LARGE += wp_dam_large.png
125 WAYPOINT_ICONS_LARGE += wp_danger_large.png
126 WAYPOINT_ICONS_LARGE += wp_deer_large.png
127 WAYPOINT_ICONS_LARGE += wp_dive1_large.png
128 WAYPOINT_ICONS_LARGE += wp_dive2_large.png
129 WAYPOINT_ICONS_LARGE += wp_dollar_large.png
130 WAYPOINT_ICONS_LARGE += wp_drinking_wtr_large.png
131 WAYPOINT_ICONS_LARGE += wp_fastfood_large.png
132 WAYPOINT_ICONS_LARGE += wp_fhs_facility_large.png
133 WAYPOINT_ICONS_LARGE += wp_fish_large.png
134 WAYPOINT_ICONS_LARGE += wp_fitness_large.png
135 WAYPOINT_ICONS_LARGE += wp_flag_blue_large.png
136 WAYPOINT_ICONS_LARGE += wp_flag_green_large.png
137 WAYPOINT_ICONS_LARGE += wp_flag_red_large.png
138 WAYPOINT_ICONS_LARGE += wp_forest_large.png
139 WAYPOINT_ICONS_LARGE += wp_fuel_large.png
140 WAYPOINT_ICONS_LARGE += wp_geocache_fnd_large.png
141 WAYPOINT_ICONS_LARGE += wp_geocache_large.png
142 WAYPOINT_ICONS_LARGE += wp_glider_large.png
143 WAYPOINT_ICONS_LARGE += wp_golf_large.png
144 WAYPOINT_ICONS_LARGE += wp_grnd_trans_large.png
145 WAYPOINT_ICONS_LARGE += wp_horn_large.png
146 WAYPOINT_ICONS_LARGE += wp_house_large.png
147 WAYPOINT_ICONS_LARGE += wp_ice_skating_large.png
148 WAYPOINT_ICONS_LARGE += wp_info_large.png
149 WAYPOINT_ICONS_LARGE += wp_knife_large.png
150 WAYPOINT_ICONS_LARGE += wp_light_large.png
151 WAYPOINT_ICONS_LARGE += wp_lodging_large.png
152 WAYPOINT_ICONS_LARGE += wp_lrg_cty_large.png
153 WAYPOINT_ICONS_LARGE += wp_med_cty_large.png
154 WAYPOINT_ICONS_LARGE += wp_mine_large.png
155 WAYPOINT_ICONS_LARGE += wp_mob_large.png
156 WAYPOINT_ICONS_LARGE += wp_movie_large.png
157 WAYPOINT_ICONS_LARGE += wp_mug_large.png
158 WAYPOINT_ICONS_LARGE += wp_museum_large.png
159 WAYPOINT_ICONS_LARGE += wp_oil_field_large.png
160 WAYPOINT_ICONS_LARGE += wp_parachute_large.png
161 WAYPOINT_ICONS_LARGE += wp_parking_large.png
162 WAYPOINT_ICONS_LARGE += wp_park_large.png
163 WAYPOINT_ICONS_LARGE += wp_pharmacy_large.png
164 WAYPOINT_ICONS_LARGE += wp_phone_large.png
165 WAYPOINT_ICONS_LARGE += wp_picnic_large.png
166 WAYPOINT_ICONS_LARGE += wp_pin_blue_large.png
167 WAYPOINT_ICONS_LARGE += wp_pin_green_large.png
168 WAYPOINT_ICONS_LARGE += wp_pin_red_large.png
169 WAYPOINT_ICONS_LARGE += wp_pizza_large.png
170 WAYPOINT_ICONS_LARGE += wp_police_large.png
171 WAYPOINT_ICONS_LARGE += wp_post_ofc_large.png
172 WAYPOINT_ICONS_LARGE += wp_rbcn_large.png
173 WAYPOINT_ICONS_LARGE += wp_restricted_large.png
174 WAYPOINT_ICONS_LARGE += wp_restroom_large.png
175 WAYPOINT_ICONS_LARGE += wp_rv_park_large.png
176 WAYPOINT_ICONS_LARGE += wp_scenic_large.png
177 WAYPOINT_ICONS_LARGE += wp_school_large.png
178 WAYPOINT_ICONS_LARGE += wp_shopping_large.png
179 WAYPOINT_ICONS_LARGE += wp_short_tower_large.png
180 WAYPOINT_ICONS_LARGE += wp_shower_large.png
181 WAYPOINT_ICONS_LARGE += wp_skiing_large.png
182 WAYPOINT_ICONS_LARGE += wp_ski_resort_large.png
183 WAYPOINT_ICONS_LARGE += wp_skull_large.png
184 WAYPOINT_ICONS_LARGE += wp_sml_cty_large.png
185 WAYPOINT_ICONS_LARGE += wp_stadium_large.png
186 WAYPOINT_ICONS_LARGE += wp_store_large.png
187 WAYPOINT_ICONS_LARGE += wp_summit_large.png
188 WAYPOINT_ICONS_LARGE += wp_swimming_large.png
189 WAYPOINT_ICONS_LARGE += wp_tall_tower_large.png
190 WAYPOINT_ICONS_LARGE += wp_theater_large.png
191 WAYPOINT_ICONS_LARGE += wp_toll_booth_large.png
192 WAYPOINT_ICONS_LARGE += wp_trail_head_large.png
193 WAYPOINT_ICONS_LARGE += wp_truck_stop_large.png
194 WAYPOINT_ICONS_LARGE += wp_tunnel_large.png
195 WAYPOINT_ICONS_LARGE += wp_ultralight_large.png
196 WAYPOINT_ICONS_LARGE += wp_wbuoy_large.png
197 WAYPOINT_ICONS_LARGE += wp_weigh_station_large.png
198 WAYPOINT_ICONS_LARGE += wp_wrecker_large.png
199 WAYPOINT_ICONS_LARGE += wp_wreck_large.png
200 WAYPOINT_ICONS_LARGE += wp_zoo_large.png
201
202 ICONS = \
203         viking.png \
204         bing_maps.png \
205         addtr_18.png \
206         vik_new_route_18.png \
207         addwp_18.png \
208         edtr_18.png \
209         edwp_18.png \
210         geomove_18.png \
211         geozoom_18.png \
212         mapdl_18.png \
213         demdl_18.png \
214         mover_22.png \
215         ruler_18.png \
216         showpic_18.png \
217         zoom_18.png \
218         route_finder_18.png \
219         select_18.png \
220         thumbnails.png \
221         vikaggregatelayer.png \
222         vikcoordlayer.png \
223         vikdemlayer.png \
224         vikgeoreflayer.png \
225         vikgpslayer.png \
226         vikmapslayer.png \
227         viktrwlayer.png
228
229 CURSORS = \
230         cursor_addtr.png \
231         cursor_new_route.png \
232         cursor_edtr.png \
233         cursor_geozoom.png \
234         cursor_ruler.png \
235         cursor_addwp.png \
236         cursor_edwp.png \
237         cursor_route_finder.png \
238         cursor_showpic.png \
239         cursor_demdl.png \
240         cursor_geomove.png \
241         cursor_mapdl.png \
242         cursor_zoom.png
243
244 ALL_ICONS = $(ICONS) $(WAYPOINT_ICONS) $(WAYPOINT_ICONS_LARGE) $(CURSORS)
245 EXTRA_DIST = $(ALL_ICONS)
246 ALL_ICONS_HEADER = $(ALL_ICONS:.png=_pixmap.h)
247
248 BUILT_SOURCES = $(ALL_ICONS_HEADER) icons.c icons.h
249 CLEANFILES = $(BUILT_SOURCES)
250 SUFFIXES = .png _pixmap.h
251
252 .png_pixmap.h:
253         gdk-pixbuf-csource --name="`basename $< .png`_pixbuf" --struct --extern $< > $@
254         cat $@ | sed -e 's/\(pixel_data: ..\)/\1 (unsigned char \*)/' > temp$@.h
255         mv temp$@.h $@
256
257 noinst_LIBRARIES = libicons.a
258 libicons_a_SOURCES = icons.c icons.h
259
260 icons.h: $(ALL_ICONS_HEADER)
261         echo "/* Generated file */" > $@
262         sed -n "s/^\(const.*\) = {/extern \1;/p" $(ALL_ICONS_HEADER) >> $@
263
264 icons.c: $(ALL_ICONS_HEADER)
265         echo "/* Generated file */" > $@
266         echo "#include <gdk-pixbuf/gdk-pixdata.h>" >> $@
267         for file in *_pixmap.h ; do echo "#include \"$$file\"" >> $@ ; done
268
269 $(BUILT_SOURCES): $(srcdir)/Makefile.am
270
271 AM_CFLAGS       = -Wall -g -D_GNU_SOURCE \
272         $(PACKAGE_CFLAGS)
273
274 iconsdir = $(datadir)/icons/hicolor/48x48/apps
275 icons_DATA = viking.png
276 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
277
278 install-data-hook:
279         @-if test -z "$(DESTDIR)"; then \
280                 echo "Updating Gtk icon cache."; \
281                 $(gtk_update_icon_cache); \
282         else \
283                 echo "*** Icon cache not updated.  After install, run this:"; \
284                 echo "***   $(gtk_update_icon_cache)"; \
285         fi