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

Issue 2287603003: Move gyp-win-tool to the GN Windows toolchain. (Closed)

Created:
4 years, 3 months ago by brettw
Modified:
4 years, 3 months ago
Reviewers:
Dirk Pranke, scottmg
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move gyp-win-tool to the GN Windows toolchain. Renames it tool_wrapper.py but otherwise keeps it unchanged from the original https://chromium.googlesource.com/external/gyp.git/+/master/pylib/gyp/win_tool.py I changed internal references to itself to tool_wrapper.py, and split the internal strings containing the word "Copyright" (which it uses to filter tool output) to avoid triggering the copyright presubmit check. Changes the build to refer to the file in-place rather than copying it to the build directory which was confusing. The tool runs itself in the link_manifest step. Since the file is no longer copied to what will be the current directory when linking, I believe this will be broken. But the GN build does not use the manifest linking command. To keep changes minimal, I kept this code in for now. Committed: https://crrev.com/6afaa104b1fa8c6caee4e53b2e37142832ec9f9e Cr-Commit-Position: refs/heads/master@{#414859}

Patch Set 1 #

Patch Set 2 : .py extension #

Patch Set 3 : tool_wrapper #

Patch Set 4 : fixes #

Patch Set 5 : fix #

Total comments: 4

Patch Set 6 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -55 lines) Patch
M build/config/win/manifest.gni View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M build/toolchain/toolchain.gni View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M build/toolchain/win/BUILD.gn View 1 2 3 4 5 9 chunks +9 lines, -10 lines 0 comments Download
M build/toolchain/win/midl.gni View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M build/toolchain/win/setup_toolchain.py View 1 2 3 2 chunks +7 lines, -36 lines 0 comments Download
A build/toolchain/win/tool_wrapper.py View 1 2 3 1 chunk +324 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 40 (17 generated)
brettw
4 years, 3 months ago (2016-08-26 19:30:30 UTC) #4
brettw
.py extension
4 years, 3 months ago (2016-08-26 20:25:38 UTC) #7
brettw
tool_wrapper
4 years, 3 months ago (2016-08-26 20:42:57 UTC) #9
brettw
fixes
4 years, 3 months ago (2016-08-26 20:47:19 UTC) #10
brettw
fix
4 years, 3 months ago (2016-08-26 20:48:25 UTC) #11
brettw
sending to scottmg instead.
4 years, 3 months ago (2016-08-26 20:49:19 UTC) #13
scottmg
https://codereview.chromium.org/2287603003/diff/80001/build/toolchain/win/BUILD.gn File build/toolchain/win/BUILD.gn (right): https://codereview.chromium.org/2287603003/diff/80001/build/toolchain/win/BUILD.gn#newcode23 build/toolchain/win/BUILD.gn:23: tool_wrapper_path = rebase_path("tool_wrapper.py", root_build_dir) We are going to still ...
4 years, 3 months ago (2016-08-26 20:54:36 UTC) #17
brettw
https://codereview.chromium.org/2287603003/diff/80001/build/toolchain/win/BUILD.gn File build/toolchain/win/BUILD.gn (right): https://codereview.chromium.org/2287603003/diff/80001/build/toolchain/win/BUILD.gn#newcode23 build/toolchain/win/BUILD.gn:23: tool_wrapper_path = rebase_path("tool_wrapper.py", root_build_dir) On 2016/08/26 20:54:36, scottmg wrote: ...
4 years, 3 months ago (2016-08-26 20:57:07 UTC) #18
scottmg
lgtm https://codereview.chromium.org/2287603003/diff/80001/build/toolchain/win/BUILD.gn File build/toolchain/win/BUILD.gn (right): https://codereview.chromium.org/2287603003/diff/80001/build/toolchain/win/BUILD.gn#newcode23 build/toolchain/win/BUILD.gn:23: tool_wrapper_path = rebase_path("tool_wrapper.py", root_build_dir) On 2016/08/26 20:57:07, brettw ...
4 years, 3 months ago (2016-08-26 20:59:04 UTC) #19
brettw
https://codereview.chromium.org/2287603003/diff/80001/build/toolchain/win/BUILD.gn File build/toolchain/win/BUILD.gn (right): https://codereview.chromium.org/2287603003/diff/80001/build/toolchain/win/BUILD.gn#newcode23 build/toolchain/win/BUILD.gn:23: tool_wrapper_path = rebase_path("tool_wrapper.py", root_build_dir) Whoops, fixed!
4 years, 3 months ago (2016-08-26 21:00:28 UTC) #20
brettw
fix
4 years, 3 months ago (2016-08-26 21:00:58 UTC) #21
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/2287603003/100001
4 years, 3 months ago (2016-08-26 21:03:11 UTC) #24
Dirk Pranke
I think rsesek@ ended up splitting gyp-mac-tool out into separate individual scripts, which I think ...
4 years, 3 months ago (2016-08-26 21:04:35 UTC) #26
scottmg
Also, just noting one minor thing, changes to this script will be a bit confusing ...
4 years, 3 months ago (2016-08-26 21:08:49 UTC) #27
scottmg
On 2016/08/26 21:04:35, Dirk Pranke wrote: > I think rsesek@ ended up splitting gyp-mac-tool out ...
4 years, 3 months ago (2016-08-26 21:11:01 UTC) #28
brettw
Splitting it is a good idea. I was quite pleased we don't use gyp-mac-tool any ...
4 years, 3 months ago (2016-08-26 21:36:51 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/285807)
4 years, 3 months ago (2016-08-26 22:42:53 UTC) #31
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/2287603003/100001
4 years, 3 months ago (2016-08-26 22:45:42 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-08-26 23:45:28 UTC) #35
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/6afaa104b1fa8c6caee4e53b2e37142832ec9f9e Cr-Commit-Position: refs/heads/master@{#414859}
4 years, 3 months ago (2016-08-26 23:46:53 UTC) #37
jianli
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2287833002/ by jianli@chromium.org. ...
4 years, 3 months ago (2016-08-27 00:41:33 UTC) #38
findit-for-me
FYI: Findit try jobs (rerunning failed compile or tests) identified this CL at revision 414859 ...
4 years, 3 months ago (2016-08-27 01:00:24 UTC) #39
scottmg
4 years, 3 months ago (2016-08-27 02:04:28 UTC) #40
Message was sent while issue was closed.
Oops, I should have searched for gyp-win-tool:

https://cs.chromium.org/chromium/src/native_client/src/trusted/win/BUILD.gn?q...

Also delete these references on reland:
https://cs.chromium.org/chromium/build/scripts/slave/build_directory.py?q=gyp...

Powered by Google App Engine
This is Rietveld 408576698