|
|
@ -1,8 +1,5 @@ |
|
|
|
project(pEpDBusAdapter) |
|
|
|
|
|
|
|
string( REPLACE "fno-exceptions" "fexceptions" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") |
|
|
|
string( REPLACE "fno-exceptions" "fexceptions" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") |
|
|
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/types) |
|
|
|
|
|
|
|
############################ Server glue ########################### |
|
|
@ -28,24 +25,66 @@ set_source_files_properties(${PROJECT_BINARY_DIR}/pep-client-glue.h PROPERTIES G |
|
|
|
####################### |
|
|
|
|
|
|
|
add_library(pEpDBusAdapterClient SHARED pep-client.cpp ${PROJECT_BINARY_DIR}/pep-client-glue.h) |
|
|
|
target_link_libraries(pEpDBusAdapterClient pEpEngine dbus-c++-1) |
|
|
|
target_link_libraries(pEpDBusAdapterClient |
|
|
|
pEpEngine |
|
|
|
pEpAdapter |
|
|
|
dbus-c++-1 |
|
|
|
sequoia_ffi |
|
|
|
sequoia_openpgp_ffi |
|
|
|
) |
|
|
|
|
|
|
|
set_target_properties(pEpDBusAdapterClient PROPERTIES |
|
|
|
CXX_VISIBILITY_PRESET default |
|
|
|
VISIBILITY_INLINES_HIDDEN 0 |
|
|
|
) |
|
|
|
|
|
|
|
add_library(pEpDBusAdapterServer SHARED pep-server.cpp ${PROJECT_BINARY_DIR}/pep-server-glue.h) |
|
|
|
target_link_libraries(pEpDBusAdapterServer pEpEngine dbus-c++-1) |
|
|
|
add_library(pEpDBusAdapter SHARED pep-dbus-adapter.cpp ${PROJECT_BINARY_DIR}/pep-server-glue.h) |
|
|
|
target_link_libraries(pEpDBusAdapter |
|
|
|
pEpEngine |
|
|
|
pEpAdapter |
|
|
|
pEpMIME |
|
|
|
dbus-c++-1 |
|
|
|
sequoia_ffi |
|
|
|
sequoia_openpgp_ffi |
|
|
|
) |
|
|
|
set_target_properties(pEpDBusAdapter PROPERTIES |
|
|
|
CXX_VISIBILITY_PRESET default |
|
|
|
VISIBILITY_INLINES_HIDDEN 0 |
|
|
|
) |
|
|
|
|
|
|
|
add_library(pEpDBusAdapterServer SHARED pep-server.cpp) |
|
|
|
target_link_libraries(pEpDBusAdapterServer |
|
|
|
pEpDBusAdapter |
|
|
|
pEpAdapter |
|
|
|
pEpEngine |
|
|
|
dbus-c++-1 |
|
|
|
sequoia_ffi |
|
|
|
sequoia_openpgp_ffi |
|
|
|
) |
|
|
|
|
|
|
|
set_target_properties(pEpDBusAdapterServer PROPERTIES |
|
|
|
CXX_VISIBILITY_PRESET default |
|
|
|
VISIBILITY_INLINES_HIDDEN 0 |
|
|
|
) |
|
|
|
|
|
|
|
add_executable(pep-dbus-server server.cpp) |
|
|
|
target_link_libraries(pep-dbus-server pEpDBusAdapterServer dbus-c++-1 sequoia_ffi sequoia_openpgp_ffi) |
|
|
|
target_link_libraries(pep-dbus-server |
|
|
|
pEpDBusAdapter |
|
|
|
pEpDBusAdapterServer |
|
|
|
pEpEngine |
|
|
|
dbus-c++-1 |
|
|
|
sequoia_ffi |
|
|
|
sequoia_openpgp_ffi |
|
|
|
) |
|
|
|
|
|
|
|
add_executable(tests tests.cpp) |
|
|
|
target_link_libraries(tests pEpDBusAdapterClient dbus-c++-1 sequoia_ffi sequoia_openpgp_ffi) |
|
|
|
target_link_libraries(tests |
|
|
|
pEpEngine |
|
|
|
pEpDBusAdapterClient |
|
|
|
dbus-c++-1 |
|
|
|
sequoia_ffi |
|
|
|
sequoia_openpgp_ffi |
|
|
|
) |
|
|
|
|
|
|
|
configure_file(security.pep.service.in ${CMAKE_CURRENT_BINARY_DIR}/security.pep.service) |
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/security.pep.service |
|
|
|