
At the moment it only tests MsiGetFileVersion, because that's the piece I just found a problem in, but I could easily extend it to have convenient command-line test rigs for other parts of this setup too.
28 lines
735 B
Makefile
28 lines
735 B
Makefile
libdir = $(bindir)
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
noinst_PROGRAMS = test
|
|
|
|
lib_LTLIBRARIES = libwinterop.la libmsi.la libpreload.la
|
|
|
|
libwinterop_la_SOURCES = makecab.c readcab.c winterop-stubs.c \
|
|
memory.c memory.h dupstr.c dupstr.h subproc.c subproc.h uchars.c \
|
|
uchars.h
|
|
|
|
libmsi_la_SOURCES = makemsi.c md5.c memory.c memory.h version.c \
|
|
dupstr.c dupstr.h subproc.c subproc.h uchars.c uchars.h api.h
|
|
|
|
libpreload_la_SOURCES = preload.c
|
|
libpreload_la_LDFLAGS = -ldl
|
|
|
|
test_SOURCES = test.c api.h misc.h
|
|
test_LDADD = libmsi.la
|
|
|
|
bin_SCRIPTS = wrapper.py makecab.py
|
|
|
|
install-exec-hook:
|
|
cd $(DESTDIR)$(bindir) && \
|
|
{ test -h candle || $(LN_S) wrapper.py candle; }
|
|
cd $(DESTDIR)$(bindir) && \
|
|
{ test -h light || $(LN_S) wrapper.py light; }
|