Re: [webkit-dev] Building Chromium port of WebKit on Windows

2011-08-26 Thread Mikhail Naganov
OK, following setup instructions for the buildbot, I was able to
compile the port under Windows. Thanks again, Dimirti!

I've updated the Wiki page: https://trac.webkit.org/wiki/Chromium

On Thu, Aug 25, 2011 at 20:53, Peter Kasting  wrote:
> On Thu, Aug 25, 2011 at 10:31 AM, Dimitri Glazkov 
> wrote:
>>
>> FWIW, I use the former exclusively on Mac.
>
> Yes, please regard my comments as only applying to Windows.
> PK
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Building Chromium port of WebKit on Windows

2011-08-25 Thread Peter Kasting
On Thu, Aug 25, 2011 at 10:31 AM, Dimitri Glazkov wrote:

> FWIW, I use the former exclusively on Mac.
>

Yes, please regard my comments as only applying to Windows.

PK
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Building Chromium port of WebKit on Windows

2011-08-25 Thread Mikhail Naganov
To make things clear: my only intention for trying to build this port
was due to my patch failed to compile in it. I'm not advocating
towards using it for regular development. Perhaps, I would get the
same compile issue when building Chromium on Windows, but, as I
usually avoid using Windows, and haven't had a ready-to-use
configuration at that moment, I decided to try to build the port, to
make sure that this isn't a bot issue.

Dimitri, I'm currently following building the port using your
instructions for setting up a build bot, and it almost works, thank
you very much! I'll update docs later, after I'll finish with it.

On Thu, Aug 25, 2011 at 18:31, Dimitri Glazkov  wrote:
> On Thu, Aug 25, 2011 at 10:21 AM, Peter Kasting  wrote:
>> On Thu, Aug 25, 2011 at 10:07 AM, Mikhail Naganov 
>> wrote:
>>>
>>> I'm not sure we are on the same page. I'm talking about Chromium port
>>> of WebKit, where Chromium checkout is _inside_ WebKit's
>>> Source/WebKit/chromium, as opposed to when you have full WebKit
>>> checkout inside Chromium's third_party.
>>
>> Yes, we're saying always use the latter, as it lets you test the same things
>> and it's much more well-supported and tested :)
>
> FWIW, I use the former exclusively on Mac. I don't see a need for a
> typical WebKit developer who lives in WebCore to ever carry a Chromium
> checkout.
>
> :DG<
>
>
>> PK
>> ___
>> webkit-dev mailing list
>> webkit-dev@lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>
>>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Building Chromium port of WebKit on Windows

2011-08-25 Thread Dimitri Glazkov
On Thu, Aug 25, 2011 at 10:21 AM, Peter Kasting  wrote:
> On Thu, Aug 25, 2011 at 10:07 AM, Mikhail Naganov 
> wrote:
>>
>> I'm not sure we are on the same page. I'm talking about Chromium port
>> of WebKit, where Chromium checkout is _inside_ WebKit's
>> Source/WebKit/chromium, as opposed to when you have full WebKit
>> checkout inside Chromium's third_party.
>
> Yes, we're saying always use the latter, as it lets you test the same things
> and it's much more well-supported and tested :)

FWIW, I use the former exclusively on Mac. I don't see a need for a
typical WebKit developer who lives in WebCore to ever carry a Chromium
checkout.

:DG<


> PK
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Building Chromium port of WebKit on Windows

2011-08-25 Thread Peter Kasting
On Thu, Aug 25, 2011 at 10:07 AM, Mikhail Naganov wrote:

> I'm not sure we are on the same page. I'm talking about Chromium port
> of WebKit, where Chromium checkout is _inside_ WebKit's
> Source/WebKit/chromium, as opposed to when you have full WebKit
> checkout inside Chromium's third_party.


Yes, we're saying always use the latter, as it lets you test the same things
and it's much more well-supported and tested :)

PK
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Building Chromium port of WebKit on Windows

2011-08-25 Thread Mikhail Naganov
I'm not sure we are on the same page. I'm talking about Chromium port
of WebKit, where Chromium checkout is _inside_ WebKit's
Source/WebKit/chromium, as opposed to when you have full WebKit
checkout inside Chromium's third_party. Not sure the former
configuration makes much sense for Chromium developers, but I suppose
it is needed for Chromium port of WebKit to be recognized on par with
other ports.

I also usually have full checkout of WebKit in Chromium's third_party
and it works fine for me.

On Thu, Aug 25, 2011 at 17:55, Evan Martin  wrote:
> On Thu, Aug 25, 2011 at 9:24 AM, Peter Kasting  wrote:
>> The way I make this work is to set up a full Chromium checkout with a trunk
>> (rather than DEPS-controlled) WebKit checkout.  (There are some instructions
>> for this in the Chromium developer pages.)  Then I can use VS2008 to build
>> and test whatever I want.  And I use Cygwin.
>> I don't know much about trying to build the Chromium port with only a WebKit
>> (not Chrome) checkout, especially under Cygwin.  I don't know how many
>> people try to make that work.
>
> To elaborate on this, because it is also what I do and I recently
> answered some questions about how it works:
> - With a WebKit-inside-Chrome checkout you still get all of the same
> build targets, like DumpRenderTree.
> - The one downside is that you will be using WebKit with the Chromium
> DEPS, which sometimes diverge from the WebKit DEPS.  But the intent is
> for the dependency sets to stay the same, so they get back into sync
> quickly.  This only really affects you if you are making changes in a
> shared dependency (like Skia).
> - I suppose, now that I'm listing problems, another downside is that
> your build project files are larger which may slow down your IDE or
> eat more memory.  (This hasn't been an issue for me but I develop on
> Linux.)
>
> To summarize, you don't need to build WebKit as a separate checkout
> from Chrome to develop WebKit, which means if you get a Chrome build
> working you're good to go on WebKit as well.  As far as I understand
> it all the build-webkit scripts are just to make the bots happy.
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Building Chromium port of WebKit on Windows

