Bug 27532 - [WinCairo] Correct Build Dependencies
Summary: [WinCairo] Correct Build Dependencies
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 00:05 PDT by Brent Fulgham
Modified: 2009-07-24 10:51 PDT (History)
1 user (show)

See Also:


Attachments
Small set of conditionals around Apple-specific headers. (3.23 KB, patch)
2009-07-22 00:14 PDT, Brent Fulgham
mrowe: review-
Details | Formatted Diff | Diff
Revised per bdash's comments (3.60 KB, patch)
2009-07-24 09:33 PDT, Brent Fulgham
hyatt: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2009-07-22 00:05:04 PDT
After setting up a new build environment, I decided to try building using only non-Apple dependencies.  This revealed a few placed in the tree where CFNetwork and CG headers are being referenced, but not used, in the Windows Cairo build.

This patch cleans up these places so that the full WebKit project can be built without using the WebKitSupportLibrary dependencies.
Comment 1 Brent Fulgham 2009-07-22 00:14:29 PDT
Created attachment 33247 [details]
Small set of conditionals around Apple-specific headers.
Comment 2 Eric Seidel (no email) 2009-07-23 23:21:00 PDT
Comment on attachment 33247 [details]
Small set of conditionals around Apple-specific headers.

LGTM.
Comment 3 Mark Rowe (bdash) 2009-07-24 00:32:02 PDT
Rolled out in r46325 as this broke the Windows build.
Comment 4 Mark Rowe (bdash) 2009-07-24 00:33:47 PDT
Comment on attachment 33247 [details]
Small set of conditionals around Apple-specific headers.

> Index: WebCore/platform/graphics/win/SimpleFontDataWin.cpp
> ===================================================================
> --- WebCore/platform/graphics/win/SimpleFontDataWin.cpp	(revision 46148)
> +++ WebCore/platform/graphics/win/SimpleFontDataWin.cpp	(working copy)
> @@ -37,10 +37,14 @@
>  #include <wtf/MathExtras.h>
>  #include <unicode/uchar.h>
>  #include <unicode/unorm.h>
> +#if PLATFORM(CG)
>  #include <ApplicationServices/ApplicationServices.h>
> +#endif
>  #include <mlang.h>
>  #include <tchar.h>
> +#if PLATFORM(CG)
>  #include <WebKitSystemInterface/WebKitSystemInterface.h>
> +#endif

Please don't add #if's in the middle of a block of #include's like this.  The #include's should be sorted, and any #if'd #include's should be in separate paragraphs at the end.

> Index: WebKit/win/DefaultDownloadDelegate.h
> ===================================================================
> --- WebKit/win/DefaultDownloadDelegate.h	(revision 46148)
> +++ WebKit/win/DefaultDownloadDelegate.h	(working copy)
> @@ -28,7 +28,9 @@
>  #include "COMPtr.h"
>  #include "WebKit.h"
>  
> +#if PLATFORM(CFNETWORK)
>  #include <CFNetwork/CFURLDownloadPriv.h>
> +#endif
>  #include <wtf/HashSet.h>

Same comment applies here.

> Index: WebKit/win/WebDownload.h
> ===================================================================
> --- WebKit/win/WebDownload.h	(revision 46148)
> +++ WebKit/win/WebDownload.h	(working copy)
> @@ -29,7 +29,9 @@
>  #include "COMPtr.h"
>  #include "WebKit.h"
>  
> +#if PLATFORM(CFNETWORK)
>  #include <CFNetwork/CFURLDownloadPriv.h>
> +#endif
>  #include <WebCore/PlatformString.h>
>  #include <wtf/RetainPtr.h>

And here.

>  
> Index: WebKit/win/WebMutableURLRequest.cpp
> ===================================================================
> --- WebKit/win/WebMutableURLRequest.cpp	(revision 46148)
> +++ WebKit/win/WebMutableURLRequest.cpp	(working copy)
> @@ -30,7 +30,9 @@
>  #include "WebKit.h"
>  #include "MarshallingHelpers.h"
>  #include "WebKit.h"
> +#if PLATFORM(CFNETWORK)
>  #include <CFNetwork/CFURLRequestPriv.h>
> +#endif
>  #pragma warning(push, 0)
>  #include <WebCore/BString.h>
>  #include <WebCore/COMPtr.h>


And here.

Marking as r- as this broke the build.
Comment 5 Brent Fulgham 2009-07-24 09:33:21 PDT
Created attachment 33455 [details]
Revised per bdash's comments

Corrected improper use of PLATFORM(CFNETWORK) to USE(CFNETWORK).

Corrected #include ordering.
Comment 6 Dave Hyatt 2009-07-24 09:46:13 PDT
Comment on attachment 33455 [details]
Revised per bdash's comments

r=me
Comment 7 Brent Fulgham 2009-07-24 10:31:28 PDT
Landed in http://trac.webkit.org/changeset/46359.
Comment 8 Darin Adler 2009-07-24 10:51:06 PDT
Conditional #if should be in separate paragraph.