From 83cbea399c6c4efc5ac6dc3952eed63e1cb71256 Mon Sep 17 00:00:00 2001
From: Jussi Pakkanen <jpakkane@gmail.com>
Date: Mon, 20 Jul 2015 00:44:38 +0300
Subject: [PATCH] Added Meson build definitions.

---
 freedesktop.org.xml.in  | 6 ++++++
 tests/list              | 2 ++
 tests/meson.build       | 3 +++
 tests/meson_options.txt | 1 +
 4 files changed, 12 insertions(+)
 create mode 100644 tests/meson.build
 create mode 100644 tests/meson_options.txt

diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 71cfab9..d1b58c6 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -5594,6 +5594,12 @@ command to generate the output files.
     <glob pattern="*.m"/>
     <alias type="text/x-octave"/>
   </mime-type>
+  <mime-type type="text/x-meson">
+    <_comment>Meson source code</_comment>
+    <glob pattern="meson.build"/>
+    <glob pattern="meson_options.txt"/>
+    <sub-class-of type="text/plain"/>
+  </mime-type>
   <mime-type type="text/x-modelica">
     <_comment>Modelica model</_comment>
     <sub-class-of type="text/plain"/>
diff --git a/tests/list b/tests/list
index f116e6f..88de7a4 100644
--- a/tests/list
+++ b/tests/list
@@ -455,6 +455,8 @@ text.ps application/postscript
 text.ps.gz application/x-gzpostscript ox
 text.PS.gz application/x-gzpostscript oxo
 test.cmake text/x-cmake ox
+meson.build text/x-meson
+meson_options.txt text/x-meson
 bluerect.mdi image/vnd.ms-modi
 Stallman_Richard_-_The_GNU_Manifesto.fb2 application/x-fictionbook+xml
 Stallman_Richard_-_The_GNU_Manifesto.fb2.zip application/x-zip-compressed-fb2
diff --git a/tests/meson.build b/tests/meson.build
new file mode 100644
index 0000000..fd49bbf
--- /dev/null
+++ b/tests/meson.build
@@ -0,0 +1,3 @@
+project('sample', 'c')
+
+executable('testprog', 'prog.c')
diff --git a/tests/meson_options.txt b/tests/meson_options.txt
new file mode 100644
index 0000000..745d61e
--- /dev/null
+++ b/tests/meson_options.txt
@@ -0,0 +1 @@
+option('sampleoption', type : 'boolean', value : false)
-- 
2.1.4