[cairo-commit] [cairo-www] src/download.mdwn src/visualstudio.mdwn

Carl Worth cworth at freedesktop.org
Wed Jul 4 02:18:16 PDT 2007


 src/download.mdwn     |    2 +-
 src/visualstudio.mdwn |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+), 1 deletion(-)

New commits:
commit b2e4a4db7bb52cb11e40befcc4cab82d061ffc00
Author: nis.martensen <nis.martensen at web.de>
Date:   Wed Jul 4 02:18:15 2007 -0700

    Newest cairo.zip is version 1.4.0

diff --git a/src/download.mdwn b/src/download.mdwn
index 5fd6570..9a3246a 100644
--- a/src/download.mdwn
+++ b/src/download.mdwn
@@ -47,7 +47,7 @@ From Daniel Keep:
 Go to [Tor Lillqvist's GTK+ for Windows
 page](http://www.gimp.org/%7Etml/gimp/win32/downloads.html)
 
-You want "cairo-1.0.4.zip", the binary distribution at "libpng 1.2.8",
+You want "cairo-1.4.0.zip", the binary distribution at "libpng 1.2.8",
 and "Zlib 1.2.3" (you can search on those strings to find them in the
 page). That _should_ be it. Just pop libcairo-2.dll, libpng13.dll and
 zlib1.dll into your working directory or system PATH, and away you go!
diff --git a/src/visualstudio.mdwn b/src/visualstudio.mdwn
new file mode 100644
index 0000000..b6e7a33
--- /dev/null
+++ b/src/visualstudio.mdwn
@@ -0,0 +1,48 @@
+For microsoft vs.net user, before build the cairo library, you need to create a header file "cairo-features.h",
+and than create a win32 dll project, add the requested source files into the project.
+
+You can get the win32 project from there: [The MSVC project of the cairo library](http://slinavlee.googlepages.com/)
+
+cairo-features.h for msvc using win32 font:
+
+    #ifndef CAIRO_FEATURES_H
+    #define CAIRO_FEATURES_H
+
+    #ifdef  __cplusplus
+    # define CAIRO_BEGIN_DECLS  extern "C" {
+    # define CAIRO_END_DECLS    }
+    #else
+    # define CAIRO_BEGIN_DECLS
+    # define CAIRO_END_DECLS
+    #endif
+
+    #ifndef cairo_public
+        #ifdef LIBCAIRO_EXPORTS
+            #define cairo_public __declspec(dllexport)
+        #else
+            #define cairo_public __declspec(dllimport)
+        #endif
+    #endif
+
+    #define CAIRO_VERSION_MAJOR 1
+    #define CAIRO_VERSION_MINOR 4
+    #define CAIRO_VERSION_MICRO 10
+
+    #define CAIRO_VERSION_STRING "1.4.10"
+
+    #define HAVE_WINDOWS_H 1
+
+    #define CAIRO_HAS_SVG_SURFACE 1
+    #define CAIRO_HAS_PDF_SURFACE 1
+    #define CAIRO_HAS_PS_SURFACE 1
+    #define CAIRO_HAS_WIN32_SURFACE 1
+    #define CAIRO_HAS_WIN32_FONT 1
+    #define CAIRO_HAS_PNG_FUNCTIONS 1
+
+    #define PACKAGE_NAME "cairo"
+    #define PACKAGE_TARNAME "cairo"
+    #define PACKAGE_VERSION "1.4.10"
+    #define PACKAGE_STRING "cairo 1.4.10"
+    #define PACKAGE_BUGREPORT "http://bugs.freedesktop.org/enter_bug.cgi?product=cairo"
+
+    #endif


More information about the cairo-commit mailing list