come up with concrete plan for rc files for win cross builds |
||
Issue descriptionrc.exe is Windows-only. I wrote a rc reimplementation that for chrome's rc files produces bit-for-bit identical outputs (https://github.com/nico/hack/tree/master/res, https://codereview.chromium.org/2628573003/). We could hook that up. However, currently rc is called as a gn tool("rc") and those can't currently have deps. So the options here are: 1. Put a prebuilt rc binary somewhere, pull via hook. A lot of procedure for a 110kB binary. 2. Allow gn tools to have deps, build my rc as part of the regular build. We also had an option try and port my rc thing to LLVM. Sadly, that work isn't complete. So probably prebuilt + my thing for now.
,
Oct 20 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/82f6080f7d0e71eabce5af2e363d375db323bea7 commit 82f6080f7d0e71eabce5af2e363d375db323bea7 Author: Nico Weber <thakis@chromium.org> Date: Fri Oct 20 20:00:46 2017 Hook up new rc.py. Two advantages: * lets ninja track dependencies on resources referenced from .rc files * allows building targets that use .rc files when cross-compiling chrome/win on non-Win hosts, e.g. gfx_unittests can now build on linux Since we now get deps right automatically, remove a few manually-added deps on .ico files. Bug: 132660 , 774193 Cq-Include-Trybots: master.tryserver.chromium.win:win10_chromium_x64_rel_ng Change-Id: Ia23ec5cba2bb06146650c40acf5b7754bbfe9a99 Reviewed-on: https://chromium-review.googlesource.com/729536 Reviewed-by: Will Harris <wfh@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Reviewed-by: Scott Graham <scottmg@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#510532} [modify] https://crrev.com/82f6080f7d0e71eabce5af2e363d375db323bea7/build/toolchain/win/BUILD.gn [modify] https://crrev.com/82f6080f7d0e71eabce5af2e363d375db323bea7/build/toolchain/win/rc/rc.py [modify] https://crrev.com/82f6080f7d0e71eabce5af2e363d375db323bea7/build/toolchain/win/tool_wrapper.py [modify] https://crrev.com/82f6080f7d0e71eabce5af2e363d375db323bea7/chrome/installer/mini_installer/BUILD.gn [modify] https://crrev.com/82f6080f7d0e71eabce5af2e363d375db323bea7/chrome/installer/setup/BUILD.gn [modify] https://crrev.com/82f6080f7d0e71eabce5af2e363d375db323bea7/docs/win_cross.md [modify] https://crrev.com/82f6080f7d0e71eabce5af2e363d375db323bea7/sandbox/win/BUILD.gn
,
Oct 20 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Oct 19 2017