RESOLVED FIXED 170267
Support tvOS and watchOS in webkitdirs.pm
https://bugs.webkit.org/show_bug.cgi?id=170267
Summary Support tvOS and watchOS in webkitdirs.pm
Aakash Jain
Reported 2017-03-29 19:25:24 PDT
webkitdirs.pm should support watchOS and tvOS.
Attachments
Proposed patch (4.37 KB, patch)
2017-03-29 19:31 PDT, Aakash Jain
ap: review+
Updated patch (4.45 KB, patch)
2017-03-30 14:36 PDT, Aakash Jain
no flags
Aakash Jain
Comment 1 2017-03-29 19:31:36 PDT
Created attachment 305823 [details] Proposed patch
Alexey Proskuryakov
Comment 2 2017-03-29 20:35:13 PDT
Comment on attachment 305823 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=305823&action=review > Tools/Scripts/webkitdirs.pm:469 > + if (checkForArgumentAndRemoveFromARGV("--tv-device")) { I wonder if it would be better to have "os" in the option name, for consistency with ios. > Tools/Scripts/webkitdirs.pm:1353 > + return isIOSWebKit() || isTVOSWebKit() || isWATCHOSWebKit(); Double space here.
Daniel Bates
Comment 3 2017-03-29 20:44:54 PDT
Comment on attachment 305823 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=305823&action=review > Tools/Scripts/webkitdirs.pm:105 > + TVOS => "tvOS", TVOS => tvOS > Tools/Scripts/webkitdirs.pm:106 > + WATCHOS => "watchOS", WATCHOS => watchOS > Tools/Scripts/webkitdirs.pm:471 > + $xcodeSDK ||= $hasInternalSDK ? 'appletvos.internal' : 'appletvos'; ' => " > Tools/Scripts/webkitdirs.pm:478 > + $xcodeSDK ||= $hasInternalSDK ? 'watchos.internal' : 'watchos'; Ditto. > Tools/Scripts/webkitdirs.pm:504 > + return "appletvos" if $xcodeSDK =~ /appletvos/i; Please sort the added lines. > Tools/Scripts/webkitdirs.pm:1343 > + return portName() eq TVOS; TVOS => tvOS > Tools/Scripts/webkitdirs.pm:1346 > +sub isWATCHOSWebKit() isWatchOSWebKit() > Tools/Scripts/webkitdirs.pm:1348 > + return portName() eq WATCHOS; WATCHOS => watchOS
Aakash Jain
Comment 4 2017-03-30 14:36:54 PDT
Created attachment 305905 [details] Updated patch Incorporated review comments.
WebKit Commit Bot
Comment 5 2017-03-30 15:18:25 PDT
Comment on attachment 305905 [details] Updated patch Clearing flags on attachment: 305905 Committed r214631: <http://trac.webkit.org/changeset/214631>
WebKit Commit Bot
Comment 6 2017-03-30 15:18:26 PDT
All reviewed patches have been landed. Closing bug.
Aakash Jain
Comment 7 2017-04-05 12:04:35 PDT
Followup commit to rename isIOSLikeWebKit to isEmbeddedWebKit. https://trac.webkit.org/changeset/214957/webkit
Note You need to log in before you can comment on or make changes to this bug.