Bug 1563555 - Don't bindgen static prefs. r=emilio

Bindgen is no longer necessary now that Rust bindings are generated by
generate_static_pref_list.py.

Differential Revision: https://phabricator.services.mozilla.com/D40793

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicholas Nethercote 2019-08-07 04:17:22 +00:00
Родитель b723ddbe42
Коммит d5bd89d9a0
2 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -24,7 +24,6 @@ headers = [
"mozilla/dom/ChildIterator.h",
"mozilla/dom/NameSpaceConstants.h",
"mozilla/LookAndFeel.h",
"mozilla/StaticPrefsAll.h",
"mozilla/GeckoBindings.h",
"mozilla/ServoBindings.h",
"mozilla/ComputedStyle.h",
@ -161,7 +160,6 @@ whitelist-vars = [
"mozilla::detail::gGkAtoms",
"mozilla::detail::kGkAtomsArrayOffset",
"mozilla::profiler::detail::RacyFeatures::sActiveAndFeatures",
"mozilla::StaticPrefs::.*",
]
# TODO(emilio): A bunch of types here can go away once we generate bindings and
# structs together.
@ -202,7 +200,6 @@ whitelist-types = [
"mozilla::OriginFlags",
"mozilla::PropertyStyleAnimationValuePair",
"mozilla::ServoTraversalFlags",
"mozilla::StaticPrefs",
"mozilla::StyleShapeRadius",
"mozilla::StyleGrid.*",
"mozilla::UpdateAnimationsTasks",

Просмотреть файл

@ -15,8 +15,7 @@ namespace mozilla {
namespace StaticPrefs {
// For mirrored prefs we generate an extern variable declaration and three
// getter declarations/definitions. The extern declaration of the variable is
// necessary for bindgen to see it and generate Rust bindings.
// getter declarations/definitions.
#define NEVER_PREF(name, cpp_type, default_value)
#define ALWAYS_PREF(name, base_id, full_id, cpp_type, default_value) \
extern cpp_type sVarCache_##full_id; \