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