core: implement optional PolicyKit-based authentication

This commit is contained in:
Dan Williams
2010-02-27 12:51:13 -08:00
parent aed5f3765d
commit 28d065c1f1
15 changed files with 664 additions and 167 deletions
+16 -13
View File
@@ -33,15 +33,26 @@ if WITH_POLKIT
modem_manager_LDADD += $(POLKIT_LIBS)
endif
modem_manager_SOURCES = \
main.c \
mm-callback-info.c \
mm-callback-info.h \
auth_sources = \
mm-auth-request.c \
mm-auth-request.h \
mm-auth-provider.h \
mm-auth-provider.c \
mm-auth-provider-factory.c \
mm-auth-provider-factory.c
if WITH_POLKIT
auth_sources += \
mm-auth-request-polkit.c \
mm-auth-request-polkit.h \
mm-auth-provider-polkit.c \
mm-auth-provider-polkit.h
endif
modem_manager_SOURCES = \
main.c \
mm-callback-info.c \
mm-callback-info.h \
$(auth_sources) \
mm-manager.c \
mm-manager.h \
mm-modem.c \
@@ -78,14 +89,6 @@ modem_manager_SOURCES = \
mm-properties-changed-signal.c \
mm-properties-changed-signal.h
if WITH_POLKIT
modem_manager_SOURCES += \
mm-auth-request-polkit.c \
mm-auth-request-polkit.h \
mm-auth-provider-polkit.c \
mm-auth-provider-polkit.h
endif
mm-manager-glue.h: $(top_srcdir)/introspection/mm-manager.xml
dbus-binding-tool --prefix=mm_manager --mode=glib-server --output=$@ $<