[libcamera-devel] [PATCH 0/8] libcamera: Update mojo and mojo updater
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Thu Jan 4 16:15:40 CET 2024
Hello,
This patch series updates mojo to the most recent release of Chromium.
The main motivation is to fix bug #206 ("Fails to build with Python
3.12"), handled in patch 8/8. I've taken this as an opportunity to
improve the update-mojo.sh script, in patches 1/8 to 5/8. Patches 6/8
and 7/8 are updates to the generator script to take the mojo changes
into account.
Laurent Pinchart (8):
utils: update-mojo.sh: Properly remove old sources
utils: update-mojo.sh: Exit immediately on error
utils: update-mojo.sh: Change to the libcamera source directory
utils: update-mojo.sh: Reject a dirty libcamera tree
utils: update-mojo.sh: Commit the mojo update
utils: ipc: generate.py: Add bindings directory to Python path
utils: ipc: generate.py: Disable attributes checker
utils: ipc: Update mojo
utils/ipc/generate.py | 12 +-
utils/ipc/mojo/README | 2 +-
utils/ipc/mojo/public/LICENSE | 2 +-
utils/ipc/mojo/public/tools/BUILD.gn | 8 +-
utils/ipc/mojo/public/tools/bindings/BUILD.gn | 36 +-
.../ipc/mojo/public/tools/bindings/README.md | 239 +++--
.../public/tools/bindings/checks/__init__.py | 0
.../bindings/checks/mojom_attributes_check.py | 170 ++++
.../checks/mojom_attributes_check_unittest.py | 194 ++++
.../checks/mojom_definitions_check.py | 34 +
.../checks/mojom_interface_feature_check.py | 62 ++
.../mojom_interface_feature_check_unittest.py | 173 ++++
.../checks/mojom_restrictions_check.py | 102 +++
.../mojom_restrictions_checks_unittest.py | 254 ++++++
.../chromium_bindings_configuration.gni | 51 --
.../tools/bindings/compile_typescript.py | 27 -
.../tools/bindings/concatenate-files.py | 5 +-
...concatenate_and_replace_closure_exports.py | 10 +-
.../bindings/format_typemap_generator_args.py | 36 -
.../tools/bindings/gen_data_files_list.py | 2 +-
.../tools/bindings/generate_type_mappings.py | 4 +-
.../tools/bindings/minify_with_terser.py | 47 +
.../ipc/mojo/public/tools/bindings/mojom.gni | 853 ++++++++++--------
.../bindings/mojom_bindings_generator.py | 62 +-
.../mojom_bindings_generator_unittest.py | 6 +-
.../tools/bindings/mojom_types_downgrader.py | 119 ---
.../tools/bindings/validate_typemap_config.py | 5 +-
utils/ipc/mojo/public/tools/mojom/BUILD.gn | 18 +
.../mojom/check_stable_mojom_compatibility.py | 69 +-
...eck_stable_mojom_compatibility_unittest.py | 87 +-
.../mojo/public/tools/mojom/const_unittest.py | 2 +-
.../mojo/public/tools/mojom/enum_unittest.py | 30 +-
.../public/tools/mojom/feature_unittest.py | 84 ++
.../mojo/public/tools/mojom/mojom/BUILD.gn | 3 +-
.../mojo/public/tools/mojom/mojom/error.py | 2 +-
.../mojo/public/tools/mojom/mojom/fileutil.py | 3 +-
.../tools/mojom/mojom/fileutil_unittest.py | 7 +-
.../tools/mojom/mojom/generate/check.py | 26 +
.../mojom/mojom/generate/constant_resolver.py | 93 --
.../tools/mojom/mojom/generate/generator.py | 11 +-
.../mojom/generate/generator_unittest.py | 9 +-
.../tools/mojom/mojom/generate/module.py | 783 +++++++++++-----
.../mojom/mojom/generate/module_unittest.py | 2 +-
.../public/tools/mojom/mojom/generate/pack.py | 151 +++-
.../mojom/mojom/generate/pack_unittest.py | 30 +-
.../mojom/mojom/generate/template_expander.py | 2 +-
.../tools/mojom/mojom/generate/translate.py | 464 +++++++++-
.../mojom/generate/translate_unittest.py | 82 +-
.../public/tools/mojom/mojom/parse/ast.py | 145 +--
.../tools/mojom/mojom/parse/ast_unittest.py | 12 +-
.../mojom/mojom/parse/conditional_features.py | 21 +-
.../parse/conditional_features_unittest.py | 155 +++-
.../public/tools/mojom/mojom/parse/lexer.py | 8 +-
.../tools/mojom/mojom/parse/lexer_unittest.py | 10 +-
.../public/tools/mojom/mojom/parse/parser.py | 108 ++-
.../mojom/mojom/parse/parser_unittest.py | 39 +-
.../mojo/public/tools/mojom/mojom_parser.py | 119 ++-
.../tools/mojom/mojom_parser_test_case.py | 6 +-
.../tools/mojom/mojom_parser_unittest.py | 31 +-
.../tools/mojom/stable_attribute_unittest.py | 2 +-
.../mojo/public/tools/mojom/union_unittest.py | 44 +
.../mojom/version_compatibility_unittest.py | 73 +-
.../public/tools/run_all_python_unittests.py | 8 +-
utils/ipc/tools/README | 2 +-
utils/ipc/tools/diagnosis/crbug_1001171.py | 2 +-
utils/update-mojo.sh | 50 +-
66 files changed, 3877 insertions(+), 1431 deletions(-)
create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/__init__.py
create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_attributes_check.py
create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_attributes_check_unittest.py
create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_definitions_check.py
create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_interface_feature_check.py
create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_interface_feature_check_unittest.py
create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_restrictions_check.py
create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_restrictions_checks_unittest.py
delete mode 100644 utils/ipc/mojo/public/tools/bindings/chromium_bindings_configuration.gni
delete mode 100644 utils/ipc/mojo/public/tools/bindings/compile_typescript.py
delete mode 100755 utils/ipc/mojo/public/tools/bindings/format_typemap_generator_args.py
create mode 100755 utils/ipc/mojo/public/tools/bindings/minify_with_terser.py
delete mode 100755 utils/ipc/mojo/public/tools/bindings/mojom_types_downgrader.py
create mode 100644 utils/ipc/mojo/public/tools/mojom/BUILD.gn
create mode 100644 utils/ipc/mojo/public/tools/mojom/feature_unittest.py
create mode 100644 utils/ipc/mojo/public/tools/mojom/mojom/generate/check.py
delete mode 100644 utils/ipc/mojo/public/tools/mojom/mojom/generate/constant_resolver.py
create mode 100644 utils/ipc/mojo/public/tools/mojom/union_unittest.py
base-commit: 577e0c6b7659f24c04476e675ea85cb666a87764
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list