]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: add tools directory
authorPavel Hrdina <phrdina@redhat.com>
Wed, 24 Jun 2020 11:32:04 +0000 (13:32 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:05 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
meson.build
tools/Makefile.am
tools/meson.build [new file with mode: 0644]

index ee98505b45aa1e6e31d5af15b7a83621bf04fd78..896ff6093d77fde826d783e9237dfcbf3dd1e171 100644 (file)
@@ -2223,6 +2223,8 @@ subdir('include')
 
 subdir('src')
 
+subdir('tools')
+
 
 # generate meson-config.h file
 configure_file(output: 'meson-config.h', configuration: conf)
index 34046817bd2c3340fef71ca0f0100c5a73607576..94e5f0c0b0dfc86d117b6479aff6ef3163739dd7 100644 (file)
 ## License along with this library.  If not, see
 ## <http://www.gnu.org/licenses/>.
 
-AM_CPPFLAGS = \
-       -I$(top_builddir)/include -I$(top_srcdir)/include \
-       -I$(top_builddir)/src -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/util \
-       -I$(top_srcdir) \
-       $(NULL)
-
 # We do not want to accidentally include stuff from src/
 # dir or public API dir. Specific files can
 # still be included via their path relative to the root if
 # needed
 STANDALONE_CPPFLAGS = -I$(top_srcdir)
 
-AM_CFLAGS = \
-       $(WARN_CFLAGS) \
-       $(COVERAGE_CFLAGS) \
-       $(LIBXML_CFLAGS) \
-       $(GLIB_CFLAGS) \
-       $(NULL)
-
-AM_LDFLAGS = \
-       $(RELRO_LDFLAGS) \
-       $(NO_INDIRECT_LDFLAGS) \
-       $(NO_UNDEFINED_LDFLAGS) \
-       $(NULL)
-
 ICON_FILES = \
        libvirt_win_icon_16x16.ico \
        libvirt_win_icon_32x32.ico \
diff --git a/tools/meson.build b/tools/meson.build
new file mode 100644 (file)
index 0000000..43a772a
--- /dev/null
@@ -0,0 +1,20 @@
+tools_inc_dir = include_directories('.')
+
+tools_dep = declare_dependency(
+  compile_args: coverage_flags,
+  dependencies: [
+    libxml_dep,
+    glib_dep,
+  ],
+  include_directories: [
+    libvirt_inc,
+    src_inc_dir,
+    util_inc_dir,
+    top_inc_dir,
+  ],
+  link_args: (
+    libvirt_relro
+    + libvirt_no_indirect
+    + libvirt_no_undefined
+  ),
+)