Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
build
android_artifacts.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
#
3
# Copyright 2013 The Flutter Authors. All rights reserved.
4
# Use of this source code is governed by a BSD-style license that can be
5
# found in the LICENSE file.
6
7
"""Copies and renames android artifacts."""
8
9
import
argparse
10
import
os
11
import
shutil
12
import
sys
13
14
15
def
cp_files
(args):
16
"""Copies files from source to destination.
17
18
It creates the destination folder if it does not exists yet.
19
"""
20
for
src, dst
in
args.input_pairs:
21
os.makedirs(os.path.dirname(dst), exist_ok=
True
)
22
shutil.copyfile(src, dst)
23
24
25
def
main
():
26
parser = argparse.ArgumentParser()
27
parser.add_argument(
28
'-i'
,
29
dest=
'input_pairs'
,
30
nargs=2,
31
action=
'append'
,
32
help=
'The input file and its destination.'
33
)
34
cp_files
(parser.parse_args())
35
return
0
36
37
38
if
__name__ ==
'__main__'
:
39
sys.exit(
main
())
android_artifacts.cp_files
cp_files(args)
Definition
android_artifacts.py:15
android_artifacts.main
main()
Definition
android_artifacts.py:25
main
Definition
main.py:1
Generated on Fri Apr 26 2024 06:14:01 for Flutter Engine by
1.9.8