shared_c_list_dep = declare_dependency( include_directories: include_directories('c-list/src') ) shared_c_siphash = static_library( 'c-siphash', sources: ['c-siphash/src/c-siphash.c'] ) shared_c_siphash_dep = declare_dependency( include_directories: include_directories('c-siphash/src'), link_with: shared_c_siphash ) shared_n_acd = static_library( 'n-acd', sources: ['n-acd/src/n-acd.c'], dependencies: [ shared_c_siphash_dep, shared_c_list_dep ] ) shared_n_acd_dep = declare_dependency( include_directories: include_directories('.'), link_with: shared_n_acd, ) shared_inc = include_directories('.') 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 = 'nm-version-macros.h' version_header = configure_file( input: version + '.in', output: version, configuration: version_conf ) shared_meta_setting = files('nm-meta-setting.c') shared_test_utils = files('nm-test-utils-impl.c') shared_siphash = files('nm-utils/siphash24.c') shared_udev_utils = files('nm-utils/nm-udev-utils.c') shared_utils = files( 'nm-utils/nm-enum-utils.c', 'nm-utils/nm-hash-utils.c', 'nm-utils/nm-random-utils.c', 'nm-utils/nm-shared-utils.c' ) shared_vpn_plugin_utils = files('nm-utils/nm-vpn-plugin-utils.c') shared_sources = shared_utils + shared_meta_setting + shared_udev_utils + files( 'nm-utils/c-list-util.c', 'nm-utils/nm-dedup-multi.c' ) shared_dep = declare_dependency( include_directories: [ top_inc, shared_inc, ], dependencies: glib_dep )