summaryrefslogtreecommitdiff
path: root/config/meson.build
blob: d9052a37153f6c3f95daa255045880e950bb4b22 (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
srcs_config = [
    'config.c',
]

config_dep = [common_dep]

if build_dbus
    srcs_config += 'dbus-core.c'
    config_dep += dbus_dep
endif

if build_hal
    srcs_config += 'hal.c'
    config_dep += hal_dep
endif

if build_udev
    srcs_config += 'udev.c'
    config_dep += udev_dep
endif

if host_machine.system() == 'openbsd'
    srcs_config += 'wscons.c'
endif

if build_xorg
    install_data('10-quirks.conf',
                 install_dir: join_paths(get_option('datadir'), 'xorg.conf.d'))
endif

libxserver_config = static_library('libxserver_config',
    srcs_config,
    include_directories: inc,
    dependencies: config_dep,
)