Bug 99284

Summary: Move framework and library linking into WebKit.xcconfig
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: PlatformAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: mitz, mrowe, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mrowe: review+

Description David Kilzer (:ddkilzer) 2012-10-14 19:35:21 PDT
Created attachment 168611 [details]
Patch

<http://webkit.org/b/00000>

Reviewed by NOBODY (OOPS!).

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj: Remove frameworks and
libraries from Xcode project file.

Source/WebKit/mac:

* Configurations/WebKit.xcconfig: Move frameworks and libraries
link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
---
 4 files changed, 24 insertions(+), 23 deletions(-)
Comment 1 WebKit Review Bot 2012-10-14 19:39:58 PDT
Attachment 168611 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/ChangeLog', u'Source/WebKit/..." exit_code: 1
Source/WebKit/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Source/WebKit/mac/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 2 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 2 Mark Rowe (bdash) 2012-10-14 21:48:42 PDT
Comment on attachment 168611 [details]
Patch

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

> Source/WebKit/mac/Configurations/WebKit.xcconfig:70
> +OTHER_LDFLAGS_BASE = -licucore -framework JavaScriptCore -framework QuartzCore -framework WebCore;

Is this really better than just leaving the shared ones in the usual place?
Comment 3 David Kilzer (:ddkilzer) 2012-10-15 10:09:06 PDT
(In reply to comment #2)
> (From update of attachment 168611 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=168611&action=review
> 
> > Source/WebKit/mac/Configurations/WebKit.xcconfig:70
> > +OTHER_LDFLAGS_BASE = -licucore -framework JavaScriptCore -framework QuartzCore -framework WebCore;
> 
> Is this really better than just leaving the shared ones in the usual place?

I figured it was simpler to have everything specified in one location rather than having to rubberneck between the UI (Xcode project file) and WebKit.xcconfig.  It would make the rules simpler for anyone adding frameworks or libraries in the future.

I'm okay with leaving the shared ones in the project file, though.

Which do you prefer?
Comment 4 Eric Seidel (no email) 2012-10-15 12:49:04 PDT
Comment on attachment 168611 [details]
Patch

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

> Source/WebKit/mac/ChangeLog:4
> +        <http://webkit.org/b/00000>

Style bot no like you!
Comment 5 David Kilzer (:ddkilzer) 2012-10-15 13:44:47 PDT
(In reply to comment #4)
> (From update of attachment 168611 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=168611&action=review
> 
> > Source/WebKit/mac/ChangeLog:4
> > +        <http://webkit.org/b/00000>
> 
> Style bot no like you!

Yep.  I haven't had a chance to make webkit-patch understand how to replace my bug number placeholders in ChangeLogs when it attaches the patch.
Comment 6 David Kilzer (:ddkilzer) 2012-10-15 13:53:02 PDT
Committed r131350: <http://trac.webkit.org/changeset/131350>