[PATCH xorg-gtest 3/8] Add a meta-header xorg-gtest.h

Chase Douglas chase.douglas at canonical.com
Fri Mar 9 12:45:32 PST 2012


The header merely includes all the other headers. It will make building
xorg-gtest into each project easier.

Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
 configure.ac                    |    1 +
 include/Makefile.am             |    8 +++-----
 include/xorg/gtest/xorg-gtest.h |   35 +++++++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 5 deletions(-)
 create mode 100644 include/xorg/gtest/xorg-gtest.h

diff --git a/configure.ac b/configure.ac
index 9d04d40..1082886 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,7 @@ AS_IF([test "x$with_evemu" == xyes],
       [test "x$with_evemu" == xcheck],
       [PKG_CHECK_MODULES(EVEMU, utouch-evemu, [have_evemu=yes], [:])])
 AM_CONDITIONAL([HAVE_EVEMU], [test "x$have_evemu" = "xyes"])
+AS_IF([test "x$have_evemu" = xyes], [AC_DEFINE([HAVE_EVEMU])])
 
 AC_CONFIG_FILES([Makefile
                  data/Makefile
diff --git a/include/Makefile.am b/include/Makefile.am
index ffc7767..0256685 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -26,8 +26,6 @@
 nobase_include_HEADERS = \
 	xorg/gtest/environment.h \
 	xorg/gtest/process.h \
-	xorg/gtest/test.h
-
-if HAVE_EVEMU
-nobase_include_HEADERS += xorg/gtest/evemu/device.h
-endif
+	xorg/gtest/test.h \
+	xorg/gtest/evemu/device.h \
+	xorg/gtest/xorg-gtest.h
diff --git a/include/xorg/gtest/xorg-gtest.h b/include/xorg/gtest/xorg-gtest.h
new file mode 100644
index 0000000..dc7b803
--- /dev/null
+++ b/include/xorg/gtest/xorg-gtest.h
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ *
+ * X testing environment - Google Test environment feat. dummy x server
+ *
+ * Copyright (C) 2011, 2012 Canonical Ltd.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ ******************************************************************************/
+
+#include "environment.h"
+#include "process.h"
+#include "test.h"
+#include "window.h"
+
+#ifdef HAVE_EVEMU
+#include "evemu/device.h"
+#endif
-- 
1.7.9



More information about the xorg-devel mailing list