[webkit-dev] How does a *Prefix.h work on other platforms?

Xianzhu Wang (王显著) wangxianzhu at chromium.org
Fri Sep 9 03:39:34 PDT 2011


On Thu, Sep 8, 2011 at 12:54 PM, Mark Rowe <mrowe at apple.com> wrote:

>
> On 2011-09-07, at 21:22, Xianzhu Wang (王显著) wrote:
>
> > Hi,
> >
> > There are some *Prefix.h files that I guess are injected as header files
> into *.cpp files when compiling with xcode. I guess on other platforms they
> are just no use and the source files should include all necessary header
> files, right?
>

Is this right?


> >
> > However, a file in question is Tools/TestWebKitAPI/TestWebKitAPIPrefix.h
> which injects '#include <gtest/gtest.h>' the unit test source files which
> don't have the includes. AFAIK TestWebKitAPI works on Mac and Windows, but I
> haven't found anything in TestWebKitAPI.vcproj for injecting
> TestWebKitAPIPrefix.h into the source files. How does this work on Windows?
>
> Tools/TestWebKitAPI/Configurations/TestWebKitAPICommon.vsprops:
> ForcedIncludeFiles="TestWebKitAPIPrefix.h"
>
>
Thanks Mark. I had only grep-ed the files under win/.


> - Mark
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110909/b7a90b1e/attachment.html>


More information about the webkit-dev mailing list