diff options
author | Cronet Mainline Eng <cronet-mainline-eng+copybara@google.com> | 2023-04-17 14:36:25 -0800 |
---|---|---|
committer | Patrick Rohr <prohr@google.com> | 2023-04-17 15:41:30 -0700 |
commit | 41cb724250484f326b0bbd5f8b955eb37b3b83c6 (patch) | |
tree | cb7b2cbe08b2c5305a56b31649359f8141edd198 /build/android/gyp/filter_zip.py | |
parent | c175721cfcc03e339122be17d569239df9762b2b (diff) | |
download | cronet-41cb724250484f326b0bbd5f8b955eb37b3b83c6.tar.gz |
Import Cronet version 114.0.5709.3
Project import generated by Copybara.
FolderOrigin-RevId: /tmp/copybara-origin/src
Test: none
Change-Id: I263aa6b692a17ac2471b98b6e662b26dd1327c9c
Diffstat (limited to 'build/android/gyp/filter_zip.py')
-rwxr-xr-x | build/android/gyp/filter_zip.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build/android/gyp/filter_zip.py b/build/android/gyp/filter_zip.py index 5f1181815..0382651bf 100755 --- a/build/android/gyp/filter_zip.py +++ b/build/android/gyp/filter_zip.py @@ -9,6 +9,8 @@ import shutil import sys from util import build_utils +import action_helpers # build_utils adds //build to sys.path. +import zip_helpers def CreatePathTransform(exclude_globs, include_globs): @@ -50,13 +52,14 @@ def main(): argv = build_utils.ExpandFileArgs(sys.argv[1:]) args = parser.parse_args(argv) - args.exclude_globs = build_utils.ParseGnList(args.exclude_globs) - args.include_globs = build_utils.ParseGnList(args.include_globs) + args.exclude_globs = action_helpers.parse_gn_list(args.exclude_globs) + args.include_globs = action_helpers.parse_gn_list(args.include_globs) path_transform = CreatePathTransform(args.exclude_globs, args.include_globs) - with build_utils.AtomicOutput(args.output) as f: + with action_helpers.atomic_output(args.output) as f: if path_transform: - build_utils.MergeZips(f.name, [args.input], path_transform=path_transform) + zip_helpers.merge_zips(f.name, [args.input], + path_transform=path_transform) else: shutil.copy(args.input, f.name) |