[Settings] Generate more of the WebKit preferences code
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Oct 2017 18:24:39 +0000 (18:24 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Oct 2017 18:24:39 +0000 (18:24 +0000)
commitfdeefed59a416d65c9cc150b92a5564bdac3b736
treeb094e46ab91a26566ee4b028023422a158cdf921
parent44c86f2e7a57391caf78d35f3aecf1dd35580b71
[Settings] Generate more of the WebKit preferences code
https://bugs.webkit.org/show_bug.cgi?id=178945

Reviewed by Chris Dumez.

Generate WebPreferencesKeys.{h,cpp} and WebPreferencesStoreDefaultsMap.cpp

* CMakeLists.txt:
* DerivedSources.make:
* WebKit.xcodeproj/project.pbxproj:
* Scripts/GeneratePreferences.rb:

    Generate new files.

* Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb:

    Update include.

* Scripts/PreferencesTemplates/WebPreferencesKeys.cpp.erb: Added.
* Scripts/PreferencesTemplates/WebPreferencesKeys.h.erb: Added.
* Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb: Added.

    Add template files for new generated files.

* Shared/WebPreferencesDefaultValues.h: Copied from Source/WebKit/Shared/WebPreferencesDefinitionsBase.h.
* Shared/WebPreferencesDefinitionsBase.h:

    Renamed WebPreferencesDefinitionsBase.h to WebPreferencesDefaultValues.h to better indicate what it is.

* Shared/WebPreferencesKeys.cpp: Removed.
* Shared/WebPreferencesKeys.h: Removed.

    Replaced with generated versions.

* Shared/WebPreferencesStore.cpp:
(WebKit::defaults): Deleted.
* Shared/WebPreferencesStore.h:

    Replace macro driven defaults map with generated WebPreferencesStoreDefaultsMap.cpp.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/WebKit/CMakeLists.txt
Source/WebKit/ChangeLog
Source/WebKit/DerivedSources.make
Source/WebKit/Scripts/GeneratePreferences.rb
Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesDefinitions.h.erb
Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesKeys.cpp.erb [moved from Source/WebKit/Shared/WebPreferencesKeys.cpp with 73% similarity]
Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesKeys.h.erb [moved from Source/WebKit/Shared/WebPreferencesKeys.h with 72% similarity]
Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb [new file with mode: 0644]
Source/WebKit/Shared/WebPreferences.yaml
Source/WebKit/Shared/WebPreferencesDefaultValues.h [moved from Source/WebKit/Shared/WebPreferencesDefinitionsBase.h with 100% similarity]
Source/WebKit/Shared/WebPreferencesStore.cpp
Source/WebKit/Shared/WebPreferencesStore.h
Source/WebKit/WebKit.xcodeproj/project.pbxproj