|
Use gn_helpers to [se]serialize GN lists.
Removes GYP/GN command-line parsing logic. My read of the history is that we used to take strings and FileArgs, then added support for GN lists using ast.parse which is good enough for 95% of things (we didn't have gn_helpers to do it properly yet). The GN list usage expanded to things that aren't actually GN lists which made it impossible to do proper GN list parsing.
Now that we don't need to support GYP this removes the GYP variant and forces it to use a GN version instead. The magic "##"->"$" remapping behavior is removed from the scripts as well as the BUILD files (this was for GYP compat).
This also changes the FileArg expansion to write GN lists. The logic is preserved from the previous version even though it's a bit weird. These are are expanded either as a list beginning with '[', or as a string with no quotes. This FileArgs processing is used to do things like extract #define values from build_config files. One of which, java_libraries_list, is a string in the build_config, but expects to be inserted into a Java file with no quotes so the { ... } in the string expand to a Java array. Another of which, pack_relocations, takes a Python dictionary as input. This type of thing makes having more uniform type checking impossible (like by passing all arguments in GN formatting).
The strip_libraries_for_device script is removed, it is never referenced.
BUG= 573132, 571022
Committed: https://crrev.com/1783edf919dd8a81d47bc58b7f91af65f79cb175
Cr-Commit-Position: refs/heads/master@{#413498}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+103 lines, -237 lines) |
Patch |
|
M |
build/android/findbugs_diff.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/gyp/aidl.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/apk_obfuscate.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/apkbuilder.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/configure_multidex.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/gyp/copy_ex.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/create_device_library_links.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/gyp/create_dist_jar.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/gyp/create_java_binary_script.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/create_test_runner_script.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/gyp/dex.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/emma_instr.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/finalize_splits.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/gyp/generate_resource_rewriter.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/insert_chromium_version.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -66 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/jar.py
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/javac.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/jinja_template.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/lint.py
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/locale_pak_resources.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/gyp/main_dex_list.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/gyp/pack_relocations.py
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
5 chunks |
+4 lines, -12 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/package_resources.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/process_resources.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/proguard.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/push_libraries.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/gyp/strip_library_for_device.py
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+0 lines, -61 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/util/build_utils.py
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+27 lines, -26 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/write_build_config.py
|
View
|
1
2
3
4
5
6
|
7 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
|
M |
build/android/gyp/write_ordered_libraries.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/incremental_install/create_install_script.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
build/config/android/rules.gni
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/cronet/tools/extract_from_jars.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
components/cronet/tools/jar_src.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 72 (47 generated)
|