WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
96254
[WTR] Generated source files should include config.h
https://bugs.webkit.org/show_bug.cgi?id=96254
Summary
[WTR] Generated source files should include config.h
Ryuan Choi
Reported
2012-09-10 03:06:29 PDT
As
http://www.webkit.org/coding/coding-style.html
mentioned, all implementations should include config.h.
Attachments
Patch
(1.55 KB, patch)
2012-09-10 06:38 PDT
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(1.57 KB, patch)
2012-09-10 07:07 PDT
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryuan Choi
Comment 1
2012-09-10 06:38:50 PDT
Created
attachment 163115
[details]
Patch
Ryuan Choi
Comment 2
2012-09-10 07:07:11 PDT
Created
attachment 163119
[details]
Patch
Benjamin Poulain
Comment 3
2012-09-10 12:59:44 PDT
Is this solving a real problem? You are just gonna slow down compile time for following the coding style _guidelines_.
Ryuan Choi
Comment 4
2012-09-10 13:53:16 PDT
(In reply to
comment #3
)
> Is this solving a real problem? You are just gonna slow down compile time for following the coding style _guidelines_.
Yes. In fact, a real problem is that WTR/Efl can not distinguish compile time options such as ENABLE(TOUCH_EVENTS) because - Derived sources does not include config.h WebKit/Efl does not use pre compiled header, so we should include config.h to determine options - CMake build scripts does not provide FEATURE DEFINES to generator. (
Bug 96273
for this) After solving above issues, I want to implement missing functionality of TOUCH EVENTS in EventSenderProxyEfl.cpp Thank you.
Benjamin Poulain
Comment 5
2012-09-10 14:03:18 PDT
Comment on
attachment 163119
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=163119&action=review
> In fact, a real problem is that WTR/Efl can not distinguish compile time options such as ENABLE(TOUCH_EVENTS) because > - Derived sources does not include config.h > WebKit/Efl does not use pre compiled header, > so we should include config.h to determine options > > - CMake build scripts does not provide FEATURE DEFINES to generator. (
Bug 96273
for this)
That's a good justification.
> Tools/WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:332 > unshift(@contents, map { "#include \"$_\"\n" } sort keys(%contentsIncludes)); > + unshift(@contents, "#include \"config.h\"\n"); > unshift(@contents, @contentsPrefix);
Is this really respecting the order of #includes regarding config.h?
Ryuan Choi
Comment 6
2012-09-10 14:18:19 PDT
Comment on
attachment 163119
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=163119&action=review
>> Tools/WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:332 >> unshift(@contents, @contentsPrefix); > > Is this really respecting the order of #includes regarding config.h?
Yes, this obey the order of #include rule 1, `All implementation files must #include "config.h" first. Header files should never include "config.h"`. CodeGeneratorTestRunner.pm still not follow other rules (All other headers are sorted).
Benjamin Poulain
Comment 7
2012-09-10 14:25:30 PDT
Comment on
attachment 163119
[details]
Patch
> Yes, this obey the order of #include rule 1, `All implementation files must #include "config.h" first. Header files should never include "config.h"`.
Oh, right! This is unshift, not shift. LGTM.
Ryuan Choi
Comment 8
2012-09-10 14:27:42 PDT
Comment on
attachment 163119
[details]
Patch Thank you.
WebKit Review Bot
Comment 9
2012-09-10 14:43:19 PDT
Comment on
attachment 163119
[details]
Patch Clearing flags on attachment: 163119 Committed
r128108
: <
http://trac.webkit.org/changeset/128108
>
WebKit Review Bot
Comment 10
2012-09-10 14:43:23 PDT
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