Makefile.am 5.27 KB
Newer Older
1 2
END_OF_LIST =

3 4 5 6 7 8 9 10 11 12 13 14
BUILT_SOURCES = gdm-manager-glue.h gdm-client-glue.h
CLEANFILES =                    \
        $(BUILT_SOURCES)        \
        gdm-manager-glue.c      \
        gdm-client-glue.c      \
        $(END_OF_LIST)

gdm-manager-glue.c gdm-manager-glue.h : $(top_srcdir)/daemon/gdm-manager.xml Makefile.am
	$(AM_V_GEN)gdbus-codegen 					\
		--c-namespace Gdm				\
		--interface-prefix=org.gnome.DisplayManager		\
		--generate-c-code=gdm-manager-glue			\
15
		--c-generate-autocleanup=all				\
16 17 18 19 20 21 22 23 24
		--annotate "org.gnome.DisplayManager.Manager"		\
		           "org.gtk.GDBus.C.Name" Manager		\
		$(top_srcdir)/daemon/gdm-manager.xml

gdm-client-glue.c gdm-client-glue.h : $(top_srcdir)/daemon/gdm-session.xml Makefile.am
	$(AM_V_GEN)gdbus-codegen 					\
		--c-namespace Gdm				\
		--interface-prefix=org.gnome.DisplayManager		\
		--generate-c-code=gdm-client-glue			\
25
		--c-generate-autocleanup=all				\
26 27 28 29 30 31 32 33 34
		--annotate "org.gnome.DisplayManager.UserVerifier"	\
		           "org.gtk.GDBus.C.Name" UserVerifier	\
		--annotate "org.gnome.DisplayManager.Greeter"		\
		           "org.gtk.GDBus.C.Name" Greeter		\
		--annotate "org.gnome.DisplayManager.RemoteGreeter"	\
		           "org.gtk.GDBus.C.Name" RemoteGreeter		\
		--annotate "org.gnome.DisplayManager.Chooser"		\
		           "org.gtk.GDBus.C.Name" Chooser		\
		$(top_srcdir)/daemon/gdm-session.xml
35 36

AM_CPPFLAGS = \
37 38 39 40 41
        -I$(srcdir)                                                     \
        -I$(builddir)                                                   \
        -I$(top_srcdir)                                                 \
        -I$(top_builddir)                                               \
        -DG_LOG_DOMAIN=\"Gdm\"                                          \
42 43 44 45 46
        -DDMCONFDIR=\""$(dmconfdir)"\"                                        \
        -DDATADIR=\""$(datadir)"\"                                            \
        $(END_OF_LIST)

lib_LTLIBRARIES =                                                             \
47
        libgdm.la                                                      \
48 49
        $(END_OF_LIST)

50 51
libgdmdir = $(includedir)/gdm
libgdm_HEADERS =                                                       \
52
	gdm-client-glue.h                                              \
53 54
        gdm-client.h                                                   \
        gdm-sessions.h                                                 \
55
        gdm-user-switching.h                                           \
56 57
        $(END_OF_LIST)

58 59
libgdm_la_CFLAGS =                                                     \
        $(LIBGDM_CFLAGS)                                               \
60
	$(SYSTEMD_CFLAGS)                                              \
61
        $(END_OF_LIST)
62
libgdm_la_LDFLAGS =                                                    \
63 64 65 66 67
        -export-symbols-regex '^[^_].*'                                       \
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)                  \
        -no-undefined                                                         \
        $(END_OF_LIST)

68 69
libgdm_la_LIBADD =                                                     \
        $(LIBGDM_LIBS)                                                 \
70
        $(SYSTEMD_LIBS)                                                \
71 72
        $(END_OF_LIST)

73 74 75 76
libgdm_la_SOURCES =                                                    \
        $(libgdm_HEADERS)                                              \
        gdm-client.c                                                   \
        gdm-sessions.c                                                 \
77
        gdm-user-switching.c                                           \
78 79
        $(END_OF_LIST)

80
nodist_libgdm_la_SOURCES = 	\
81 82 83 84 85 86
	gdm-client-glue.c		\
	gdm-client-glue.h		\
	gdm-manager-glue.c		\
	gdm-manager-glue.h		\
	$(END_OF_LIST)

87
pkgconfigdir = $(libdir)/pkgconfig
88
dist_pkgconfig_DATA = gdm.pc
89 90 91 92 93

-include $(INTROSPECTION_MAKEFILE)

if HAVE_INTROSPECTION
girdir = $(datadir)/gir-1.0
94
gir_DATA = Gdm-1.0.gir
95 96 97 98
typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = $(gir_DATA:.gir=.typelib)
INTROSPECTION_GIRS = $(gir_DATA)

99
Gdm-1.0.gir:                                                                  \
100
        $(INTROSPECTION_SCANNER)                                              \
101
        libgdm.la                                                             \
102 103 104
        Makefile                                                              \
        $(END_OF_LIST)

105
Gdm_1_0_gir_SCANNERFLAGS =                                                    \
106
        --warn-all                                                            \
107
        --namespace=Gdm                                                       \
108 109
        --identifier-prefix Gdm                                               \
        $(AM_CPPFLAGS)                                                        \
110
        $(libgdm_la_CFLAGS)                                                   \
111 112
        $(END_OF_LIST)

113 114 115 116 117
Gdm_1_0_gir_INCLUDES = $(LIBGDM_GIR_INCLUDES)
Gdm_1_0_gir_LIBS = libgdm.la
Gdm_1_0_gir_FILES =                                                    \
        $(filter-out %-private.h, $(libgdm_la_SOURCES))                \
        $(filter-out %-private.h, $(nodist_libgdm_la_SOURCES))         \
118 119 120 121 122 123
        $(END_OF_LIST)

CLEANFILES += $(gir_DATA) $(typelibs_DATA)
endif

MAINTAINERCLEANFILES = Makefile.in