
fix for ``` python3 ../../build/android/gyp/compile_resources.py --include-resources=../../third_party/android_sdk/public/platforms/android-35/android.jar --aapt2-path ../../third_party/android_build_tools/aapt2/cipd/aapt2 --dependencies-res-zips=@FileArg(gen/third_party/catapult/devil/empty_system_webview_apk.build_config.json:deps_info:dependency_zips) --extra-res-packages=@FileArg(gen/third_party/catapult/devil/empty_system_webview_apk.build_config.json:deps_info:extra_package_names) --min-sdk-version=26 --target-sdk-version=35 --webp-cache-dir=obj/android-webp-cache --android-manifest gen/third_party/catapult/devil/empty_system_webview_apk/AndroidManifest.merged.xml --srcjar-out gen/third_party/catapult/devil/empty_system_webview_apk__compile_resources.srcjar --version-code 1 --version-name Developer Build --arsc-path obj/third_party/catapult/devil/empty_system_webview_apk.ap_ --info-path obj/third_party/catapult/devil/empty_system_webview_apk.ap_.info --r-text-out gen/third_party/catapult/devil/empty_system_webview_apk__compile_resources_R.txt --dependencies-res-zip-overlays=@FileArg(gen/third_party/catapult/devil/empty_system_webview_apk.build_config.json:deps_info:dependency_zip_overlays) --proguard-file obj/third_party/catapult/devil/empty_system_webview_apk/empty_system_webview_apk.resources.proguard.txt --emit-ids-out=gen/third_party/catapult/devil/empty_system_webview_apk__compile_resources.resource_ids --depfile gen/third_party/catapult/devil/empty_system_webview_apk__compile_resources.d Traceback (most recent call last): File "/b/f/w/out/x/../../build/android/gyp/compile_resources.py", line 34, in <module> from util import protoresources File "/b/f/w/build/android/gyp/util/protoresources.py", line 27, in <module> from proto import Resources_pb2 File "/b/f/w/build/android/gyp/proto/Resources_pb2.py", line 9, in <module> from google.protobuf import reflection as _reflection File "/b/f/w/out/x/../../third_party/protobuf/python/google/protobuf/reflection.py", line 29, in <module> from google.protobuf import message_factory File "/b/f/w/out/x/../../third_party/protobuf/python/google/protobuf/message_factory.py", line 21, in <module> from google.protobuf import descriptor_pool File "/b/f/w/out/x/../../third_party/protobuf/python/google/protobuf/descriptor_pool.py", line 44, in <module> from google.protobuf.internal import python_edition_defaults ImportError: cannot import name 'python_edition_defaults' from 'google.protobuf.internal' ``` Bug: 394948221 Change-Id: I10d327b44b6b459fc93ac8af3e27e4b7c274389d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6238761 Auto-Submit: Fumitoshi Ukai <ukai@google.com> Reviewed-by: Junji Watanabe <jwata@google.com> Commit-Queue: Fumitoshi Ukai <ukai@google.com> Commit-Queue: Junji Watanabe <jwata@google.com> Cr-Commit-Position: refs/heads/main@{#1417097}
About
//build
contains:
- Core GN templates and configuration
- Core Python build scripts
Since this directory is DEPS'ed in by some other repositories (webrtc, pdfium,
v8, etc), it should be kept as self-contained as possible by not referring
to files outside of it. Some exceptions exist (//testing
, select
//third_party
subdirectories), but new dependencies tend to break these other
projects, and so should be avoided.
Changes to //build
should be landed in the Chromium repo. They will then be
replicated to the stand-alone build repo
by the gsubtreed tool.
Note: You can find all directories already available through gsubtreed in the
list of all chromium repos.
Contents
//build/config
- Common templates via.gni
files.//build/toolchain
- GN toolchain definitions.Other .py files
- Some are used by GN/Ninja. Some by gclient hooks, some are just random utilities.
Files referenced by //.gn
:
//build/BUILDCONFIG.gn
- Included by allBUILD.gn
files.//build/secondary
- An overlay forBUILD.gn
files. Enables addingBUILD.gn
to directories that live in sub-repositories.//build_overrides
- Refer to //build_overrides/README.md.