Changes between Version 9 and Version 10 of BuildingCairoOnWindows
- Timestamp:
- Nov 25, 2008, 9:47:28 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingCairoOnWindows
v9 v10 8 8 == Required Libraries == 9 9 Just like the CoreGraphics Windows and Mac build, you must have the QuickTime SDK installed. In addition, you will need to manually obtain the following libraries: 10 * [http://gnuwin32.sourceforge.net/packages/giflib.htm GIFLIB] - GIF libraries (both the -bin and -lib packges). 10 * [http://gnuwin32.sourceforge.net/packages/giflib.htm GIFLIB] - GIF libraries (both the -bin and -lib packges). These are statically linked, so you don't need to ship dlls. 11 11 * [http://ftp.de.debian.org/debian/pool/main/libj/libjpeg6b/libjpeg6b_6b.orig.tar.gz libJPEG] - JPEG libraries. Since all existing win32 versions of this library seem to be missing important patches, I would recommend downloading the source [http://ftp.de.debian.org/debian/pool/main/libj/libjpeg6b/libjpeg6b_6b.orig.tar.gz source tarball], then apply the [http://ftp.de.debian.org/debian/pool/main/libj/libjpeg6b/libjpeg6b_6b-13.diff.gz debian patches]. You can then build it from the DOS shell using the included Makefile.vc. I generally build the static library and link it directly to WebKit. 12 12 * [http://gnuwin32.sourceforge.net/packages/libpng.htm libPNG] - PNG libraries (both the -bin and -lib packages). 13 13 * [http://www.gtk.org/download-windows.html Cairo] - Cairo libraries (both the -bin and -dev packages). 14 * [http://curl.haxx.se/ cURL] - Curl software. I generally build this from source. 14 15 15 Once you have them, unpack them someplace (such as C:\graphics_formats) and add the underlying {{{include}}} and {{{lib}}} directories to the Visual Studio Directory list. 16 For convenience, I have bundled up my copies of these items for easy [http://idisk.mac.com/bfulgham-Public/requirements.zip download]. 17 18 Once you have them, unpack them someplace (such as C:\WebKit\requirements) and add the underlying {{{include}}} and {{{lib}}} directories to the Visual Studio Directory list. 16 19 17 20 == Building from within Visual Studio == … … 23 26 You must update the WebCore/config.h file to indicate that you wish to build with Cairo. 24 27 {{{ 28 #if PLATFORM(WIN) 25 29 #if 0 26 27 #if PLATFORM(WIN)28 30 // Safari-Style build 29 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 130 #define WTF_USE_NPOBJECT 131 31 #define WTF_PLATFORM_CG 1 32 32 #undef WTF_PLATFORM_CAIRO 33 33 #define WTF_USE_CFNETWORK 1 34 #undef WTF_USE_CURL 35 36 #else 37 38 // Cairo-based (all-redistributable) 39 #define WTF_PLATFORM_CAIRO 1 40 #undef WTF_PLATFORM_CG 41 #define WTF_USE_CURL 1 42 #undef WTF_USE_CFNETWORK 43 44 #endif 45 46 // These are consistent across both builds 34 47 #undef WTF_USE_WININET 35 48 #define WTF_PLATFORM_CF 1 … … 37 50 #endif 38 51 39 #else40 41 #if PLATFORM(WIN)42 #if 143 // Cairo-based (stock everything else)44 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 145 #define WTF_USE_NPOBJECT 146 #undef WTF_USE_CURL47 #define WTF_PLATFORM_CAIRO 148 #define WTF_USE_CFNETWORK 149 #undef WTF_USE_WININET50 #define WTF_PLATFORM_CF 151 #define WTF_USE_PTHREADS 052 #else53 // All-redistributable54 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 155 #define WTF_USE_NPOBJECT 156 #define WTF_USE_CURL 157 #define WTF_PLATFORM_CAIRO 158 #undef WTF_USE_CFNETWORK59 #undef WTF_USE_WININET60 #define WTF_PLATFORM_CF 161 #define WTF_USE_PTHREADS 062 #endif63 #endif64 52 65 53 #endif