[gxml] * distcheck: make sure that we have a C string available in vala so we can -D it
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] * distcheck: make sure that we have a C string available in vala so we can -D it
- Date: Thu, 23 Aug 2012 00:08:19 +0000 (UTC)
commit d818f8e5e88aa859fa8ba24e1442355a1f23b67c
Author: Richard Schwarting <aquarichy gmail com>
Date: Wed Aug 22 20:06:59 2012 -0400
* distcheck: make sure that we have a C string available in vala so we can -D it
vapi/gxml-test.vapi | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/vapi/gxml-test.vapi b/vapi/gxml-test.vapi
new file mode 100644
index 0000000..f9f1d0f
--- /dev/null
+++ b/vapi/gxml-test.vapi
@@ -0,0 +1,13 @@
+/* Solution provided by nemequ in #vala so gxml_test can find its data
+ * files even when we use "make distcheck" which doesn't copy them
+ * into its _build/test/ dir, where it runs gxml_test from. Please
+ * recommend a way to copy those files if you know one so we can avoid
+ * this.
+ *
+ * This defines a string for Vala that we can then at compile time use
+ * "-X -DTEST_DIR=$(top_srcdir)/test so gxml_test can find its
+ * tests, similar to how libgdata does it in C. */
+namespace GXml {
+ [CCode (cname = "TEST_DIR")]
+ public const string TEST_DIR;
+}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]