gecko-dev/modules/libpref/test/python.ini
Nicholas Nethercote de6330a49b Bug 1564724 - Generate StaticPrefList.h from StaticPrefList.yaml. r=glandium
This commit introduces StaticPrefList.yaml, which encodes the same information
as StaticPrefList.h. The .yaml file was generated with a script, which is not
part of this commit because it only needs to be used once. (I will attach it to
the bug, however.)

The commit doesn't remove StaticPrefList.h, I will do that in the next commit.
(This makes things it easier to rerun the header-to-YAML script if/when
necessary.) The commit does modify the comment at the top of StaticPrefList.h;
that modified comment can also be seen at the top of StaticPrefList.yaml.

This commit also adds a script that converts the YAML to a header file. This
script becomes part of the build.

I have done my best to verify that the conversion is correct by comparing the
original .h file with the one generated from the YAML file. They are identical,
modulo removed comments and the processing of preprocessor directives.

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

--HG--
extra : moz-landing-system : lando
2019-07-18 00:08:20 +00:00

4 lines
47 B
INI

[DEFAULT]
[test_generate_static_pref_list.py]