2011-06-12 20:55:02 +00:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
2011-09-25 06:22:36 +00:00
|
|
|
SUBDIRS = . tests
|
2011-06-12 20:55:02 +00:00
|
|
|
|
|
|
|
module_flags = \
|
2012-02-02 12:40:47 +00:00
|
|
|
-version-info $(SECRET_LT_RELEASE) \
|
2011-06-12 20:55:02 +00:00
|
|
|
-export_dynamic \
|
|
|
|
-avoid-version \
|
|
|
|
-module \
|
|
|
|
-no-undefined \
|
2012-02-01 12:34:08 +00:00
|
|
|
-export-symbols-regex '^secret_'
|
2011-06-12 20:55:02 +00:00
|
|
|
|
2012-01-25 13:26:52 +00:00
|
|
|
INCLUDES = \
|
2012-02-02 13:14:58 +00:00
|
|
|
-I$(top_srcdir) \
|
|
|
|
-DSECRET_COMPILATION \
|
|
|
|
$(NULL)
|
2012-01-25 13:26:52 +00:00
|
|
|
|
2012-02-02 12:40:47 +00:00
|
|
|
lib_LTLIBRARIES = libsecret-@SECRET_MAJOR@.la
|
|
|
|
|
|
|
|
|
|
|
|
incdir = $(includedir)/secret-@SECRET_MAJOR@/secret
|
2011-06-12 20:55:02 +00:00
|
|
|
|
2012-01-25 13:26:52 +00:00
|
|
|
HEADER_FILES = \
|
2012-02-02 12:40:47 +00:00
|
|
|
secret.h \
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-collection.h \
|
|
|
|
secret-item.h \
|
|
|
|
secret-password.h \
|
|
|
|
secret-prompt.h \
|
|
|
|
secret-service.h \
|
2012-02-02 12:40:47 +00:00
|
|
|
secret-types.h \
|
|
|
|
secret-value.h \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
inc_HEADERS = \
|
|
|
|
$(HEADER_FILES) \
|
|
|
|
secret-enum-types.h \
|
|
|
|
$(NULL)
|
2012-01-25 13:26:52 +00:00
|
|
|
|
2011-11-05 19:59:00 +00:00
|
|
|
BUILT_SOURCES = \
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-dbus-generated.c secret-dbus-generated.h \
|
2012-02-02 12:40:47 +00:00
|
|
|
secret-enum-types.c secret-enum-types.h \
|
|
|
|
$(NULL)
|
2011-11-05 19:59:00 +00:00
|
|
|
|
2012-02-02 12:40:47 +00:00
|
|
|
PUBLIC_FILES = \
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-collection.h secret-collection.c \
|
|
|
|
secret-item.h secret-item.c \
|
|
|
|
secret-methods.c \
|
|
|
|
secret-password.h secret-password.c \
|
|
|
|
secret-prompt.h secret-prompt.c \
|
|
|
|
secret-service.h secret-service.c \
|
2012-02-02 12:40:47 +00:00
|
|
|
secret-types.h \
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-value.h secret-value.c \
|
2012-02-02 12:40:47 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
INTERNAL_FILES = \
|
2012-02-02 13:14:58 +00:00
|
|
|
secret-private.h \
|
2012-02-02 12:40:47 +00:00
|
|
|
secret-session.c \
|
|
|
|
secret-util.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
libsecret_@SECRET_MAJOR@_la_SOURCES = \
|
|
|
|
$(PUBLIC_FILES) \
|
|
|
|
$(INTERNAL_FILES) \
|
2011-11-05 19:59:00 +00:00
|
|
|
$(BUILT_SOURCES) \
|
2011-09-25 06:22:36 +00:00
|
|
|
$(NULL)
|
2011-06-12 20:55:02 +00:00
|
|
|
|
2012-02-02 12:40:47 +00:00
|
|
|
libsecret_@SECRET_MAJOR@_la_CFLAGS = \
|
2011-09-25 08:03:48 +00:00
|
|
|
$(LIBGCRYPT_CFLAGS)
|
|
|
|
|
2012-02-02 12:40:47 +00:00
|
|
|
libsecret_@SECRET_MAJOR@_la_LIBADD = \
|
2011-06-12 20:55:02 +00:00
|
|
|
$(top_builddir)/egg/libegg.la \
|
2011-09-25 08:03:48 +00:00
|
|
|
$(LIBGCRYPT_LIBS) \
|
2011-11-05 19:59:00 +00:00
|
|
|
$(LIBS)
|
|
|
|
|
|
|
|
DBUS_XML_DEFINITIONS = \
|
|
|
|
org.freedesktop.Secrets.xml
|
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-dbus-generated.c: $(DBUS_XML_DEFINITIONS) Makefile.am
|
2011-11-05 19:59:00 +00:00
|
|
|
$(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.Secret. \
|
2012-02-01 12:34:08 +00:00
|
|
|
--generate-c-code secret-dbus-generated --c-namespace SecretGen \
|
2011-11-05 19:59:00 +00:00
|
|
|
$(DBUS_XML_DEFINITIONS)
|
2012-02-01 12:34:08 +00:00
|
|
|
$(AM_V_GEN) sed -i -e 's/secret_gen_/_secret_gen_/g' secret-dbus-generated.[ch]
|
|
|
|
$(AM_V_GEN) sed -i -e '1i #define GLIB_DISABLE_DEPRECATION_WARNINGS' secret-dbus-generated.c
|
|
|
|
secret-dbus-generated.h: secret-dbus-generated.c
|
2011-11-12 07:08:12 +00:00
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-enum-types.h: secret-enum-types.h.template $(HEADER_FILES)
|
2012-01-25 13:26:52 +00:00
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
|
|
|
|
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-enum-types.c: secret-enum-types.c.template $(HEADER_FILES)
|
2012-01-25 13:26:52 +00:00
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > $@
|
|
|
|
|
2012-02-02 12:40:47 +00:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
# INTROSPECTION
|
|
|
|
|
|
|
|
if HAVE_INTROSPECTION
|
|
|
|
|
|
|
|
include $(INTROSPECTION_MAKEFILE)
|
|
|
|
|
|
|
|
INTROSPECTION_GIRS = Secret-@SECRET_MAJOR@.gir
|
|
|
|
INTROSPECTION_SCANNER_ARGS = $(INTROSPECTION_FLAGS) --warn-all --add-include-path=$(srcdir) --add-include-path=.
|
|
|
|
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=.
|
|
|
|
|
|
|
|
Secret-@SECRET_MAJOR@.gir: libsecret-@SECRET_MAJOR@.la
|
|
|
|
|
|
|
|
Secret_@SECRET_MAJOR@_gir_PACKAGES = gobject-2.0 gio-2.0
|
|
|
|
Secret_@SECRET_MAJOR@_gir_EXPORT_PACKAGES = libsecret-@SECRET_MAJOR@
|
|
|
|
Secret_@SECRET_MAJOR@_gir_INCLUDES = GObject-2.0 Gio-2.0
|
|
|
|
Secret_@SECRET_MAJOR@_gir_LIBS = libsecret-@SECRET_MAJOR@.la
|
|
|
|
Secret_@SECRET_MAJOR@_gir_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -DSECRET_COMPILATION -DSECRET_API_SUBJECT_TO_CHANGE
|
|
|
|
Secret_@SECRET_MAJOR@_gir_FILES = $(PUBLIC_FILES)
|
|
|
|
Secret_@SECRET_MAJOR@_gir_SCANNERFLAGS = --c-include "secret.h"
|
|
|
|
|
|
|
|
girdir = $(datadir)/gir-1.0
|
|
|
|
gir_DATA = $(INTROSPECTION_GIRS)
|
|
|
|
|
|
|
|
typelibsdir = $(libdir)/girepository-1.0
|
|
|
|
typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
# PKG CONFIG
|
|
|
|
|
|
|
|
libsecret-$(SECRET_MAJOR).pc: libsecret.pc
|
|
|
|
cp libsecret.pc libsecret-$(SECRET_MAJOR).pc
|
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = libsecret-$(SECRET_MAJOR).pc
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
2012-01-25 13:26:52 +00:00
|
|
|
EXTRA_DIST = \
|
2012-02-01 12:34:08 +00:00
|
|
|
secret-enum-types.h.template \
|
2012-02-02 12:40:47 +00:00
|
|
|
secret-enum-types.c.template \
|
|
|
|
org.freedesktop.Secrets.xml \
|
|
|
|
$(NULL)
|
2012-01-25 13:26:52 +00:00
|
|
|
|
2012-02-02 13:14:58 +00:00
|
|
|
CLEANFILES = \
|
|
|
|
$(pkgconfig_DATA) \
|
|
|
|
$(gir_DATA) \
|
|
|
|
$(typelibs_DATA) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DISTCLEANFILES = \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-11-12 07:08:12 +00:00
|
|
|
check-memory:
|
2012-02-02 12:40:47 +00:00
|
|
|
make -C tests check-memory
|