| | 1 | [[PageOutline]] |
| | 2 | = Introduction = |
| | 3 | |
| | 4 | The policy for adding new (major) features to WebKit is: |
| | 5 | |
| | 6 | * Send an email to webkit-dev describing the feature and linking to the tracking bug |
| | 7 | * If necessary, add an ENABLE flag for the feature. |
| | 8 | |
| | 9 | = How to add an ENABLE flag = |
| | 10 | |
| | 11 | By adding a build definition for ENABLE_FEATURE it allows code/preprocessor to test using ENABLE(FEATURE). You'll need to edit at least the following files: |
| | 12 | |
| | 13 | * Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig |
| | 14 | * Source/WebCore/Configurations/FeatureDefines.xcconfig |
| | 15 | * Source/WebKit/mac/Configurations/FeatureDefines.xcconfig |
| | 16 | * Source/WebKit2/Configurations/FeatureDefines.xcconfig |
| | 17 | * Tools/Scripts/build-webkit |
| | 18 | * WebKitLibraries/win/tools/vsprops/FeatureDefines.vsprops |
| | 19 | * WebKitLibraries/win/tools/vsprops/FeatureDefinesCairo.vsprops |
| | 20 | |
| | 21 | Note that's only permitting the feature. To actually turn it on you'll need to edit the build configurations for each port. (TODO: page describing where each configuration is?) |