[PATCH spice-protocol 1/2] Add support for building with meson

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Eduardo Lima (Etrunko) <etrunko@xxxxxxxxxx>
---
 meson.build       | 23 +++++++++++++++++++++++
 spice/meson.build | 22 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 meson.build
 create mode 100644 spice/meson.build

diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..5ed4177
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,23 @@
+#
+# project definition
+#
+project('spice-protocol', 'c',
+        version : '0.12.14',
+        license : 'BSD',
+        meson_version : '>= 0.41.0')
+
+subdir('spice')
+
+#
+# spice-protocol.pc generation
+#
+datadir = get_option('datadir')
+pkgconfig_dir = join_paths(get_option('prefix'), datadir, 'pkgconfig')
+
+pkgconfig = import('pkgconfig')
+pkgconfig.generate(name : meson.project_name(),
+                   description : 'SPICE protocol headers',
+                   version : meson.project_version(),
+                   subdirs : 'spice-1',
+                   install_dir : pkgconfig_dir,
+                   variables : 'datadir=@0@'.format(join_paths('${prefix}', datadir)))
diff --git a/spice/meson.build b/spice/meson.build
new file mode 100644
index 0000000..5b1ff30
--- /dev/null
+++ b/spice/meson.build
@@ -0,0 +1,22 @@
+spice_protocol_headers = [
+  'barrier.h',
+  'controller_prot.h',
+  'end-packed.h',
+  'enums.h',
+  'error_codes.h',
+  'foreign_menu_prot.h',
+  'ipc_ring.h',
+  'macros.h',
+  'protocol.h',
+  'qxl_dev.h',
+  'qxl_windows.h',
+  'start-packed.h',
+  'stats.h',
+  'types.h',
+  'vd_agent.h',
+  'vdi_dev.h',
+  'stream-device.h',
+]
+
+install_headers(spice_protocol_headers,
+                subdir : join_paths('spice-1', 'spice'))
-- 
2.14.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]