Changes between Initial Version and Version 1 of AddingFeatures


Ignore:
Timestamp:
Sep 22, 2011 6:33:31 PM (13 years ago)
Author:
dino@apple.com
Comment:

Figured it was worth documenting how to add a feature

Legend:

Unmodified
Added
Removed
Modified
  • AddingFeatures

    v1 v1  
     1[[PageOutline]]
     2= Introduction =
     3
     4The 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
     11By 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
     21Note 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?)