Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 1647353002: Use gn_helpers to [se]serialize GN lists. (Closed)

Created:
4 years, 10 months ago by brettw
Modified:
4 years, 4 months ago
Reviewers:
Dirk Pranke, jbudorick
CC:
chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@python_impl
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Comment and fix #

Patch Set 5 : #

Patch Set 6 : rebase #

Patch Set 7 : replace all #

Patch Set 8 : Fix# Please enter the commit message for your changes. Lines starting #

Patch Set 9 : Expand file args #

Patch Set 10 : fixes #

Patch Set 11 : merge #

Patch Set 12 : native library fix #

Patch Set 13 : more #

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

Messages

Total messages: 72 (47 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647353002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647353002/20001
4 years, 10 months ago (2016-01-29 23:34:25 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/15052)
4 years, 10 months ago (2016-01-29 23:49:35 UTC) #5
brettw
4 years, 10 months ago (2016-01-30 00:14:56 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647353002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647353002/40001
4 years, 10 months ago (2016-01-30 00:16:05 UTC) #9
Dirk Pranke
mostly lgtm . https://codereview.chromium.org/1647353002/diff/40001/build/android/gyp/strip_library_for_device.py File build/android/gyp/strip_library_for_device.py (right): https://codereview.chromium.org/1647353002/diff/40001/build/android/gyp/strip_library_for_device.py#newcode43 build/android/gyp/strip_library_for_device.py:43: libraries = ast.literal_eval(options.libraries) if this is ...
4 years, 10 months ago (2016-01-30 00:26:48 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/15156) linux_android_rel_ng on ...
4 years, 10 months ago (2016-01-30 00:35:56 UTC) #12
brettw
Comment and fix
4 years, 10 months ago (2016-01-30 05:46:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647353002/60001
4 years, 10 months ago (2016-01-30 05:47:22 UTC) #16
brettw
https://codereview.chromium.org/1647353002/diff/40001/build/android/gyp/strip_library_for_device.py File build/android/gyp/strip_library_for_device.py (right): https://codereview.chromium.org/1647353002/diff/40001/build/android/gyp/strip_library_for_device.py#newcode43 build/android/gyp/strip_library_for_device.py:43: libraries = ast.literal_eval(options.libraries) On 2016/01/30 00:26:48, Dirk Pranke wrote: ...
4 years, 10 months ago (2016-01-30 05:48:22 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/15156) android_compile_dbg on tryserver.chromium.android (JOB_FAILED, ...
4 years, 10 months ago (2016-01-30 06:03:33 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647353002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647353002/80001
4 years, 10 months ago (2016-01-30 06:38:05 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/15180)
4 years, 10 months ago (2016-01-30 06:56:55 UTC) #27
brettw
I'm giving up on this as I explained in https://code.google.com/p/chromium/issues/detail?id=573132
4 years, 10 months ago (2016-01-30 07:19:49 UTC) #28
brettw
rebase
4 years, 4 months ago (2016-08-17 21:16:42 UTC) #29
brettw
replace all
4 years, 4 months ago (2016-08-17 22:01:01 UTC) #34
brettw
fixes
4 years, 4 months ago (2016-08-17 23:35:42 UTC) #42
brettw
merge
4 years, 4 months ago (2016-08-18 18:13:25 UTC) #47
brettw
4 years, 4 months ago (2016-08-18 18:16:13 UTC) #50
brettw
native library fix
4 years, 4 months ago (2016-08-18 20:00:17 UTC) #53
brettw
more
4 years, 4 months ago (2016-08-18 20:21:06 UTC) #59
Dirk Pranke
lgtm, though jbudorick should probably stamp it as well ...
4 years, 4 months ago (2016-08-20 00:08:00 UTC) #65
jbudorick
lgtm
4 years, 4 months ago (2016-08-22 02:40:11 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1647353002/220001
4 years, 4 months ago (2016-08-22 17:30:30 UTC) #68
commit-bot: I haz the power
Committed patchset #13 (id:220001)
4 years, 4 months ago (2016-08-22 19:05:29 UTC) #70
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 19:09:50 UTC) #72
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/1783edf919dd8a81d47bc58b7f91af65f79cb175
Cr-Commit-Position: refs/heads/master@{#413498}

Powered by Google App Engine
This is Rietveld 408576698