blob: 0046e7a00d8f4e9874bd387013699dc844da5258 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
macro(add_simple_module _name _sourcesvar _depsvar _defsvar _cflagsvar _incdirsvar _ldflagsvar _destination)
set(DEPENDENCIES
ebackend
edataserver
)
set(SOURCES
${${_sourcesvar}}
)
add_library(${_name} MODULE
${SOURCES}
)
set_target_properties(${_name} PROPERTIES
PREFIX ""
)
add_dependencies(${_name}
${DEPENDENCIES}
${${_depsvar}}
)
target_compile_definitions(${_name} PRIVATE
-DG_LOG_DOMAIN=\"${_name}\"
${${_defsvar}}
)
target_compile_options(${_name} PUBLIC
${BACKEND_CFLAGS}
${DATA_SERVER_CFLAGS}
${${_cflagsvar}}
)
target_include_directories(${_name} PUBLIC
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${CMAKE_SOURCE_DIR}/src
${BACKEND_INCLUDE_DIRS}
${DATA_SERVER_INCLUDE_DIRS}
${${_incdirsvar}}
)
target_link_libraries(${_name}
${DEPENDENCIES}
${${_depsvar}}
${BACKEND_LDFLAGS}
${DATA_SERVER_LDFLAGS}
${${_ldflagsvar}}
)
install(TARGETS ${_name}
DESTINATION ${_destination}
)
endmacro(add_simple_module)
macro(add_source_registry_module _name _sourcesvar _depsvar _defsvar _cflagsvar _incdirsvar _ldflagsvar)
add_simple_module(${_name} ${_sourcesvar} ${_depsvar} ${_defsvar} ${_cflagsvar} ${_incdirsvar} ${_ldflagsvar} ${moduledir})
endmacro(add_source_registry_module)
macro(add_credentials_module _name _sourcesvar _depsvar _defsvar _cflagsvar _incdirsvar _ldflagsvar)
add_simple_module(${_name} ${_sourcesvar} ${_depsvar} ${_defsvar} ${_cflagsvar} ${_incdirsvar} ${_ldflagsvar} ${credentialmoduledir})
endmacro(add_credentials_module)
add_subdirectory(cache-reaper)
add_subdirectory(google-backend)
add_subdirectory(outlook-backend)
add_subdirectory(webdav-backend)
add_subdirectory(yahoo-backend)
add_subdirectory(oauth2-services)
if(HAVE_GTK)
add_subdirectory(trust-prompt)
endif(HAVE_GTK)
if(HAVE_GOA)
add_subdirectory(gnome-online-accounts)
endif(HAVE_GOA)
if(NOT WIN32)
add_subdirectory(secret-monitor)
endif(NOT WIN32)
|