summaryrefslogtreecommitdiff
path: root/src/daemon/dbus/Makefile.am
blob: 009a8149581d5838a9fe0465137e4cfa47ee5933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
NULL=
INTERFACES_DIR = $(top_srcdir)/src/daemon/dbus/interfaces
SERVICES_DIR   = $(top_builddir)/src/daemon/dbus/services
DBUS_BUILT_SOURCES = \
    gsignond-dbus-auth-service-gen.c \
    gsignond-dbus-auth-service-gen.h \
    gsignond-dbus-auth-session-gen.c \
    gsignond-dbus-auth-session-gen.h \
    gsignond-dbus-identity-gen.c \
    gsignond-dbus-identity-gen.h \
    gsignond-dbus-remote-plugin-gen.c \
    gsignond-dbus-remote-plugin-gen.h \
    $(NULL)

DBUS_BUILT_DOCS = \
    gsignond-dbus-auth-service-doc-gen-com.google.code.AccountsSSO.gSingleSignOn.AuthService.xml \
    gsignond-dbus-auth-session-doc-gen-com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml \
    gsignond-dbus-identity-doc-gen-com.google.code.AccountsSSO.gSingleSignOn.Identity.xml \
    gsignond-dbus-remote-plugin-doc-gen-com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin.xml \
    $(NULL)

DBUS_INTERFACE_PREFIX="com.google.code.AccountsSSO.gSingleSignOn."
gsignond-dbus-auth-service-gen.c gsignond-dbus-auth-service-gen.h : $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.AuthService.xml
	gdbus-codegen                                       \
       --interface-prefix $(DBUS_INTERFACE_PREFIX)      \
       --c-namespace GSignondDbus                       \
       --generate-c-code  gsignond-dbus-auth-service-gen     \
       --generate-docbook gsignond-dbus-auth-service-doc-gen \
       $<

gsignond-dbus-auth-session-gen.c gsignond-dbus-auth-session-gen.h : $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml
	gdbus-codegen                                       \
       --interface-prefix $(DBUS_INTERFACE_PREFIX)      \
       --c-namespace GSignondDbus                           \
       --generate-c-code  gsignond-dbus-auth-session-gen     \
       --generate-docbook gsignond-dbus-auth-session-doc-gen \
       $<

gsignond-dbus-identity-gen.c gsignond-dbus-identity-gen.h : $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.Identity.xml
	gdbus-codegen                                       \
       --interface-prefix $(DBUS_INTERFACE_PREFIX)      \
       --c-namespace GSignondDbus                           \
       --generate-c-code  gsignond-dbus-identity-gen         \
       --generate-docbook gsignond-dbus-identity-doc-gen     \
       $<

gsignond-dbus-remote-plugin-gen.c gsignond-dbus-remote-plugin-gen.h : $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin.xml
	gdbus-codegen                                       \
       --interface-prefix $(DBUS_INTERFACE_PREFIX)      \
       --c-namespace GSignondDbus                           \
       --generate-c-code  gsignond-dbus-remote-plugin-gen         \
       --generate-docbook gsignond-dbus-remote-plugin-doc-gen     \
       $<

lib_LTLIBRARIES = libgsignond-dbus-glue.la

libgsignond_dbus_glue_la_CPPFLAGS = \
    -I$(top_builddir) \
    $(GSIGNOND_CFLAGS) \
    $(NULL)

libgsignond_dbus_glue_la_LIBADD = \
    $(GSIGNOND_LIBS) \
    $(NULL)

libgsignond_dbus_glue_la_SOURCES = $(DBUS_BUILT_SOURCES)

lib_LTLIBRARIES += libgsignond-dbus.la

libgsignond_dbus_la_CPPFLAGS = \
    -I$(top_builddir) \
    -I$(top_srcdir)/include \
    -I$(top_srcdir)/src \
    -I$(top_builddir)/src/daemon/dbus \
    $(GSIGNOND_CFLAGS) \
    $(NULL)

libgsignond_dbus_la_LIBADD = \
    libgsignond-dbus-glue.la \
    $(GSIGNOND_LIBS) \
    $(NULL)

libgsignond_dbus_la_SOURCES = \
   $(DBUS_BUILT_SOURCES) \
   gsignond-dbus.h \
   gsignond-dbus-server.c \
   gsignond-dbus-server.h \
   gsignond-dbus-auth-service-adapter.c \
   gsignond-dbus-auth-service-adapter.h \
   gsignond-dbus-auth-session-adapter.c \
   gsignond-dbus-auth-session-adapter.h \
   gsignond-dbus-identity-adapter.c \
   gsignond-dbus-identity-adapter.h \
   gsignond-dbus-signonui-adapter.c \
   gsignond-dbus-signonui-adapter.h \
   $(NULL)

dbusservicedir = $(DBUS_SERVICES_DIR)
dbusservice_DATA = \
    $(SERVICES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.service
nodist_dbusservice_DATA = \
    $(SERVICES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.service

dbusinterfacesdir = $(DBUS_INTERFACES_DIR)
dbusinterfaces_DATA = \
    $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.AuthService.xml \
    $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.AuthSession.xml \
    $(INTERFACES_DIR)/com.google.code.AccountsSSO.gSingleSignOn.Identity.xml 

EXTRA_DIST = interfaces

clean-local :
	rm -f *~ $(DBUS_BUILT_SOURCES) $(DBUS_BUILT_DOCS)