Bug 139695 - [iOS] WTF fails to build with public SDK due to missing header CPAggregateDictionary.h
Summary: [iOS] WTF fails to build with public SDK due to missing header CPAggregateDic...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad iOS 8.1
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-16 12:34 PST by Daniel Bates
Modified: 2014-12-16 13:46 PST (History)
6 users (show)

See Also:


Attachments
Patch (6.97 KB, patch)
2014-12-16 12:38 PST, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch (1.19 KB, patch)
2014-12-16 13:26 PST, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch (1.76 KB, patch)
2014-12-16 13:41 PST, Daniel Bates
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2014-12-16 12:34:49 PST
Following the patch for bug #139652, WTF failed to build with the public iOS SDK since the patch depends on the existence of header AppSupport/CPAggregateDictionary.h, which does not exist in the public iOS SDK. We should create a SPI wrapper header for CPAggregateDictionary.h that includes AppSupport/CPAggregateDictionary.h and forward declares the applicable SPI functions when building with the Apple Internal SDK and public iOS SDK, respectively.
Comment 1 Daniel Bates 2014-12-16 12:38:19 PST
Created attachment 243377 [details]
Patch
Comment 2 Chris Dumez 2014-12-16 13:14:17 PST
Comment on attachment 243377 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=243377&action=review

> Source/WTF/wtf/ios/FeatureCounter.mm:29
>  #if PLATFORM(IOS)

Why cannot we just and "&& USE(APPLE_INTERNAL_SDK)" here?
Comment 3 Daniel Bates 2014-12-16 13:22:47 PST
(In reply to comment #2)
> Comment on attachment 243377 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=243377&action=review
> 
> > Source/WTF/wtf/ios/FeatureCounter.mm:29
> >  #if PLATFORM(IOS)
> 
> Why cannot we just and "&& USE(APPLE_INTERNAL_SDK)" here?

We can. I assumed we wanted to count features in WebKit built with the public SDK.
Comment 4 Chris Dumez 2014-12-16 13:24:15 PST
Comment on attachment 243377 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=243377&action=review

>>> Source/WTF/wtf/ios/FeatureCounter.mm:29
>>>  #if PLATFORM(IOS)
>> 
>> Why cannot we just and "&& USE(APPLE_INTERNAL_SDK)" here?
> 
> We can. I assumed we wanted to count features in WebKit built with the public SDK.

I don't believe we want to do feature counting for anything else than Safari / MobileSafari at the moment.
Comment 5 Daniel Bates 2014-12-16 13:26:35 PST
Created attachment 243384 [details]
Patch
Comment 6 Daniel Bates 2014-12-16 13:27:50 PST
Comment on attachment 243384 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=243384&action=review

> Source/WTF/ChangeLog:9
> +        as we only interested in counting features in builds of iOS WebKit that were built

we only => we are only
Comment 7 Chris Dumez 2014-12-16 13:28:12 PST
Comment on attachment 243384 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=243384&action=review

> Source/WTF/wtf/ios/FeatureCounter.mm:29
> +#if PLATFORM(IOS) && USE(APPLE_INTERNAL_SDK)

The #endif comment should be updated.

We should also update the #if check in FeatureCounter.cpp otherwise we are going to get linking errors with the public SDK on iOS
Comment 8 Daniel Bates 2014-12-16 13:41:46 PST
Created attachment 243387 [details]
Patch
Comment 9 Chris Dumez 2014-12-16 13:44:00 PST
Comment on attachment 243387 [details]
Patch

r=me, thanks.
Comment 10 Daniel Bates 2014-12-16 13:46:49 PST
Comment on attachment 243387 [details]
Patch

Clearing flags on attachment: 243387

Committed r177394: <http://trac.webkit.org/changeset/177394>
Comment 11 Daniel Bates 2014-12-16 13:46:55 PST
All reviewed patches have been landed.  Closing bug.