2011-08-25 Thread Evan Martin
On Thu, Aug 25, 2011 at 9:24 AM, Peter Kasting  wrote:
> The way I make this work is to set up a full Chromium checkout with a trunk
> (rather than DEPS-controlled) WebKit checkout.  (There are some instructions
> for this in the Chromium developer pages.)  Then I can use VS2008 to build
> and test whatever I want.  And I use Cygwin.
> I don't know much about trying to build the Chromium port with only a WebKit
> (not Chrome) checkout, especially under Cygwin.  I don't know how many
> people try to make that work.

To elaborate on this, because it is also what I do and I recently
answered some questions about how it works:
- With a WebKit-inside-Chrome checkout you still get all of the same
build targets, like DumpRenderTree.
- The one downside is that you will be using WebKit with the Chromium
DEPS, which sometimes diverge from the WebKit DEPS.  But the intent is
for the dependency sets to stay the same, so they get back into sync
quickly.  This only really affects you if you are making changes in a
shared dependency (like Skia).
- I suppose, now that I'm listing problems, another downside is that
your build project files are larger which may slow down your IDE or
eat more memory.  (This hasn't been an issue for me but I develop on
Linux.)

To summarize, you don't need to build WebKit as a separate checkout
from Chrome to develop WebKit, which means if you get a Chrome build
working you're good to go on WebKit as well.  As far as I understand
it all the build-webkit scripts are just to make the bots happy.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Building Chromium port of WebKit on Windows

2011-08-25 Thread Peter Kasting
The way I make this work is to set up a full Chromium checkout with a trunk
(rather than DEPS-controlled) WebKit checkout.  (There are some instructions
for this in the Chromium developer pages.)  Then I can use VS2008 to build
and test whatever I want.  And I use Cygwin.

I don't know much about trying to build the Chromium port with only a WebKit
(not Chrome) checkout, especially under Cygwin.  I don't know how many
people try to make that work.

PK
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Building Chromium port of WebKit on Windows

2011-08-25 Thread Dimitri Glazkov
On Thu, Aug 25, 2011 at 6:45 AM, Mikhail Naganov  wrote:
> Hello Chromium port maintainers,

Back at you, Chromium port maintainer! :)

>
> In order to figure out why my patch was failing to compile on the
> Chromium WebKit bot, I went a long way of compiling the port on my
> machine. And it was a tough experience! As for the instructions on on
> how to do the build, I could only refer to this page:
> http://trac.webkit.org/wiki/Chromium and bot logs. And they were not
> enough for me, so I would like to ask you some questions, as that
> might be helpful for other people trying to build this port.

Thank you for doing this! There are very few engineers who work on
Chromium WebKit in Windows. We desperately need your help.

>
> - it looks like VS2008 is required to build the Chromium port (as for
> Chromium itself), while building plain WebKit requires VS2005
> (according to http://www.webkit.org/building/tools.html). Does that
> mean it's impossible to use a single checkout of WebKit for building
> both?

I vaguely remember that Chromium made this switch, but it didn't click
with me that you can't build the WebKit port using VS2008.

You can certainly use single checkout -- provided you have both VS2005
and VS2008 installed.

> - from bot logs, it looks like 'update-webkit' and 'build-webkit'
> scripts are launched under Strawberry Perl, not from cygwin, as all
> paths are of MS-DOS style. I tried this way, and it didn't worked at
> all. E.g. for some reason it couldn't find Python, although I have it
> in path;

Yes! Here are the instructions that I wrote for setting up the the
bots, parts of them should really be moved to the Chromium page:
http://trac.webkit.org/wiki/BuildBot#Non-cygwinWinRequirements

> - then I followed instructions from
> http://trac.webkit.org/wiki/Chromium and ran those scripts under
> cygwin. It almost worked, except for the issues below:
>  - ffmpeg.rules, libjpeg.rules and webcore_bindings_sources.rules
> were expected to be found in project directories, while actually they
> were generated into Source\WebKit\chromium;
>  - several Python scripts (from Source\WebCore\WebCore.gyp\scripts)
> were receiving MS-DOS paths for output, which were becoming incorrect
> after applying os.path.abspath to them (under cygwin, the function was
> just prefixing paths with '/cygdrive/c/...');
>  - also it looks like several output paths were of MS-DOS style,
> because I've found generated files under paths like
> 'C?/src/WebKit/...', and was needed to copy them to their designated
> locations;
>  - and vice versa, in generated .rc files there were cygwin-style
> paths to resources, resulting in a failure for Visual Studio's
> resources compiler to find them;
>  - and, as I was building the port with VS2005, I've encountered some
> compilation and linking problems mostly fixable by installing
> hotfixes.
>
> I have tried to do the build on two machines, so I hope this isn't a
> problem of a particular system configuration. But the bot works fine,
> and this makes me think that perhaps I was doing something wrong or
> missing some important steps.

Yeah, all those are a result of you trying to run this in cygwin.

Can you please try the instructions for build bots and update the wiki?

:DG<
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev