__init__.py |
|
0 |
cmake_define_files.py |
Creates the given config header. A config header is generated by
taking the corresponding source file and replacing some #define/#undef
occurrences:
"#undef NAME" is turned into "#define NAME VALUE"
"#cmakedefine NAME" is turned into "#define NAME VALUE"
"#define NAME" is unchanged
"#define NAME ORIGINAL_VALUE" is turned into "#define NAME VALUE"
"#undef UNKNOWN_NAME" is turned into "/* #undef UNKNOWN_NAME */"
"#define UNKNOWN_NAME" is turned into "/* #undef UNKNOWN_NAME */"
"#cmakedefine UNKNOWN_NAME" is turned into "/* #undef UNKNOWN_NAME */"
Whitespaces are preserved.
|
3934 |
rnp_symbols.py |
Parse rnp/rnp.h header file and build a symbols file suitable
for use with mozbuild.
This script is meant to be run when the public C API of librnp adds or removes functions so that
they can be exported by the shared library.
Limitations: The regex that captures the function name is very basic and may need adjusting if
the third_party/rnp/include/rnp/rnp.h format changes too much.
Also note that APIs that are marked deprecated are not checked for.
Dependencies: Only Python 3
Running:
python3 rnp_symbols.py [-h] [rnp.h path] [rnp.symbols path]
Both file path arguments are optional. By default, the header file will be
read from "comm/third_party/rnp/include/rnp/rnp.h" and the symbols file will
be written to "comm/third_party/rnp/rnp.symbols".
Path arguments are relative to the current working directory, the defaults
will be determined based on the location of this script.
Either path argument can be '-' to use stdin or stdout respectively.
|
4365 |