1 include $(top_srcdir)/Makefile.decl
10 lib_LTLIBRARIES = libsecret-@SECRET_MAJOR@.la
13 incdir = $(includedir)/libsecret-@SECRET_MAJOR@/libsecret
36 secret-dbus-generated.c secret-dbus-generated.h \
37 secret-enum-types.c secret-enum-types.h \
41 secret-attributes.h secret-attributes.c \
42 secret-password.h secret-password.c \
43 secret-schema.h secret-schema.c \
44 secret-schemas.h secret-schemas.c \
49 secret-collection.h secret-collection.c \
50 secret-item.h secret-item.c \
52 secret-paths.h secret-paths.c \
53 secret-prompt.h secret-prompt.c \
54 secret-service.h secret-service.c \
55 secret-value.h secret-value.c \
64 libsecret_@SECRET_MAJOR@_la_SOURCES = \
71 libsecret_@SECRET_MAJOR@_la_CFLAGS = \
74 libsecret_@SECRET_MAJOR@_la_LDFLAGS = \
75 -version-info $(SECRET_LT_RELEASE) \
77 -export-symbols-regex '^secret_|^SECRET_|^SECMEM_.*'
79 libsecret_@SECRET_MAJOR@_la_LIBADD = \
80 $(top_builddir)/egg/libegg.la \
84 noinst_LTLIBRARIES = libsecret-testable.la
85 libsecret_testable_la_SOURCES =
86 libsecret_testable_la_LIBADD = $(libsecret_@SECRET_MAJOR@_la_OBJECTS) \
87 $(libsecret_@SECRET_MAJOR@_la_LIBADD)
88 libsecret_testable_la_DEPENDENCIES = $(libsecret_@SECRET_MAJOR@_la_OBJECTS)
89 libsecret_testable_la_LDFLAGS = -rpath /force/shared
91 DBUS_XML_DEFINITIONS = \
92 $(srcdir)/org.freedesktop.Secrets.xml
94 secret-dbus-generated.c: $(DBUS_XML_DEFINITIONS) Makefile.am
95 $(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.Secret. \
96 --generate-c-code secret-dbus-generated --c-namespace SecretGen \
97 $(DBUS_XML_DEFINITIONS)
98 $(AM_V_GEN) sed -i -e 's/secret_gen_/_secret_gen_/g' -e 's/type-/type/g' secret-dbus-generated.[ch]
99 $(AM_V_GEN) sed -i -e '1i #define GLIB_DISABLE_DEPRECATION_WARNINGS' secret-dbus-generated.c
100 secret-dbus-generated.h: secret-dbus-generated.c
102 secret-enum-types.h: secret-enum-types.h.template $(HEADER_FILES)
103 $(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
105 secret-enum-types.c: secret-enum-types.c.template $(HEADER_FILES)
106 $(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
110 # ------------------------------------------------------------------
113 if HAVE_INTROSPECTION
115 include $(INTROSPECTION_MAKEFILE)
117 INTROSPECTION_GIRS = Secret-@SECRET_MAJOR@.gir SecretUnstable-0.gir
118 INTROSPECTION_SCANNER_ARGS = $(INTROSPECTION_FLAGS) --warn-all --add-include-path=$(srcdir) --add-include-path=.
119 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=.
121 Secret-@SECRET_MAJOR@.gir: libsecret-@SECRET_MAJOR@.la
123 Secret_@SECRET_MAJOR@_gir_NAMESPACE = Secret
124 Secret_@SECRET_MAJOR@_gir_EXPORT_PACKAGES = libsecret-@SECRET_MAJOR@
125 Secret_@SECRET_MAJOR@_gir_INCLUDES = GObject-2.0 Gio-2.0
126 Secret_@SECRET_MAJOR@_gir_LIBS = libsecret-@SECRET_MAJOR@.la
127 Secret_@SECRET_MAJOR@_gir_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -DSECRET_COMPILATION
128 Secret_@SECRET_MAJOR@_gir_FILES = $(STABLE_FILES)
129 Secret_@SECRET_MAJOR@_gir_SCANNERFLAGS = --c-include "libsecret/secret.h"
131 SecretUnstable-0.gir: Secret-@SECRET_MAJOR@.gir
133 SecretUnstable_0_gir_NAMESPACE = SecretUnstable
134 SecretUnstable_0_gir_EXPORT_PACKAGES = libsecret-unstable
135 SecretUnstable_0_gir_INCLUDES = GObject-2.0 Gio-2.0
136 SecretUnstable_0_gir_LIBS = libsecret-@SECRET_MAJOR@.la
137 SecretUnstable_0_gir_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -DSECRET_COMPILATION -DSECRET_API_SUBJECT_TO_CHANGE
138 SecretUnstable_0_gir_FILES = $(UNSTABLE_FILES)
139 SecretUnstable_0_gir_SCANNERFLAGS = --c-include "libsecret/secret.h" --identifier-prefix=Secret --symbol-prefix=secret --include-uninstalled=$(builddir)/Secret-@SECRET_MAJOR@.gir
141 girdir = $(datadir)/gir-1.0
142 gir_DATA = $(INTROSPECTION_GIRS)
144 typelibsdir = $(libdir)/girepository-1.0
145 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
148 include $(VAPIGEN_MAKEFILE)
150 libsecret-@SECRET_MAJOR@.vapi: Secret-@SECRET_MAJOR@.gir Secret-@SECRET_MAJOR@.metadata libsecret-@SECRET_MAJOR@.deps
152 libsecret-unstable.vapi: SecretUnstable-0.gir SecretUnstable-0.metadata libsecret-unstable.deps
155 libsecret-@SECRET_MAJOR@.vapi \
156 libsecret-unstable.vapi
158 libsecret_@SECRET_MAJOR@_vapi_DEPS = glib-2.0 gio-2.0
159 libsecret_@SECRET_MAJOR@_vapi_METADATADIRS = $(srcdir)
160 libsecret_@SECRET_MAJOR@_vapi_FILES = Secret-@SECRET_MAJOR@.gir
162 libsecret_unstable_vapi_DEPS = gio-2.0 libsecret-@SECRET_MAJOR@
163 libsecret_unstable_vapi_METADATADIRS = $(srcdir)
164 libsecret_unstable_vapi_VAPIDIRS = $(builddir)
165 libsecret_unstable_vapi_GIRDIRS = $(builddir)
166 # ... because _GIRDIRS above is broken, yes, this is ugly
167 libsecret_unstable_vapi_FILES = --girdir=$(builddir)
168 libsecret_unstable_vapi_FILES += SecretUnstable-0.gir
170 VAPI_DEPS = $(VAPIGEN_VAPIS:.vapi=.deps)
172 libsecret-$(SECRET_MAJOR).deps: Makefile.am
173 $(AM_V_GEN) echo $(libsecret_@SECRET_MAJOR@_vapi_DEPS) | tr ' ' '\n' > $@
174 libsecret-unstable.deps: Makefile.am
175 $(AM_V_GEN) echo $(libsecret_unstable_vapi_DEPS) | tr ' ' '\n' > $@
177 vapidir = $(datadir)/vala/vapi
186 endif # ENABLE_VAPIGEN
187 endif # HAVE_INTROSPECTION
189 # ------------------------------------------------------------------
192 libsecret-$(SECRET_MAJOR).pc: libsecret.pc
193 cp libsecret.pc libsecret-$(SECRET_MAJOR).pc
195 pkgconfigdir = $(libdir)/pkgconfig
197 libsecret-$(SECRET_MAJOR).pc \
198 libsecret-unstable.pc
200 # ------------------------------------------------------------------
204 secret-enum-types.h.template \
205 secret-enum-types.c.template \
206 org.freedesktop.Secrets.xml \
207 Secret-@SECRET_MAJOR@.metadata \
208 SecretUnstable-0.metadata \
221 make -C tests check-memory