meson.build 1.89 KB
Newer Older
1
shared_inc = include_directories('.')
2 3 4

shared_c_siphash = static_library(
    'c-siphash',
5
    sources: 'c-siphash/src/c-siphash.c',
6 7 8
)

shared_c_siphash_dep = declare_dependency(
9 10
    include_directories: shared_inc,
    link_with: shared_c_siphash,
11 12 13 14
)

shared_n_acd = static_library(
    'n-acd',
15 16 17 18 19 20
    sources: 'n-acd/src/n-acd.c',
    include_directories: [
        include_directories('c-siphash/src'),
        include_directories('c-list/src'),
    ],
    dependencies: shared_c_siphash_dep,
21 22 23
)

shared_n_acd_dep = declare_dependency(
24
    include_directories: shared_inc,
25 26 27
    link_with: shared_n_acd,
)

28 29 30 31 32 33
version_conf = configuration_data()
version_conf.set('NM_MAJOR_VERSION', nm_major_version)
version_conf.set('NM_MINOR_VERSION', nm_minor_version)
version_conf.set('NM_MICRO_VERSION', nm_micro_version)

version_header = configure_file(
34 35 36
    input: 'nm-version-macros.h.in',
    output: 'nm-version-macros.h',
    configuration: version_conf,
37 38
)

39
shared_nm_utils_nm_meta_setting_c = files('nm-meta-setting.c')
40

41
shared_nm_test_utils_impl_c = files('nm-test-utils-impl.c')
42

43
shared_nm_utils_nm_vpn_plugin_utils_c = files('nm-utils/nm-vpn-plugin-utils.c')
44

45 46 47 48 49 50 51 52 53 54
shared_files_libnm_core = files('''
    c-siphash/src/c-siphash.c
    nm-utils/c-list-util.c
    nm-utils/nm-dedup-multi.c
    nm-utils/nm-enum-utils.c
    nm-utils/nm-hash-utils.c
    nm-utils/nm-random-utils.c
    nm-utils/nm-shared-utils.c
    nm-utils/nm-udev-utils.c
'''.split())
55

56 57 58 59 60 61 62
shared_files_clients_common = files('''
    c-siphash/src/c-siphash.c
    nm-utils/nm-enum-utils.c
    nm-utils/nm-hash-utils.c
    nm-utils/nm-random-utils.c
    nm-utils/nm-shared-utils.c
'''.split())
63

64 65 66 67 68 69 70
shared_files_libnm_util = files('''
    nm-utils/nm-shared-utils.c
'''.split())

shared_files_libnm_glib = files('''
    nm-utils/nm-udev-utils.c
'''.split())
71 72

shared_dep = declare_dependency(
73 74 75 76 77
    include_directories: [
        top_inc,
        shared_inc,
    ],
    dependencies: glib_dep,
78
)