| 1 |
install(FILES libcamelews.urls |
| 2 |
DESTINATION ${camel_providerdir} |
| 3 |
) |
| 4 |
|
| 5 |
# ************************************************* |
| 6 |
# Installed private library which can be linked to |
| 7 |
# ************************************************* |
| 8 |
|
| 9 |
glib_mkenums(camel-ews-enumtypes camel-ews-enums.h CAMEL_EWS_ENUMTYPES_H) |
| 10 |
|
| 11 |
set(DEPENDENCIES |
| 12 |
evolution-ews-common |
| 13 |
evolution-ews |
| 14 |
) |
| 15 |
|
| 16 |
set(SOURCES |
| 17 |
camel-ews-enums.h |
| 18 |
camel-ews-folder.c |
| 19 |
camel-ews-folder.h |
| 20 |
camel-ews-message-info.c |
| 21 |
camel-ews-message-info.h |
| 22 |
camel-ews-private.h |
| 23 |
camel-ews-search.c |
| 24 |
camel-ews-search.h |
| 25 |
camel-ews-store-summary.c |
| 26 |
camel-ews-store-summary.h |
| 27 |
camel-ews-store.c |
| 28 |
camel-ews-store.h |
| 29 |
camel-ews-summary.c |
| 30 |
camel-ews-summary.h |
| 31 |
camel-ews-utils.c |
| 32 |
camel-ews-utils.h |
| 33 |
camel-ews-transport.c |
| 34 |
camel-ews-transport.h |
| 35 |
${CMAKE_CURRENT_BINARY_DIR}/camel-ews-enumtypes.c |
| 36 |
${CMAKE_CURRENT_BINARY_DIR}/camel-ews-enumtypes.h |
| 37 |
) |
| 38 |
|
| 39 |
add_library(camelews-priv SHARED |
| 40 |
${SOURCES} |
| 41 |
) |
| 42 |
|
| 43 |
add_dependencies(camelews-priv |
| 44 |
${DEPENDENCIES} |
| 45 |
) |
| 46 |
|
| 47 |
target_compile_definitions(camelews-priv PRIVATE |
| 48 |
-DG_LOG_DOMAIN=\"camel-ews-provider\" |
| 49 |
-DEXCHANGE_EWS_LOCALEDIR=\"${LOCALE_INSTALL_DIR}\" |
| 50 |
) |
| 51 |
|
| 52 |
target_compile_options(camelews-priv PUBLIC |
| 53 |
${CAMEL_CFLAGS} |
| 54 |
${LIBEDATASERVER_CFLAGS} |
| 55 |
${LIBECAL_CFLAGS} |
| 56 |
${SOUP_CFLAGS} |
| 57 |
) |
| 58 |
|
| 59 |
target_include_directories(camelews-priv PUBLIC |
| 60 |
${CMAKE_BINARY_DIR} |
| 61 |
${CMAKE_SOURCE_DIR} |
| 62 |
${CMAKE_BINARY_DIR}/src/EWS |
| 63 |
${CMAKE_SOURCE_DIR}/src/EWS |
| 64 |
${CMAKE_SOURCE_DIR}/src/common |
| 65 |
${CMAKE_CURRENT_BINARY_DIR} |
| 66 |
${CMAKE_CURRENT_SOURCE_DIR} |
| 67 |
${CAMEL_INCLUDE_DIRS} |
| 68 |
${LIBEDATASERVER_INCLUDE_DIRS} |
| 69 |
${LIBECAL_INCLUDE_DIRS} |
| 70 |
${SOUP_INCLUDE_DIRS} |
| 71 |
) |
| 72 |
|
| 73 |
target_link_libraries(camelews-priv |
| 74 |
${DEPENDENCIES} |
| 75 |
${CAMEL_LDFLAGS} |
| 76 |
${LIBEDATASERVER_LDFLAGS} |
| 77 |
${LIBECAL_LDFLAGS} |
| 78 |
${SOUP_LDFLAGS} |
| 79 |
) |
| 80 |
|
| 81 |
install(TARGETS camelews-priv |
| 82 |
DESTINATION ${privsolibdir} |
| 83 |
) |
| 84 |
|
| 85 |
# ************************************************* |
| 86 |
# Provider module |
| 87 |
# ************************************************* |
| 88 |
|
| 89 |
set(DEPENDENCIES |
| 90 |
camelews-priv |
| 91 |
evolution-ews |
| 92 |
) |
| 93 |
|
| 94 |
set(SOURCES |
| 95 |
camel-ews-provider.c |
| 96 |
) |
| 97 |
|
| 98 |
add_library(camelews MODULE |
| 99 |
${SOURCES} |
| 100 |
) |
| 101 |
|
| 102 |
add_dependencies(camelews |
| 103 |
${DEPENDENCIES} |
| 104 |
) |
| 105 |
|
| 106 |
target_compile_definitions(camelews PRIVATE |
| 107 |
-DG_LOG_DOMAIN=\"camel-ews-provider\" |
| 108 |
-DEXCHANGE_EWS_LOCALEDIR=\"${LOCALE_INSTALL_DIR}\" |
| 109 |
) |
| 110 |
|
| 111 |
target_compile_options(camelews PUBLIC |
| 112 |
${CAMEL_CFLAGS} |
| 113 |
${LIBEDATASERVER_CFLAGS} |
| 114 |
${LIBECAL_CFLAGS} |
| 115 |
${SOUP_CFLAGS} |
| 116 |
) |
| 117 |
|
| 118 |
target_include_directories(camelews PUBLIC |
| 119 |
${CMAKE_BINARY_DIR} |
| 120 |
${CMAKE_SOURCE_DIR} |
| 121 |
${CMAKE_BINARY_DIR}/src/EWS |
| 122 |
${CMAKE_SOURCE_DIR}/src/EWS |
| 123 |
${CMAKE_CURRENT_BINARY_DIR} |
| 124 |
${CAMEL_INCLUDE_DIRS} |
| 125 |
${LIBEDATASERVER_INCLUDE_DIRS} |
| 126 |
${LIBECAL_INCLUDE_DIRS} |
| 127 |
${SOUP_INCLUDE_DIRS} |
| 128 |
) |
| 129 |
|
| 130 |
target_link_libraries(camelews |
| 131 |
${DEPENDENCIES} |
| 132 |
${CAMEL_LDFLAGS} |
| 133 |
${LIBEDATASERVER_LDFLAGS} |
| 134 |
${LIBECAL_LDFLAGS} |
| 135 |
${SOUP_LDFLAGS} |
| 136 |
) |
| 137 |
|
| 138 |
install(TARGETS camelews |
| 139 |
DESTINATION ${camel_providerdir} |
| 140 |
) |