Debian Codegraph @

src/backend/meson.build

raw
1 backend_config_h = configuration_data()
2 backend_config_h.set('HAVE_CONFIG_ENV', get_option('config-env'))
3 backend_config_h.set('HAVE_CONFIG_GNOME', get_option('config-gnome'))
4 backend_config_h.set('HAVE_CONFIG_KDE', get_option('config-kde'))
5 backend_config_h.set('HAVE_CONFIG_OSX', get_option('config-osx') and with_platform_darwin)
6 backend_config_h.set('HAVE_CONFIG_SYSCONFIG', get_option('config-sysconfig'))
7 backend_config_h.set('HAVE_CONFIG_WINDOWS', get_option('config-windows') and with_platform_windows)
8 backend_config_h.set('HAVE_CONFIG_XDP', get_option('config-xdp'))
9 backend_config_h.set('HAVE_PACRUNNER_DUKTAPE', get_option('pacrunner-duktape'))
10 backend_config_h.set('HAVE_CURL', get_option('curl'))
11 configure_file(output: 'px-backend-config.h', configuration: backend_config_h)
12
13 px_backend_sources = [
14 'px-manager.c',
15 'px-manager.h',
16 'px-plugin-config.c',
17 'px-plugin-config.h',
18 'px-plugin-pacrunner.c',
19 'px-plugin-pacrunner.h',
20 ]
21
22 px_backend_deps = [
23 curl_dep,
24 gio_dep,
25 glib_dep,
26 ws2_32_dep,
27 ]
28
29 px_backend_c_args = [
30 '-DG_LOG_DOMAIN="pxbackend"',
31 ]
32
33 px_backend_inc = include_directories('.')
34
35 subdir('plugins')
36
37 px_backend = shared_library(
38 'pxbackend-@0@'.format(api_version),
39 px_backend_sources,
40 dependencies: px_backend_deps,
41 c_args: px_backend_c_args,
42 install: true,
43 install_dir: pkglibdir,
44 install_rpath: pkglibdir
45 )
46
47 px_backend_dep = declare_dependency(
48 include_directories: px_backend_inc,
49 link_with: px_backend,
50 dependencies: px_backend_deps
51 )