[cairo-commit] 2 commits - boilerplate/check-link.c HACKING

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Sep 2 19:03:20 PDT 2008


 HACKING                  |    2 +-
 boilerplate/check-link.c |   24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)

New commits:
commit 78127c7fb43db9e020551b04d8f85e0bdcc4c894
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Sep 2 22:03:05 2008 -0400

    [boilerplate/check-link.c] Oops.  Add it.

diff --git a/boilerplate/check-link.c b/boilerplate/check-link.c
new file mode 100644
index 0000000..f164448
--- /dev/null
+++ b/boilerplate/check-link.c
@@ -0,0 +1,24 @@
+#define CAIRO_VERSION_H 1
+
+#include <cairo-boilerplate.h>
+
+/* get the "real" version info instead of dummy cairo-version.h */
+#undef CAIRO_VERSION_H
+#include "../cairo-version.h"
+
+#include <stdio.h>
+
+int
+main (void)
+{
+  printf ("Check linking to the just built cairo boilerplate library\n");
+  if (cairo_boilerplate_version () == CAIRO_VERSION) {
+    return 0;
+  } else {
+    fprintf (stderr,
+	     "Error: linked to cairo boilerplate version %s instead of %s\n",
+	     cairo_boilerplate_version_string (),
+	     CAIRO_VERSION_STRING);
+    return 1;
+  }
+}
commit bd9743b318c0f3a76f72d2e05eb71eb918acdfae
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Sep 2 22:01:37 2008 -0400

    [HACKING] Improve win32 note.

diff --git a/HACKING b/HACKING
index a69c450..80d9349 100644
--- a/HACKING
+++ b/HACKING
@@ -88,7 +88,7 @@ To bootstrap the build system run ./autogen.sh.  After that the
 regular "./configure; make; make install" sequence can be used.
 
 There is limited support for a win32 build system.
-See src/Makefile.win32.
+See Makefile.win32 files in various directories.
 
 
 ChangeLog


More information about the cairo-commit mailing list