2019-02-11 21:52:49 +01:00
|
|
|
From 3656db7fd23d166238cb8816c0d097095911b3fc Mon Sep 17 00:00:00 2001
|
2019-01-12 10:41:53 +01:00
|
|
|
From: Peter Seiderer <ps.report@gmx.net>
|
|
|
|
Date: Sat, 12 Jan 2019 10:22:38 +0100
|
|
|
|
Subject: [PATCH] meson.build: enable CPP include check only in case CPP
|
|
|
|
compiler is available
|
|
|
|
|
|
|
|
Drop hard meson C++/CPP dependency, only needed for the build-time
|
|
|
|
header inclusion test, build the test only in case C++/CPP compiler
|
|
|
|
is available.
|
|
|
|
|
2019-02-11 21:52:49 +01:00
|
|
|
Upstream: https://gitlab.freedesktop.org/libinput/libinput/commit/4516ba977c1e22d01da4cc50a8ebffa5d11d73f1
|
|
|
|
|
|
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
|
|
|
[Rebased on 1.12.6, add upstream link]
|
2019-01-12 10:41:53 +01:00
|
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
2019-02-11 21:52:49 +01:00
|
|
|
---
|
2019-01-12 10:41:53 +01:00
|
|
|
---
|
|
|
|
meson.build | 16 +++++++++-------
|
|
|
|
1 file changed, 9 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/meson.build b/meson.build
|
2019-02-11 21:52:49 +01:00
|
|
|
index 8127c674..86960d84 100644
|
2019-01-12 10:41:53 +01:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-project('libinput', 'c', 'cpp',
|
|
|
|
+project('libinput', 'c',
|
2019-02-11 21:52:49 +01:00
|
|
|
version : '1.12.6',
|
2019-01-12 10:41:53 +01:00
|
|
|
license : 'MIT/Expat',
|
|
|
|
default_options : [ 'c_std=gnu99', 'warning_level=2' ],
|
2019-02-11 21:52:49 +01:00
|
|
|
@@ -642,12 +642,14 @@ executable('test-build-linker',
|
2019-01-12 10:41:53 +01:00
|
|
|
include_directories : [includes_src, includes_include],
|
|
|
|
dependencies : [ dep_libinput, dep_libinput_util ],
|
|
|
|
install : false)
|
|
|
|
-# test including from C++
|
|
|
|
-executable('test-build-cxx',
|
|
|
|
- 'test/build-cxx.cc',
|
|
|
|
- dependencies : [dep_udev],
|
|
|
|
- include_directories : [includes_src, includes_include],
|
|
|
|
- install : false)
|
|
|
|
+# test including from C++ (in case CPP compiler is available)
|
|
|
|
+if add_languages('cpp', required: false)
|
|
|
|
+ executable('test-build-cxx',
|
|
|
|
+ 'test/build-cxx.cc',
|
|
|
|
+ dependencies : [dep_udev],
|
|
|
|
+ include_directories : [includes_src, includes_include],
|
|
|
|
+ install : false)
|
|
|
|
+endif
|
|
|
|
|
|
|
|
# This is the test suite runner, we allow disabling that one because of
|
|
|
|
# dependencies
|
|
|
|
--
|
|
|
|
2.20.1
|
|
|
|
|