-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
159 lines (123 loc) · 3.68 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
NULL =
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = include data libmsi tests po .
libmsiincludedir = $(includedir)/libmsi-1.0
dist_libmsiinclude_HEADERS = \
include/libmsi-database.h \
include/libmsi-enums.h \
include/libmsi-query.h \
include/libmsi-record.h \
include/libmsi-summary-info.h \
include/libmsi-types.h \
include/libmsi.h \
$(NULL)
AM_CPPFLAGS = -Iinclude -I$(srcdir)/include \
$(GLIB_CFLAGS) $(GSF_CFLAGS) $(UUID_CFLAGS) \
$(NULL)
AM_LDFLAGS = -Llibmsi
# Low-level tools
bin_PROGRAMS = msibuild msiinfo
msibuild_SOURCES = tools/msibuild.c tools/sqldelim.c tools/sqldelim.h
msibuild_LDADD = -lmsi $(GLIB_LIBS) $(GSF_LIBS) $(UUID_LIBS)
msibuild_DEPENDENCIES = libmsi/libmsi.la
msiinfo_SOURCES = tools/msiinfo.c
msiinfo_LDADD = -lmsi $(GLIB_LIBS) $(GSF_LIBS)
msiinfo_DEPENDENCIES = libmsi/libmsi.la
# msiextract, something on the TODO list...
noinst_PROGRAMS = msiextract
msiextract_CFLAGS = -w
# --vapidir paths are relative to the source directory!
msiextract_VALAFLAGS = \
--enable-experimental \
--pkg config \
--pkg gio-unix-2.0 \
--pkg libgcab-1.0 \
--pkg libmsi-1.0 \
--pkg posix \
--vapidir=. \
--vapidir=$(abs_top_builddir)/libmsi \
$(NULL)
msiextract_SOURCES = \
tools/msiextract.vala \
$(NULL)
msiextract_CPPFLAGS = $(wixl_CPPFLAGS)
msiextract_LDADD = $(wixl_LDADD)
# Wixl
bin_PROGRAMS += wixl
wixl_CFLAGS = -w
wixl_VALAFLAGS = \
-H wixl.h --use-header \
--vapidir=. \
--vapidir=vapi \
--vapidir=$(abs_top_builddir)/libmsi \
--pkg config \
--enable-experimental \
--pkg gio-2.0 \
--pkg libmsi-1.0 \
--pkg libgcab-1.0 \
--pkg libxml-2.0 \
--pkg posix \
$(NULL)
wixl_SOURCES = \
tools/wixl/builder.vala \
tools/wixl/msi-default.vala \
tools/wixl/msi.vala \
tools/wixl/preprocessor.vala \
tools/wixl/util.vala \
tools/wixl/wix.vala \
tools/wixl/wixl.vala \
$(NULL)
wixl_CPPFLAGS = \
-include config.h \
-I $(top_srcdir)/include \
$(WIXL_CFLAGS) \
-DG_LOG_DOMAIN=\""wixl"\" \
-DLOCALEDIR=\""$(localedir)"\" \
-DPKGDATADIR=\""$(datadir)/wixl-$(VERSION)/"\" \
-DPKGLIBDIR=\""$(pkglibdir)"\" \
$(NULL)
wixl_LDADD = \
$(WIXL_LIBS) \
libmsi/libmsi.la \
$(NULL)
wixl_DEPENDENCIES = libmsi/libmsi.la
if !WIN32
bin_PROGRAMS += wixl-heat
wixl_heat_CFLAGS = -w
wixl_heat_VALAFLAGS = \
--vapidir=. \
--pkg config \
--enable-experimental \
--pkg gio-unix-2.0 \
$(NULL)
wixl_heat_SOURCES = \
tools/wixl/wixl-heat.vala \
tools/wixl/util.vala \
$(NULL)
wixl_heat_CPPFLAGS = $(wixl_CPPFLAGS)
wixl_heat_LDADD = $(wixl_LDADD)
endif
# Autotest support
dist_noinst_DATA = tests/testsuite.at tests/wixl.at tests/package.m4 tests/testsuite
DISTCLEANFILES = atconfig atlocal
CLEANFILES = testsuite.log
check-local: $(srcdir)/tests/testsuite atconfig atlocal
$(SHELL) $(srcdir)/tests/testsuite AUTOTEST_PATH=. $(TESTSUITEFLAGS)
installcheck-local: $(srcdir)/tests/testsuite atconfig atlocal
$(SHELL) $(srcdir)/tests/testsuite AUTOTEST_PATH=$(bindir) $(TESTSUITEFLAGS)
clean-local:
-$(SHELL) $(srcdir)/tests/testsuite --clean
dist-hook:
@for file in `cd $(srcdir)/tests && \
$(AUTOM4TE) --language=autotest --trace='AT_MSIDATA:tests/data/$$1' \
testsuite.at`; do \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
$(MKDIR_P) "$(distdir)$$dir" || exit 1; \
echo cp -fpR $(srcdir)/$$file "$(distdir)$$dir"; \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
done
$(srcdir)/tests/testsuite: tests/testsuite.at tests/wixl.at tests/package.m4
cd $(srcdir)/tests && \
$(AUTOM4TE) --language=autotest -o testsuite.tmp testsuite.at && \
mv testsuite.tmp testsuite
EXTRA_DIST = msitools.doap build-aux/move-if-change autogen.sh