-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
polkit-agent: Move PolicyKit agent out of the shell
Move the code to a separate process. It doesn't build now and will be fixed later. Issue: #146
- Loading branch information
Showing
12 changed files
with
66 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
add_subdirectory(notifications) | ||
if(PolkitQt-1_FOUND AND QtAccountsService_FOUND) | ||
add_subdirectory(polkitagent) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
include_directories( | ||
${POLKITQT-1_INCLUDE_DIR} | ||
${QtAccountsService_INCLUDE_DIRS} | ||
${CMAKE_SOURCE_DIR}/headers | ||
${CMAKE_BINARY_DIR}/headers | ||
) | ||
|
||
if(systemd_FOUND) | ||
include_directories(${systemd_INCLUDE_DIRS}) | ||
endif() | ||
|
||
set(SOURCES | ||
main.cpp | ||
policykitagent.cpp | ||
) | ||
|
||
set(LINK_FLAGS "-L${POLKITQT-1_LIB_DIR}") | ||
set(LIBRARIES | ||
${POLKITQT-1_CORE_LIBRARY} | ||
${POLKITQT-1_AGENT_LIBRARY} | ||
${QtAccountsService_LIBRARIES} | ||
) | ||
if(systemd_FOUND) | ||
set(LINK_FLAGS "${LINK_FLAGS} -L${systemd_LIBDIR}") | ||
set(LIBRARIES ${LIBRARIES} ${systemd_LIBRARIES}) | ||
endif() | ||
|
||
add_executable(hawaii-polkit-agent ${SOURCES} ${RESOURCES}) | ||
qt5_use_modules(hawaii-polkit-agent DBus Quick) | ||
set_target_properties(hawaii-polkit-agent PROPERTIES LINK_FLAGS ${LINK_FLAGS}) | ||
target_link_libraries(hawaii-polkit-agent ${LIBRARIES}) | ||
|
||
install(TARGETS hawaii-polkit-agent DESTINATION ${CMAKE_INSTALL_BINDIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters