build: don't install NetworkManager.pc when libnm-glib is disabled

This commit is contained in:
Lubomir Rintel 2018-01-15 15:35:36 +01:00
parent 07d8431ae5
commit bfff3ecfb0
3 changed files with 17 additions and 15 deletions

View file

@ -141,7 +141,9 @@ DISTCLEANFILES += intltool-extract intltool-merge intltool-update
###############################################################################
if WITH_LEGACY_LIBRARIES
pkgconfig_DATA += NetworkManager.pc
endif
###############################################################################

View file

@ -276,3 +276,18 @@ run_target(
if enable_tests
subdir('tests')
endif
pkg.generate(
version: nm_version,
name: nm_name,
description: 'System for maintaining active network connection',
filebase: nm_name,
subdirs: nm_name,
requires: '',
variables: [
'exec_prefix=${prefix}',
'libgnome_serverdir=' + nm_libexecdir,
'plugindir=' + nm_pkglibdir,
'configdir=' + nm_pkgconfdir
]
)

View file

@ -853,21 +853,6 @@ if enable_docs
subdir('docs')
endif
pkg.generate(
version: nm_version,
name: nm_name,
description: 'System for maintaining active network connection',
filebase: nm_name,
subdirs: nm_name,
requires: '',
variables: [
'exec_prefix=${prefix}',
'libgnome_serverdir=' + nm_libexecdir,
'plugindir=' + nm_pkglibdir,
'configdir=' + nm_pkgconfdir
]
)
config = 'config.h'
configure_file(