Bug 143219 - Allow building on Windows without Cygwin
Summary: Allow building on Windows without Cygwin
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-30 07:45 PDT by Myles C. Maxfield
Modified: 2015-03-30 16:59 PDT (History)
3 users (show)

See Also:


Attachments
Patch (16.56 KB, patch)
2015-03-30 07:51 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (16.52 KB, patch)
2015-03-30 09:25 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (16.54 KB, patch)
2015-03-30 09:54 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (17.70 KB, patch)
2015-03-30 15:22 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (17.70 KB, patch)
2015-03-30 15:25 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (17.73 KB, patch)
2015-03-30 15:31 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (17.83 KB, patch)
2015-03-30 15:42 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2015-03-30 07:45:58 PDT
Allow building on Windows without Cygwin
Comment 1 Myles C. Maxfield 2015-03-30 07:51:10 PDT
Created attachment 249728 [details]
Patch
Comment 2 Myles C. Maxfield 2015-03-30 08:49:33 PDT
Comment on attachment 249728 [details]
Patch

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

> Source/WebCore/DerivedSources.make:1196
> +	$(DELETE)InspectorOverlayPage.combined.html

Space
Comment 3 Brent Fulgham 2015-03-30 09:06:42 PDT
Comment on attachment 249728 [details]
Patch

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

>> Source/WebCore/DerivedSources.make:1196
>> +	$(DELETE)InspectorOverlayPage.combined.html
> 
> Space

Can you replied the patch with this fix so we can confirm EWS is happy?

> Source/WebCore/WebCore.vcxproj/migrate-scripts.pl:-64
> -system('/usr/bin/make', '-f', $MIGRATE_SCRIPTS_MAKEFILE, '-j', $NUMCPUS) and die "Failed to build $MIGRATE_SCRIPTS_MAKEFILE: $!";

Nice change! I never noticed this was a Makefile to copy five files.

> Source/WebCore/bindings/scripts/preprocessor.pm:58
> +                push(@args, qw(/EP));

Too much indentation.

> Source/WebCore/bindings/scripts/preprocessor.pm:60
> +                push(@args, qw(-E -P -x c++));

Ditto.
Comment 4 Brent Fulgham 2015-03-30 09:07:14 PDT
Comment on attachment 249728 [details]
Patch

This looks great! Please upload once more with that spacing fix so we can confirm it builds on all platforms. Otherwise, r+.
Comment 5 Myles C. Maxfield 2015-03-30 09:25:14 PDT
Created attachment 249736 [details]
Patch
Comment 6 Myles C. Maxfield 2015-03-30 09:54:36 PDT
Created attachment 249740 [details]
Patch
Comment 7 Myles C. Maxfield 2015-03-30 15:22:45 PDT
Created attachment 249771 [details]
Patch
Comment 8 Myles C. Maxfield 2015-03-30 15:25:12 PDT
Created attachment 249772 [details]
Patch
Comment 9 Myles C. Maxfield 2015-03-30 15:31:54 PDT
Created attachment 249775 [details]
Patch
Comment 10 Myles C. Maxfield 2015-03-30 15:42:13 PDT
Created attachment 249777 [details]
Patch
Comment 11 Brent Fulgham 2015-03-30 16:15:06 PDT
Comment on attachment 249777 [details]
Patch

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

Looks good. Once EWS is happy go ahead and land it! Thanks!

> Source/WebCore/DerivedSources.make:689
> +    DELETE = cmd //C del

Why two slashes here? I would expect "/C" or maybe "\/C", but not "//C"

> Source/WebCore/WebCore.vcxproj/WebCoreGenerated.make:4
> +    @echo XXWebCoreGeneratedXX > "%ConfigurationBuildDir%\buildfailed"

Did an EOL change get made here? These seem identical to the original state. Maybe double-check EOL is correct before checking in.
Comment 12 Myles C. Maxfield 2015-03-30 16:18:16 PDT
Comment on attachment 249777 [details]
Patch

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

Overall comments

>> Source/WebCore/DerivedSources.make:689
>> +    DELETE = cmd //C del
> 
> Why two slashes here? I would expect "/C" or maybe "\/C", but not "//C"

http://stackoverflow.com/questions/2463037/calling-windows-commands-e-g-del-from-a-gnu-makefile
Comment 13 Myles C. Maxfield 2015-03-30 16:18:22 PDT
View in context: https://bugs.webkit.org/attachment.cgi?id=249777&action=review

Overall comments

>> Source/WebCore/DerivedSources.make:689
>> +    DELETE = cmd //C del
> 
> Why two slashes here? I would expect "/C" or maybe "\/C", but not "//C"

http://stackoverflow.com/questions/2463037/calling-windows-commands-e-g-del-from-a-gnu-makefile
Comment 14 Myles C. Maxfield 2015-03-30 16:22:41 PDT
Comment on attachment 249777 [details]
Patch

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

>> Source/WebCore/WebCore.vcxproj/WebCoreGenerated.make:4
>> +    @echo XXWebCoreGeneratedXX > "%ConfigurationBuildDir%\buildfailed"
> 
> Did an EOL change get made here? These seem identical to the original state. Maybe double-check EOL is correct before checking in.

This is migrating from Windows line endings to Unix line endings, in accordance with our style.
Comment 15 Brent Fulgham 2015-03-30 16:24:07 PDT
(In reply to comment #13)
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=249777&action=review
> 
> Overall comments
> 
> >> Source/WebCore/DerivedSources.make:689
> >> +    DELETE = cmd //C del
> > 
> > Why two slashes here? I would expect "/C" or maybe "\/C", but not "//C"
> 
> http://stackoverflow.com/questions/2463037/calling-windows-commands-e-g-del-
> from-a-gnu-makefile

Did you see the last comment in that thread? Maybe GNU make recognizes "//" as an escaped "/" flag, but "\/" is probably clearer to people familiar with escaping syntax in C, shell, etc.
Comment 16 Myles C. Maxfield 2015-03-30 16:38:02 PDT
(In reply to comment #15)
> (In reply to comment #13)
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=249777&action=review
> > 
> > Overall comments
> > 
> > >> Source/WebCore/DerivedSources.make:689
> > >> +    DELETE = cmd //C del
> > > 
> > > Why two slashes here? I would expect "/C" or maybe "\/C", but not "//C"
> > 
> > http://stackoverflow.com/questions/2463037/calling-windows-commands-e-g-del-
> > from-a-gnu-makefile
> 
> Did you see the last comment in that thread? Maybe GNU make recognizes "//"
> as an escaped "/" flag, but "\/" is probably clearer to people familiar with
> escaping syntax in C, shell, etc.

I didn't see that. I'll update after the patch gets landed.
Comment 17 WebKit Commit Bot 2015-03-30 16:59:49 PDT
Comment on attachment 249777 [details]
Patch

Clearing flags on attachment: 249777

Committed r182164: <http://trac.webkit.org/changeset/182164>
Comment 18 WebKit Commit Bot 2015-03-30 16:59:54 PDT
All reviewed patches have been landed.  Closing bug.