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)/secret-@SECRET_MAJOR@/libsecret
45 secret-dbus-generated.c secret-dbus-generated.h \
46 secret-enum-types.c secret-enum-types.h \
50 secret-attributes.h secret-attributes.c \
51 secret-collection.h secret-collection.c \
52 secret-item.h secret-item.c \
54 secret-password.h secret-password.c \
55 secret-paths.h secret-paths.c \
56 secret-prompt.h secret-prompt.c \
57 secret-schema.h secret-schema.c \
58 secret-schemas.h secret-schemas.c \
59 secret-service.h secret-service.c \
61 secret-value.h secret-value.c \
70 libsecret_@SECRET_MAJOR@_la_SOURCES = \
76 libsecret_@SECRET_MAJOR@_la_CFLAGS = \
79 libsecret_@SECRET_MAJOR@_la_LIBADD = \
80 $(top_builddir)/egg/libegg.la \
84 DBUS_XML_DEFINITIONS = \
85 $(srcdir)/org.freedesktop.Secrets.xml
87 secret-dbus-generated.c: $(DBUS_XML_DEFINITIONS) Makefile.am
88 $(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.Secret. \
89 --generate-c-code secret-dbus-generated --c-namespace SecretGen \
90 $(DBUS_XML_DEFINITIONS)
91 $(AM_V_GEN) sed -i -e 's/secret_gen_/_secret_gen_/g' -e 's/type-/type/g' secret-dbus-generated.[ch]
92 $(AM_V_GEN) sed -i -e '1i #define GLIB_DISABLE_DEPRECATION_WARNINGS' secret-dbus-generated.c
93 secret-dbus-generated.h: secret-dbus-generated.c
95 secret-enum-types.h: secret-enum-types.h.template $(HEADER_FILES)
96 $(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
98 secret-enum-types.c: secret-enum-types.c.template $(HEADER_FILES)
99 $(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
103 # ------------------------------------------------------------------
106 if HAVE_INTROSPECTION
108 include $(INTROSPECTION_MAKEFILE)
110 INTROSPECTION_GIRS = Secret-@SECRET_MAJOR@.gir
111 INTROSPECTION_SCANNER_ARGS = $(INTROSPECTION_FLAGS) --warn-all --add-include-path=$(srcdir) --add-include-path=.
112 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=.
114 Secret-@SECRET_MAJOR@.gir: libsecret-@SECRET_MAJOR@.la
116 Secret_@SECRET_MAJOR@_gir_PACKAGES = gobject-2.0 gio-2.0
117 Secret_@SECRET_MAJOR@_gir_EXPORT_PACKAGES = libsecret-@SECRET_MAJOR@
118 Secret_@SECRET_MAJOR@_gir_INCLUDES = GObject-2.0 Gio-2.0
119 Secret_@SECRET_MAJOR@_gir_LIBS = libsecret-@SECRET_MAJOR@.la
120 Secret_@SECRET_MAJOR@_gir_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -DSECRET_COMPILATION -DSECRET_API_SUBJECT_TO_CHANGE
121 Secret_@SECRET_MAJOR@_gir_FILES = $(PUBLIC_FILES)
122 Secret_@SECRET_MAJOR@_gir_SCANNERFLAGS = --c-include "libsecret/secret.h"
124 girdir = $(datadir)/gir-1.0
125 gir_DATA = $(INTROSPECTION_GIRS)
127 typelibsdir = $(libdir)/girepository-1.0
128 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
131 include $(VAPIGEN_MAKEFILE)
133 libsecret-@SECRET_MAJOR@.vapi: Secret-@SECRET_MAJOR@.gir Secret-@SECRET_MAJOR@.metadata
135 VAPIGEN_VAPIS = libsecret-@SECRET_MAJOR@.vapi
137 libsecret_@SECRET_MAJOR@_vapi_DEPS = gio-2.0
138 libsecret_@SECRET_MAJOR@_vapi_METADATADIRS = $(srcdir)
139 libsecret_@SECRET_MAJOR@_vapi_FILES = Secret-@SECRET_MAJOR@.gir
141 vapidir = $(datadir)/vala/vapi
142 vapi_DATA = $(VAPIGEN_VAPIS)
144 CLEANFILES += $(VAPIGEN_VAPIS)
146 endif # ENABLE_VAPIGEN
147 endif # HAVE_INTROSPECTION
149 # ------------------------------------------------------------------
152 libsecret-$(SECRET_MAJOR).pc: libsecret.pc
153 cp libsecret.pc libsecret-$(SECRET_MAJOR).pc
155 pkgconfigdir = $(libdir)/pkgconfig
156 pkgconfig_DATA = libsecret-$(SECRET_MAJOR).pc
158 # ------------------------------------------------------------------
162 secret-enum-types.h.template \
163 secret-enum-types.c.template \
164 org.freedesktop.Secrets.xml \
165 Secret-@SECRET_MAJOR@.metadata \
178 make -C tests check-memory