1 include $(top_srcdir)/Makefile.decl
6 -version-info $(SECRET_LT_RELEASE) \
11 -export-symbols-regex '^secret_'
15 -DSECRET_COMPILATION \
18 lib_LTLIBRARIES = libsecret-@SECRET_MAJOR@.la
21 incdir = $(includedir)/libsecret-@SECRET_MAJOR@/libsecret
44 secret-dbus-generated.c secret-dbus-generated.h \
45 secret-enum-types.c secret-enum-types.h \
49 secret-attributes.h secret-attributes.c \
50 secret-password.h secret-password.c \
51 secret-schema.h secret-schema.c \
52 secret-schemas.h secret-schemas.c \
57 secret-collection.h secret-collection.c \
58 secret-item.h secret-item.c \
60 secret-paths.h secret-paths.c \
61 secret-prompt.h secret-prompt.c \
62 secret-service.h secret-service.c \
63 secret-value.h secret-value.c \
72 libsecret_@SECRET_MAJOR@_la_SOURCES = \
79 libsecret_@SECRET_MAJOR@_la_CFLAGS = \
82 libsecret_@SECRET_MAJOR@_la_LIBADD = \
83 $(top_builddir)/egg/libegg.la \
87 DBUS_XML_DEFINITIONS = \
88 $(srcdir)/org.freedesktop.Secrets.xml
90 secret-dbus-generated.c: $(DBUS_XML_DEFINITIONS) Makefile.am
91 $(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.Secret. \
92 --generate-c-code secret-dbus-generated --c-namespace SecretGen \
93 $(DBUS_XML_DEFINITIONS)
94 $(AM_V_GEN) sed -i -e 's/secret_gen_/_secret_gen_/g' -e 's/type-/type/g' secret-dbus-generated.[ch]
95 $(AM_V_GEN) sed -i -e '1i #define GLIB_DISABLE_DEPRECATION_WARNINGS' secret-dbus-generated.c
96 secret-dbus-generated.h: secret-dbus-generated.c
98 secret-enum-types.h: secret-enum-types.h.template $(HEADER_FILES)
99 $(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
101 secret-enum-types.c: secret-enum-types.c.template $(HEADER_FILES)
102 $(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
106 # ------------------------------------------------------------------
109 if HAVE_INTROSPECTION
111 include $(INTROSPECTION_MAKEFILE)
113 INTROSPECTION_GIRS = Secret-@SECRET_MAJOR@.gir SecretUnstable-0.gir
114 INTROSPECTION_SCANNER_ARGS = $(INTROSPECTION_FLAGS) --warn-all --add-include-path=$(srcdir) --add-include-path=.
115 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=.
117 Secret-@SECRET_MAJOR@.gir: libsecret-@SECRET_MAJOR@.la
119 Secret_@SECRET_MAJOR@_gir_NAMESPACE = Secret
120 Secret_@SECRET_MAJOR@_gir_EXPORT_PACKAGES = libsecret-@SECRET_MAJOR@
121 Secret_@SECRET_MAJOR@_gir_INCLUDES = GObject-2.0 Gio-2.0
122 Secret_@SECRET_MAJOR@_gir_LIBS = libsecret-@SECRET_MAJOR@.la
123 Secret_@SECRET_MAJOR@_gir_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -DSECRET_COMPILATION
124 Secret_@SECRET_MAJOR@_gir_FILES = $(STABLE_FILES)
125 Secret_@SECRET_MAJOR@_gir_SCANNERFLAGS = --c-include "libsecret/secret.h"
127 SecretUnstable-0.gir: libsecret-@SECRET_MAJOR@.la libsecret-@SECRET_MAJOR@.pc
129 SecretUnstable_0_gir_NAMESPACE = SecretUnstable
130 SecretUnstable_0_gir_EXPORT_PACKAGES = libsecret-unstable
131 SecretUnstable_0_gir_INCLUDES = GObject-2.0 Gio-2.0
132 SecretUnstable_0_gir_LIBS = libsecret-@SECRET_MAJOR@.la
133 SecretUnstable_0_gir_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -DSECRET_COMPILATION -DSECRET_API_SUBJECT_TO_CHANGE
134 SecretUnstable_0_gir_FILES = $(UNSTABLE_FILES)
135 SecretUnstable_0_gir_SCANNERFLAGS = --c-include "libsecret/secret.h" --identifier-prefix=Secret --symbol-prefix=secret --include-uninstalled=$(builddir)/Secret-@SECRET_MAJOR@.gir
137 girdir = $(datadir)/gir-1.0
138 gir_DATA = $(INTROSPECTION_GIRS)
140 typelibsdir = $(libdir)/girepository-1.0
141 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
144 include $(VAPIGEN_MAKEFILE)
146 libsecret-@SECRET_MAJOR@.vapi: Secret-@SECRET_MAJOR@.gir Secret-@SECRET_MAJOR@.metadata libsecret-@SECRET_MAJOR@.deps
148 libsecret-unstable.vapi: SecretUnstable-0.gir SecretUnstable-0.metadata libsecret-unstable.deps
151 libsecret-@SECRET_MAJOR@.vapi \
152 libsecret-unstable.vapi
154 libsecret_@SECRET_MAJOR@_vapi_DEPS = glib-2.0 gio-2.0
155 libsecret_@SECRET_MAJOR@_vapi_METADATADIRS = $(srcdir)
156 libsecret_@SECRET_MAJOR@_vapi_FILES = Secret-@SECRET_MAJOR@.gir
158 libsecret_unstable_vapi_DEPS = gio-2.0 libsecret-@SECRET_MAJOR@
159 libsecret_unstable_vapi_METADATADIRS = $(srcdir)
160 libsecret_unstable_vapi_VAPIDIRS = $(builddir)
161 libsecret_unstable_vapi_GIRDIRS = $(builddir)
162 # ... because _GIRDIRS above is broken, yes, this is ugly
163 libsecret_unstable_vapi_FILES = --girdir=$(builddir)
164 libsecret_unstable_vapi_FILES += SecretUnstable-0.gir
166 VAPI_DEPS = $(VAPIGEN_VAPIS:.vapi=.deps)
168 libsecret-$(SECRET_MAJOR).deps: Makefile.am
169 $(AM_V_GEN) echo $(libsecret_@SECRET_MAJOR@_vapi_DEPS) | tr ' ' '\n' > $@
170 libsecret-unstable.deps: Makefile.am
171 $(AM_V_GEN) echo $(libsecret_unstable_vapi_DEPS) | tr ' ' '\n' > $@
173 vapidir = $(datadir)/vala/vapi
182 endif # ENABLE_VAPIGEN
183 endif # HAVE_INTROSPECTION
185 # ------------------------------------------------------------------
188 libsecret-$(SECRET_MAJOR).pc: libsecret.pc
189 cp libsecret.pc libsecret-$(SECRET_MAJOR).pc
191 pkgconfigdir = $(libdir)/pkgconfig
193 libsecret-$(SECRET_MAJOR).pc \
194 libsecret-unstable.pc
196 # ------------------------------------------------------------------
200 secret-enum-types.h.template \
201 secret-enum-types.c.template \
202 org.freedesktop.Secrets.xml \
203 Secret-@SECRET_MAJOR@.metadata \
204 SecretUnstable-0.metadata \
217 make -C tests check-memory