WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
51642
Add WinCE support to build-webkit
https://bugs.webkit.org/show_bug.cgi?id=51642
Summary
Add WinCE support to build-webkit
Patrick R. Gansterer
Reported
2010-12-27 06:39:48 PST
see patch
Attachments
Patch
(5.92 KB, patch)
2010-12-27 06:42 PST
,
Patrick R. Gansterer
ddkilzer
: review-
Details
Formatted Diff
Diff
Patch
(6.22 KB, patch)
2010-12-30 14:25 PST
,
Patrick R. Gansterer
ddkilzer
: review+
ddkilzer
: commit-queue-
Details
Formatted Diff
Diff
Patch
(6.26 KB, patch)
2011-01-03 12:06 PST
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Patrick R. Gansterer
Comment 1
2010-12-27 06:42:19 PST
Created
attachment 77500
[details]
Patch
Eric Seidel (no email)
Comment 2
2010-12-28 14:02:07 PST
Comment on
attachment 77500
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=77500&action=review
> Tools/Scripts/build-webkit:522 > + exit exitStatus($result) if exitStatus($result);
Why does WinCE short-circut the rest of the build-webkit infrastructure? That seems like a bad idea long-term.
Eric Seidel (no email)
Comment 3
2010-12-28 14:02:18 PST
build-webkit is kinda a disaster these days.
Patrick R. Gansterer
Comment 4
2010-12-28 14:07:35 PST
(In reply to
comment #2
)
> (From update of
attachment 77500
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=77500&action=review
> > > Tools/Scripts/build-webkit:522 > > + exit exitStatus($result) if exitStatus($result); > > Why does WinCE short-circut the rest of the build-webkit infrastructure? That seems like a bad idea long-term.
I do the same as EFL port, which uses CMake too. (In reply to
comment #3
)
> build-webkit is kinda a disaster these days.
I don't want to use it, but i need it for the buildbot. An alternative is to extend the buildbot config, but I'm not sure if that's a better idea?
Eric Seidel (no email)
Comment 5
2010-12-28 14:14:19 PST
The correct solution is to use build-webkit. But we (as a project) need to continue re-factoring and cleaning it up. Eventually maybe we'll re-write it in a cleaner language. :)
Patrick R. Gansterer
Comment 6
2010-12-28 14:17:28 PST
(In reply to
comment #5
)
> The correct solution is to use build-webkit. But we (as a project) need to continue re-factoring and cleaning it up. Eventually maybe we'll re-write it in a cleaner language. :)
+1, but any "short term" solution for this? my buildbot machine is waiting and only needs the "build scripts" to start working ;-)
David Kilzer (:ddkilzer)
Comment 7
2010-12-30 14:00:23 PST
Comment on
attachment 77500
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=77500&action=review
r- to clean up variable usage in buildCMakeProject().
>>> Tools/Scripts/build-webkit:522 >>> + exit exitStatus($result) if exitStatus($result); >> >> Why does WinCE short-circut the rest of the build-webkit infrastructure? That seems like a bad idea long-term. > > I do the same as EFL port, which uses CMake too. > > (In reply to
comment #3
)
This is fine IMO.
> Tools/Scripts/webkitdirs.pm:1454 > + $makeArgs .= "--config Debug";
I think this should have a space at the beginning of the string (before "--config").
> Tools/Scripts/webkitdirs.pm:1456 > + $makeArgs .= "--config Release";
This should also have a space at the beginning of the string. Or are these cmake arguments that must come before the "--" argument? If so, they should really be in their own variable, not prepended to $makeArgs.
> Tools/Scripts/webkitdirs.pm:1459 > + $makeArgs .= "-- -j" . numberOfCPUs() if ($makeArgs !~ m/-j\s*\d+/);
Why is the empty "--" used here? That makes this code path different than the previous code path. I see, you changed $make to "$cmakebin --build ." below, which means you need to pass arguments to make after "--", right? I think it would be clearer to add the "--" to the $make command so that $makeArgs doesn't need to add it.
> Tools/Scripts/webkitdirs.pm:1469 > + my $make = $cmakebin . " --build .";
Add " --" to the end of the $make string here so it doesn't have to be added to $makeArgs in special places.
> Tools/Scripts/webkitdirs.pm:1476 > + $makeArgs = "-- " . $1;
This change is not needed if " --" is prepended to $make above.
Patrick R. Gansterer
Comment 8
2010-12-30 14:06:53 PST
Comment on
attachment 77500
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=77500&action=review
I'll create a new patch.
>> Tools/Scripts/webkitdirs.pm:1456 >> + $makeArgs .= "--config Release"; > > This should also have a space at the beginning of the string. > > Or are these cmake arguments that must come before the "--" argument? If so, they should really be in their own variable, not prepended to $makeArgs.
CMake passes _everything_ after "--" to the make tool, so the --config needs to be before it. A new variable makes sense!
Patrick R. Gansterer
Comment 9
2010-12-30 14:25:39 PST
Created
attachment 77698
[details]
Patch
David Kilzer (:ddkilzer)
Comment 10
2011-01-03 11:53:25 PST
Comment on
attachment 77698
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=77698&action=review
r=me, but you need to fix up the space before the "-j", and please consider renaming the $make variable.
> Tools/Scripts/webkitdirs.pm:1465 > + $makeArgs .= "-j" . numberOfCPUs() if ($makeArgs !~ m/-j\s*\d+/);
Still need a space before the "-j" here: " -j".
> Tools/Scripts/webkitdirs.pm:1475 > - my $make = "make"; > + my $make = $cmakebin . " --build .";
Nit: Using $make here is now confusing. I would rename $make to something like $cmakeBuildCommand.
> Tools/Scripts/webkitdirs.pm:1511 > + $result = system "$make $cmakeBuildArgs";
Renaming $make to $cmakeBuildCommand would make this read better: $result = system "$cmakeBuildCommand $cmakeBuildArgs";
Patrick R. Gansterer
Comment 11
2011-01-03 12:06:25 PST
Created
attachment 77834
[details]
Patch
David Kilzer (:ddkilzer)
Comment 12
2011-01-03 12:09:07 PST
Comment on
attachment 77834
[details]
Patch r=me Thanks!
WebKit Commit Bot
Comment 13
2011-01-03 13:04:35 PST
Comment on
attachment 77834
[details]
Patch Clearing flags on attachment: 77834 Committed
r74928
: <
http://trac.webkit.org/changeset/74928
>
WebKit Commit Bot
Comment 14
2011-01-03 13:04:42 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug