core: implement optional PolicyKit-based authentication
This commit is contained in:
+16
-13
@@ -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=$@ $<
|
||||
|
||||
|
||||
Reference in New Issue
Block a user