Skip to content

Commit 6639943

Browse files
committed
meson: add include directory
Signed-off-by: Pavel Hrdina <[email protected]> Reviewed-by: Peter Krempa <[email protected]> Reviewed-by: Neal Gompa <[email protected]>
1 parent 116f949 commit 6639943

File tree

6 files changed

+43
-29
lines changed

6 files changed

+43
-29
lines changed

Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# so force it explicitly
2121
DISTCHECK_CONFIGURE_FLAGS = --enable-werror
2222

23-
SUBDIRS = . include/libvirt src tools docs \
23+
SUBDIRS = . src tools docs \
2424
tests po examples
2525

2626
XZ_OPT ?= -v -T0

configure.ac

+1-2
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ m4_if(m4_version_compare([2.61a.100],
687687
AC_CONFIG_FILES([run],
688688
[chmod +x,-w run])
689689
AC_CONFIG_FILES([\
690-
Makefile src/Makefile include/libvirt/Makefile docs/Makefile \
690+
Makefile src/Makefile docs/Makefile \
691691
.color_coded \
692692
.ycm_extra_conf.py \
693693
libvirt.pc \
@@ -699,7 +699,6 @@ AC_CONFIG_FILES([\
699699
src/libvirt-lxc.pc \
700700
libvirt.spec mingw-libvirt.spec \
701701
po/Makefile \
702-
include/libvirt/libvirt-common.h \
703702
examples/Makefile \
704703
tests/Makefile \
705704
tools/Makefile])

include/libvirt/Makefile.am

-26
This file was deleted.

include/libvirt/meson.build

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
libvirt_common_h_in = files('libvirt-common.h.in')
2+
3+
libvirt_include = files(
4+
'libvirt-admin.h',
5+
'libvirt-domain-checkpoint.h',
6+
'libvirt-domain.h',
7+
'libvirt-domain-snapshot.h',
8+
'libvirt-event.h',
9+
'libvirt.h',
10+
'libvirt-host.h',
11+
'libvirt-interface.h',
12+
'libvirt-lxc.h',
13+
'libvirt-network.h',
14+
'libvirt-nodedev.h',
15+
'libvirt-nwfilter.h',
16+
'libvirt-qemu.h',
17+
'libvirt-secret.h',
18+
'libvirt-storage.h',
19+
'libvirt-stream.h',
20+
'virterror.h',
21+
)
22+
23+
include_conf = configuration_data()
24+
include_conf.merge_from(conf)
25+
26+
libvirt_common_h = configure_file(
27+
input: libvirt_common_h_in,
28+
output: 'libvirt-common.h',
29+
configuration: include_conf,
30+
)
31+
32+
install_headers(
33+
libvirt_include,
34+
libvirt_common_h,
35+
install_dir: includedir / 'libvirt',
36+
)

include/meson.build

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
libvirt_inc = include_directories('.')
2+
3+
subdir('libvirt')

meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@ top_inc_dir = include_directories('.')
639639

640640
subdir('scripts')
641641

642+
subdir('include')
643+
642644

643645
# generate meson-config.h file
644646
configure_file(output: 'meson-config.h', configuration: conf)

0 commit comments

Comments
 (0)