|
|
Chromium Code Reviews
DescriptionPath evaluation to protobuf plugin.
Protobuf compiler (protoc) plugin is basically an executable.
Path for executables can vary if building for diffent platforms.
This change allows to skip writing complex boilerplate each time.
BUG=622680
Committed: https://crrev.com/b01034d7a9d4377f8d2e244a3e14d334435de67d
Cr-Commit-Position: refs/heads/master@{#409481}
Patch Set 1 #Patch Set 2 : fix usage #
Total comments: 2
Patch Set 3 : Windows cross-compile in future #
Messages
Total messages: 36 (25 generated)
The CQ bit was checked by kraynov@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by kraynov@chromium.org
kraynov@chromium.org changed reviewers: + primiano@chromium.org
The CQ bit was checked by kraynov@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by kraynov@chromium.org
The CQ bit was checked by kraynov@chromium.org to run a CQ dry run
The CQ bit was unchecked by kraynov@chromium.org
The CQ bit was checked by kraynov@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by kraynov@chromium.org
Description was changed from ========== Path evaluation for protobuf plugin. Protobuf compiler (protoc) plugin is basically executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 ========== to ========== Path evaluation for protobuf plugin. Protobuf compiler (protoc) plugin is basically executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 ==========
kraynov@chromium.org changed reviewers: + brettw@chromium.org
Please take a look. //components/tracing/BUILD.gn is only usage at the moment. I just removed some lines otherwise GN complaining for unused variable. This approach to get the path of executable seems to be universal and inspired by https://cs.chromium.org/chromium/src/build/compiled_action.gni?l=110
Description was changed from ========== Path evaluation for protobuf plugin. Protobuf compiler (protoc) plugin is basically executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 ========== to ========== Path evaluation to protobuf plugin. Protobuf compiler (protoc) plugin is basically executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 ==========
kraynov@chromium.org changed reviewers: + xyzzyz@chromium.org
kraynov@chromium.org changed reviewers: + thakis@chromium.org
+xyzzyz +Nico Please take a look. //components/tracing/BUILD.gn is only usage at the moment. I just removed some lines otherwise GN complaining for unused variable. This approach to get the path of executable seems to be universal and inspired by https://cs.chromium.org/chromium/src/build/compiled_action.gni?l=110
Description was changed from ========== Path evaluation to protobuf plugin. Protobuf compiler (protoc) plugin is basically executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 ========== to ========== Path evaluation to protobuf plugin. Protobuf compiler (protoc) plugin is basically an executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 ==========
LGTM, but I feel like this is something that GN should provide. If it doesn't, then we should have a issue filed for that.
Looks generally good. https://codereview.chromium.org/2202233002/diff/20001/third_party/protobuf/pr... File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2202233002/diff/20001/third_party/protobuf/pr... third_party/protobuf/proto_library.gni:190: if (is_win) { This is likely wrong (also in the old place). I'm guessing that $generator_plugin is a host executable, so you need to check the host os. is_win checks the target os. If cross-compiling chrome/win on linux, this here currently does the wrong thing. (cross-compiling chrome/win on windows isn't fully working yet, but it's also not super far away, see https://codereview.chromium.org/1183633003/) See https://cs.chromium.org/chromium/src/chrome/test/base/js2gtest.gni?rcl=0&l=42 for an example. The get_labelinfo() call there also looks a bit simpler than what you have.
The CQ bit was checked by kraynov@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by kraynov@chromium.org
https://codereview.chromium.org/2202233002/diff/20001/third_party/protobuf/pr... File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2202233002/diff/20001/third_party/protobuf/pr... third_party/protobuf/proto_library.gni:190: if (is_win) { On 2016/08/02 17:38:27, Nico wrote: > This is likely wrong (also in the old place). I'm guessing that > $generator_plugin is a host executable, so you need to check the host os. is_win > checks the target os. If cross-compiling chrome/win on linux, this here > currently does the wrong thing. (cross-compiling chrome/win on windows isn't > fully working yet, but it's also not super far away, see > https://codereview.chromium.org/1183633003/) > > > See > https://cs.chromium.org/chromium/src/chrome/test/base/js2gtest.gni?rcl=0&l=42 > for an example. The get_labelinfo() call there also looks a bit simpler than > what you have. Done.
lgtm
LGTM
The CQ bit was checked by kraynov@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from xyzzyz@chromium.org Link to the patchset: https://codereview.chromium.org/2202233002/#ps40001 (title: "Windows cross-compile in future")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Path evaluation to protobuf plugin. Protobuf compiler (protoc) plugin is basically an executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 ========== to ========== Path evaluation to protobuf plugin. Protobuf compiler (protoc) plugin is basically an executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Path evaluation to protobuf plugin. Protobuf compiler (protoc) plugin is basically an executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 ========== to ========== Path evaluation to protobuf plugin. Protobuf compiler (protoc) plugin is basically an executable. Path for executables can vary if building for diffent platforms. This change allows to skip writing complex boilerplate each time. BUG=622680 Committed: https://crrev.com/b01034d7a9d4377f8d2e244a3e14d334435de67d Cr-Commit-Position: refs/heads/master@{#409481} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/b01034d7a9d4377f8d2e244a3e14d334435de67d Cr-Commit-Position: refs/heads/master@{#409481} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
