source: git/lib/icons/Makefile.am @ 08be670

RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since 08be670 was 63c2fe8, checked in by Olly Betts <olly@…>, 10 years ago
  • .gitignore,lib/icons/,src/aven.rc,src/mainfrm.cc: Rather than loading

all the toolbar and notebook icons from PNG files on disk, compile
them into the aven binary. On most platforms, as XPMs; on MSW as
.ico files via a generated .rc file.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[620b2b7]1## Process this file with automake to produce Makefile.in
2
[63c2fe8]3xpm_files = \
4        open.xpm \
5        open_pres.xpm \
6        rotation.xpm \
7        plan.xpm \
8        elevation.xpm \
9        defaults.xpm \
10        names.xpm \
11        crosses.xpm \
12        entrances.xpm \
13        fixed_pts.xpm \
14        exported_pts.xpm \
15        ug_legs.xpm \
16        surface_legs.xpm \
17        tubes.xpm \
18        pres_frew.xpm \
19        pres_rew.xpm \
20        pres_go_back.xpm \
21        pres_pause.xpm \
22        pres_go.xpm \
23        pres_ff.xpm \
24        pres_fff.xpm \
25        pres_stop.xpm \
26        find.xpm \
27        hideresults.xpm \
28        survey_tree.xpm \
29        pres_tree.xpm
30
31ico_files = $(xpm_files:.xpm=.ico)
32
33aven-icons.rc: Makefile.am
34        perl -e 'for (@ARGV) { /(.*)\.ico$$/ and print "$$1 ICON $$_\n" }' \
35          $(ico_files) > aven-icons.rc
36
[d0339a4]37icondir = $(pkgdatadir)/icons
[95fa391]38# aven.png doesn't need to be installed on win32, but it's only 527 bytes.
[63c2fe8]39dist_icon_DATA = \
40        aven-about.png\
[e499239]41        texture.png solid-surface.png osterei.jpg\
[be891ea]42        3d.png err.png plt.png pos.png svx.png aven.png
[27b8b59]43
[edb6576]44#       tubesprefs.png stationsprefs.png indicatorprefs.png\
45#       windowprefs.png gridprefs.png unitsprefs.png \
[be891ea]46#       legsprefs.png ctlprefs.png pres-restart.png pres-create.png\
[1690fa9]47#       pres-record.png pres-finish.png
[27b8b59]48
[e72b854]49pixmapsdir = $(datadir)/pixmaps
[f9b8a6b]50dist_pixmaps_DATA = aven.png aven.svg svxedit.png
[e72b854]51
[b8271f8f]52Aven.iconset.zip: aven.svg
[87900bb]53        $(SHELL) $(srcdir)/svg2iconsetzip aven.svg Aven.iconset.zip
[b8271f8f]54
[63c2fe8]55SUFFIXES = .ico .png .svg .iconset.zip .xpm
[f8576fb]56
[87900bb]57.png.iconset.zip:
58        $(SHELL) $(srcdir)/png2iconsetzip $< $@
[27b8b59]59
60.png.ico:
[95fa391]61        $(SHELL) $(srcdir)/png2winicon $< $@
[b462168]62
[63c2fe8]63.xpm.ico:
64        $(SHELL) $(srcdir)/xpm2winicon $< $@
65
[4cc264e]66iconsets = Aven.iconset.zip svxedit.iconset.zip\
67        3d.iconset.zip err.iconset.zip plt.iconset.zip pos.iconset.zip\
68        svx.iconset.zip
[f8576fb]69
70MAINTAINERCLEANFILES = $(iconsets)
[0c2c415]71
[63c2fe8]72BUILT_SOURCES = aven-icons.rc $(ico_files)
73
[4cc264e]74EXTRA_DIST = png2winicon png2iconsetzip svg2iconsetzip\
[63c2fe8]75        aven-icons.rc\
76        $(xpm_files)\
77        $(ico_files)\
[4cc264e]78        aven.ico svxedit.ico\
79        3d.ico err.ico plt.ico pos.ico svx.ico\
80        $(iconsets)
Note: See TracBrowser for help on using the repository browser.