| Summary: | [CMake] Options should be marked as advanced by default | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> | ||||||
| Component: | WebKitGTK | Assignee: | Michael Catanzaro <mcatanzaro> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Enhancement | CC: | achristensen, cgarcia, commit-queue, gyuyoung.kim, mcatanzaro, mrobinson | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 143558 | ||||||||
| Attachments: |
|
||||||||
|
Description
Michael Catanzaro
2015-04-09 13:26:19 PDT
Warning: if your port doesn't use WEBKIT_OPTION_DEFINE_PORT_VALUE for an option, then this patch will cause that option to disappear! This seemed like the best way to make it easy to hide options, and make sure new options don't unexpectedly appear for particular ports, without making all the Mac and EFL options disappear. That should not be a problem for the Mac and Windows ports' CMake files right now. They are experimental and under construction right now anyways. Created attachment 250464 [details]
Patch
Comment on attachment 250464 [details]
Patch
I'll need to try again. WEBKIT_OPTION_DEFINE_PUBLIC doesn't work.
Created attachment 250496 [details]
Patch
Comment on attachment 250496 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250496&action=review I think _PUBLIC and _PRIVATE macros look like better method to define options. Basically I agree to use it. However someone else might want to take a look this patch before landing. > Source/cmake/WebKitFeatures.cmake:11 > + set(_WEBKIT_AVAILABLE_OPTIONS_ISPUBLIC_${_name} TRUE) Isn't "_IS_PUBLIC" looks more clear than "_ISPUBLIC" ? (In reply to comment #6) > Isn't "_IS_PUBLIC" looks more clear than "_ISPUBLIC" ? I almost did that, but went with ISPUBLIC to match _WEBKIT_AVAILABLE_OPTIONS_INITIALVALUE. Probably IS_PUBLIC would be better, indeed. Comment on attachment 250496 [details] Patch Clearing flags on attachment: 250496 Committed r182658: <http://trac.webkit.org/changeset/182658> All reviewed patches have been landed. Closing bug. |