Changes between Version 9 and Version 10 of BuildingCairoOnWindows


Ignore:
Timestamp:
Nov 25, 2008 9:47:28 PM (14 years ago)
Author:
bfulgham@macports.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingCairoOnWindows

    v9 v10  
    88== Required Libraries ==
    99Just 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.
    1111 * [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.
    1212 * [http://gnuwin32.sourceforge.net/packages/libpng.htm libPNG] - PNG libraries (both the -bin and -lib packages).
    1313 * [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.
    1415
    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.
     16For convenience, I have bundled up my copies of these items for easy [http://idisk.mac.com/bfulgham-Public/requirements.zip download].
     17
     18Once 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.
    1619
    1720== Building from within Visual Studio ==
     
    2326You must update the WebCore/config.h file to indicate that you wish to build with Cairo.
    2427{{{
     28#if PLATFORM(WIN)
    2529#if 0
    26 
    27 #if PLATFORM(WIN)
    2830// Safari-Style build
    29 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 1
    30 #define WTF_USE_NPOBJECT 1
    3131#define WTF_PLATFORM_CG 1
    3232#undef WTF_PLATFORM_CAIRO
    3333#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
    3447#undef WTF_USE_WININET
    3548#define WTF_PLATFORM_CF 1
     
    3750#endif
    3851
    39 #else
    40 
    41 #if PLATFORM(WIN)
    42 #if 1
    43 // Cairo-based (stock everything else)
    44 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 1
    45 #define WTF_USE_NPOBJECT 1
    46 #undef WTF_USE_CURL
    47 #define WTF_PLATFORM_CAIRO 1
    48 #define WTF_USE_CFNETWORK 1
    49 #undef WTF_USE_WININET
    50 #define WTF_PLATFORM_CF 1
    51 #define WTF_USE_PTHREADS 0
    52 #else
    53 // All-redistributable
    54 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 1
    55 #define WTF_USE_NPOBJECT 1
    56 #define WTF_USE_CURL 1
    57 #define WTF_PLATFORM_CAIRO 1
    58 #undef WTF_USE_CFNETWORK
    59 #undef WTF_USE_WININET
    60 #define WTF_PLATFORM_CF 1
    61 #define WTF_USE_PTHREADS 0
    62 #endif
    63 #endif
    6452
    6553#endif