| 1 |
if not get_option('daemon') |
| 2 |
subdir_done() |
| 3 |
endif |
| 4 |
|
| 5 |
sources = [ |
| 6 |
generated_dbus_sources, |
| 7 |
'cbd-daemon.c', |
| 8 |
'cbd-manager.c', |
| 9 |
'cbd-message.c', |
| 10 |
'cbd-modem-3gpp.c', |
| 11 |
'cbd-modem-cell-broadcast.c', |
| 12 |
'cbd-mm-manager.c', |
| 13 |
'cbd-channel-manager.c', |
| 14 |
'cbd-service-providers.c', |
| 15 |
] |
| 16 |
|
| 17 |
cbd_deps = [gio, gio_unix, glib, gmobile, mm_glib, libcellbroadcast_static_dep] |
| 18 |
|
| 19 |
cbd_inc = [cbd_root_inc, include_directories('.'), libcellbroadcast_inc, dbus_inc] |
| 20 |
|
| 21 |
cbd_lib = static_library( |
| 22 |
'cbd', |
| 23 |
sources, |
| 24 |
include_directories: cbd_inc, |
| 25 |
dependencies: cbd_deps, |
| 26 |
install: false, |
| 27 |
) |
| 28 |
|
| 29 |
cbd_dep = declare_dependency( |
| 30 |
sources: [generated_dbus_sources], |
| 31 |
include_directories: cbd_inc, |
| 32 |
link_with: cbd_lib, |
| 33 |
dependencies: cbd_deps, |
| 34 |
) |
| 35 |
|
| 36 |
cbd_exe = executable( |
| 37 |
'cellbroadcastd', |
| 38 |
sources: ['cbd.c'], |
| 39 |
include_directories: cbd_inc, |
| 40 |
dependencies: cbd_deps, |
| 41 |
link_with: cbd_lib, |
| 42 |
install: true, |
| 43 |
install_dir: libexecdir, |
| 44 |
) |