build: merge branch 'bg/meson-fixes'
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/226
This commit is contained in:
@@ -11,7 +11,6 @@ server = 'server.conf'
|
||||
configure_file(
|
||||
input: server + '.in',
|
||||
output: server,
|
||||
install: true,
|
||||
install_dir: join_paths(nm_datadir, 'doc', nm_name, 'examples'),
|
||||
configuration: data_conf,
|
||||
)
|
||||
@@ -32,7 +31,6 @@ if install_systemd_unit_dir
|
||||
configure_file(
|
||||
input: service + '.in',
|
||||
output: service,
|
||||
install: true,
|
||||
install_dir: systemd_system_unit_dir,
|
||||
configuration: data_conf,
|
||||
)
|
||||
|
@@ -13,7 +13,6 @@ service = 'org.freedesktop.nm_dispatcher.service'
|
||||
configure_file(
|
||||
input: service + '.in',
|
||||
output: service,
|
||||
install: true,
|
||||
install_dir: dbus_sys_dir,
|
||||
configuration: service_conf,
|
||||
)
|
||||
|
@@ -224,7 +224,7 @@ if enable_introspection
|
||||
extra_args: cflags,
|
||||
header: 'NetworkManager.h',
|
||||
install: true,
|
||||
depends: libnm_dep,
|
||||
dependencies: libnm_dep,
|
||||
)
|
||||
|
||||
generate_plugin_docs = join_paths(meson.current_source_dir(), 'generate-plugin-docs.pl')
|
||||
|
@@ -330,24 +330,6 @@ libnm_systemd_shared_no_logging_dep = declare_dependency(
|
||||
],
|
||||
)
|
||||
|
||||
###############################################################################
|
||||
|
||||
exe = executable(
|
||||
'nm-utils/tests/test-shared-general',
|
||||
[ 'nm-utils/tests/test-shared-general.c' ],
|
||||
c_args: [
|
||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)',
|
||||
],
|
||||
dependencies: [
|
||||
shared_nm_glib_aux_dep,
|
||||
libnm_systemd_shared_no_logging_dep,
|
||||
shared_c_siphash_dep,
|
||||
],
|
||||
)
|
||||
|
||||
test(
|
||||
'shared/nm-utils/tests/test-shared-general',
|
||||
test_script,
|
||||
args: test_args + [exe.full_path()]
|
||||
)
|
||||
if enable_tests
|
||||
subdir('nm-utils/tests')
|
||||
endif
|
||||
|
22
shared/nm-utils/tests/meson.build
Normal file
22
shared/nm-utils/tests/meson.build
Normal file
@@ -0,0 +1,22 @@
|
||||
test_unit = 'test-shared-general'
|
||||
|
||||
exe = executable(
|
||||
test_unit,
|
||||
test_unit + '.c',
|
||||
c_args: [
|
||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)',
|
||||
],
|
||||
dependencies: [
|
||||
shared_nm_glib_aux_dep,
|
||||
libnm_systemd_shared_no_logging_dep,
|
||||
shared_c_siphash_dep,
|
||||
],
|
||||
)
|
||||
|
||||
test(
|
||||
'shared/nm-utils/' + test_unit,
|
||||
test_script,
|
||||
args: test_args + [exe.full_path()],
|
||||
timeout: default_test_timeout,
|
||||
)
|
@@ -293,10 +293,9 @@ network_manager_sym = executable(
|
||||
# this uses symbols from nm-full-symbols instead of libNetworkManager.a
|
||||
ver_script = custom_target(
|
||||
symbol_map_name,
|
||||
input: meson.source_root(),
|
||||
output: symbol_map_name,
|
||||
depends: [ network_manager_sym, core_plugins ],
|
||||
command: [create_exports_networkmanager, '--called-from-build', '@INPUT@'],
|
||||
command: [create_exports_networkmanager, '--called-from-build', meson.source_root()],
|
||||
)
|
||||
|
||||
ldflags = ['-rdynamic', '-Wl,--version-script,@0@'.format(ver_script.full_path())]
|
||||
|
Reference in New Issue
Block a user