blob: 4e860234764eec48f52b3ff638049b40cbc7c9b0 (
plain)
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
160
161
162
163
164
|
SUBDIRS = plugins
if HAVE_INTROSPECTION
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = \
--add-include-path=$(srcdir) \
--add-include-path=$(top_builddir)/libappstream-glib
INTROSPECTION_COMPILER_ARGS = \
--includedir=$(srcdir) \
--includedir=$(top_builddir)/libappstream-glib
endif
AM_CPPFLAGS = \
$(GLIB_CFLAGS) \
$(GDKPIXBUF_CFLAGS) \
$(GTK_CFLAGS) \
$(SOUP_CFLAGS) \
-I$(top_srcdir)/libappstream-glib \
-I$(top_builddir)/libappstream-glib \
-I. \
-DAS_COMPILATION \
-DTESTDIRSRC=\""$(top_srcdir)/data/tests"\" \
-DTESTDIRBUILD=\""$(top_builddir)/data/tests"\" \
-DASB_PLUGIN_DIR=\"$(libdir)/asb-plugins-$(AS_PLUGIN_VERSION)\" \
-DTESTPLUGINDIR=\"./plugins/.libs\" \
-DG_LOG_DOMAIN=\"Asb\"
AS_GLIB_LIBS = \
$(top_builddir)/libappstream-glib/libappstream-glib.la
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
appstream-builder.pc
lib_LTLIBRARIES = \
libappstream-builder.la
libappstream_builder_includedir = $(includedir)/libappstream-builder
libappstream_builder_include_HEADERS = \
appstream-builder.h \
asb-app.h
libappstream_builder_la_SOURCES = \
asb-app.c \
asb-app.h \
asb-context.c \
asb-context.h \
asb-context-private.h \
asb-package.c \
asb-package-cab.c \
asb-package-cab.h \
asb-package-deb.c \
asb-package-deb.h \
asb-package.h \
asb-task.c \
asb-task.h \
asb-utils.c \
asb-utils.h \
asb-plugin.c \
asb-plugin.h \
asb-plugin-loader.c \
asb-plugin-loader.h
if HAVE_RPM
libappstream_builder_la_SOURCES += \
asb-package-rpm.c \
asb-package-rpm.h
endif
if HAVE_ALPM
libappstream_builder_la_SOURCES += \
asb-package-alpm.c \
asb-package-alpm.h
endif
libappstream_builder_la_LIBADD = \
$(AS_GLIB_LIBS) \
$(RPM_LIBS) \
$(ALPM_LIBS) \
$(GLIB_LIBS) \
$(GTK_LIBS) \
$(LIBARCHIVE_LIBS)
libappstream_builder_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-export-dynamic \
-no-undefined \
-export-symbols-regex '^asb_.*'
libappstream_builder_la_CFLAGS = \
$(WARN_CFLAGS)
check_PROGRAMS = \
asb-self-test
asb_self_test_SOURCES = \
asb-self-test.c
asb_self_test_LDADD = \
$(AS_GLIB_LIBS) \
$(GLIB_LIBS) \
$(GDKPIXBUF_LIBS) \
$(lib_LTLIBRARIES)
asb_self_test_CFLAGS = $(WARN_CFLAGS)
TESTS = asb-self-test
if HAVE_INTROSPECTION
introspection_sources = \
asb-app.c \
asb-app.h \
asb-context.c \
asb-context.h \
asb-context-private.h \
asb-package.c \
asb-package.h \
asb-task.c \
asb-task.h
AppStreamBuilder-1.0.gir: libappstream-builder.la
AppStreamBuilder_1_0_gir_INCLUDES = \
AppStreamGlib-1.0 \
GdkPixbuf-2.0 \
Gio-2.0 \
GObject-2.0
AppStreamBuilder_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
AppStreamBuilder_1_0_gir_SCANNERFLAGS = --identifier-prefix=Asb \
--symbol-prefix=asb_ \
--warn-all \
--add-include-path=$(srcdir)
AppStreamBuilder_1_0_gir_EXPORT_PACKAGES = appstream-builder
AppStreamBuilder_1_0_gir_LIBS = \
$(AS_GLIB_LIBS) \
libappstream-builder.la \
archive
if HAVE_RPM
AppStreamBuilder_1_0_gir_LIBS += \
rpmio \
rpm
endif
AppStreamBuilder_1_0_gir_FILES = $(introspection_sources)
INTROSPECTION_GIRS += AppStreamBuilder-1.0.gir
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES = $(gir_DATA) $(typelib_DATA)
endif
DISTCLEANFILES = \
*.log \
*.trs
EXTRA_DIST = \
appstream-builder.pc.in
clean-local:
rm -f *~
rm -f $(CLEANFILES)
-include $(top_srcdir)/git.mk
|