pre-inst/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Sat Jul 16 11:07:18 2016 +0100 (2016-07-16)
changeset 61 31fb35727621
parent 24 2b9f54d14cc2
child 96 d2d88f14283e
permissions -rw-r--r--
Support parallel installations. The idea is that for CAD screener, we want
to be able to install this on the same machine as a standard AVOT setup
(most notably for John's laptop). To allow for the possibility of a second
application that might have the same requirements, we add the concept of
vendor-specific distributions. Thus we can have one distribution for CAD
screener and one for The Next Big Thing. It doesn't seem trivial to have
both CAD screener and AVOT under the same vendor tag so we'll have to have
AVOT under "City Occupational" and CAD screener under "City Occupational Ltd"
or some such kludge.

Most of this is done although we are very short of test cases (in particular
we don't test that it's actually possible to install CAD screener in parallel
with AVOT or to update either of them once installed, which is fundamental).

We also have a lot of baggage left over, including an intercept of razor_set.
The problem that this was introduced to debug has been fixed but it looks
like there are a number of memory leaks which it might be useful to help
track down so it has been left in place for now.

There is still a lot of confusion in plover between path-based and URI-based
API. We should review the API, decide what we want and have a general clear up.

There is also confusion as to the purpose of RAZOR_ROOT (and meaning; path or
URI). This is not used at all in librazor (although it is used in razor.exe).
Ideally we shouldn't use it in plover or plover-gtk either although again, we
might want to support it or an equivalent in (some of) the various executables.

Work that would still to nice to do for CAD screener:

- uninstall (ideally as an installed program that hooks into Add/Remove programs
but even re-running the installer would be acceptable).
- xz support (smaller packages).
- repomd.xml and xml:base (would be needed for an Internet installer).
- graphical installer.
     1 AM_CFLAGS=-g $(SETUP_CFLAGS)
     2 LDADD=../plover/libplover.la $(SETUP_LIBS)
     3 if PLOVER_MINGW
     4 LDADD+=-lcomctl32
     5 # pre-inst is not intended to produce any output (and any that is produced
     6 # can be safely junked). Thus -mwindows is appropriate since if called with
     7 # a console window attached no output should be visible anyway and if called
     8 # when no console window is attached we don't want one to be created.
     9 AM_LDFLAGS=-mwindows
    10 endif
    11 INCLUDES=-I$(top_srcdir) -I$(srcdir)
    12 CCLD = $(CXX)
    13 
    14 bin_PROGRAMS=pre-inst
    15 
    16 pre_inst_SOURCES=pre-inst.c
    17 pre_inst_LDFLAGS=$(AM_LDFLAGS) -all-static
    18 pre_inst_LIBTOOLFLAGS=--tag=CXX
    19 if HAVE_WINDRES
    20 pre_inst_SOURCES+=resources.rc pre-inst.exe.manifest resource.h
    21 endif
    22 
    23 .rc.$(OBJEXT):
    24 	$(AM_V_GEN)$(WINDRES) $(INCLUDES) $< $@
    25 
    26 resources.$(OBJEXT): resources.rc resource.h pre-inst.exe.manifest pre-inst.ico
    27 
    28 .png.pnm:
    29 	$(AM_V_GEN)pngtopnm $< | pnmquant -quiet 256 > $@
    30 
    31 pre-inst.ico:     icon16.pnm icon22.pnm icon32.pnm
    32 	$(AM_V_GEN)ppmtowinicon -output=$@ $^
    33 
    34 EXTRA_DIST=icon16.png icon22.png icon32.png