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

Issue 2239383002: GN proto_libary refactoring. (Closed)

Created:
4 years, 4 months ago by kraynov
Modified:
4 years, 4 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN proto_libary refactoring. Added support for sub-directories. Builds multi-file libraries in a single pass to avoid repeated proto parsing and to follow dependencies strictier. BUG=637292 Committed: https://crrev.com/b72583a75181ba099159ce89b3f751054181fa62 Cr-Commit-Position: refs/heads/master@{#412970}

Patch Set 1 #

Patch Set 2 : fix LITE_RUNTIME #

Total comments: 82

Patch Set 3 : review iteration #

Total comments: 13

Patch Set 4 : nit #

Total comments: 6

Patch Set 5 : public includes #

Patch Set 6 : fix typo in test #

Total comments: 2

Patch Set 7 : temporary merge #

Patch Set 8 : optimisation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -255 lines) Patch
M components/tracing/BUILD.gn View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M components/tracing/test/example_proto/library.proto View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/tracing/test/example_proto/library_internals/galaxies.proto View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/tracing/test/example_proto/test_messages.proto View 1 1 chunk +2 lines, -0 lines 0 comments Download
A + components/tracing/test/example_proto/upper_import.proto View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M components/tracing/test/proto_zero_generation_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M components/tracing/tools/proto_zero_plugin/proto_zero_generator.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/protobuf/proto_library.gni View 1 2 3 4 5 6 7 6 chunks +220 lines, -133 lines 0 comments Download
M tools/protoc_wrapper/protoc_wrapper.py View 1 2 3 4 1 chunk +123 lines, -116 lines 0 comments Download

Messages

Total messages: 60 (37 generated)
kraynov
+petrcermak Could you please take a look? More details here: crbug.com/637292 Thank you!
4 years, 4 months ago (2016-08-12 15:45:03 UTC) #5
petrcermak
Looks good overall. I've left you a bunch of inline comments (sorry for being so ...
4 years, 4 months ago (2016-08-15 13:00:07 UTC) #9
kraynov
petrcermak@ Thanks for comments. https://codereview.chromium.org/2239383002/diff/20001/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2239383002/diff/20001/third_party/protobuf/proto_library.gni#newcode10 third_party/protobuf/proto_library.gni:10: # Specifies the path relative ...
4 years, 4 months ago (2016-08-15 13:37:50 UTC) #10
kraynov
Is it better?
4 years, 4 months ago (2016-08-15 18:07:47 UTC) #14
petrcermak
LGTM with a few more comments ;-) Thanks, Petr https://codereview.chromium.org/2239383002/diff/20001/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2239383002/diff/20001/third_party/protobuf/proto_library.gni#newcode18 third_party/protobuf/proto_library.gni:18: ...
4 years, 4 months ago (2016-08-16 14:10:31 UTC) #15
kraynov
https://codereview.chromium.org/2239383002/diff/40001/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2239383002/diff/40001/third_party/protobuf/proto_library.gni#newcode20 third_party/protobuf/proto_library.gni:20: # it will be appended to the |root_build_dir|/pyproto. On ...
4 years, 4 months ago (2016-08-16 16:11:26 UTC) #21
kraynov
+xyzzyz +brettw +scottmg PTAL
4 years, 4 months ago (2016-08-16 16:14:48 UTC) #23
xyzzyz
LGTM https://codereview.chromium.org/2239383002/diff/60001/tools/protoc_wrapper/protoc_wrapper.py File tools/protoc_wrapper/protoc_wrapper.py (right): https://codereview.chromium.org/2239383002/diff/60001/tools/protoc_wrapper/protoc_wrapper.py#newcode35 tools/protoc_wrapper/protoc_wrapper.py:35: raise RuntimeError("Proto file names must not contents hyphens ...
4 years, 4 months ago (2016-08-16 21:04:37 UTC) #24
brettw
https://codereview.chromium.org/2239383002/diff/60001/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2239383002/diff/60001/third_party/protobuf/proto_library.gni#newcode289 third_party/protobuf/proto_library.gni:289: include_dirs += [ cc_out_dir ] Does this include directory ...
4 years, 4 months ago (2016-08-16 22:08:10 UTC) #25
kraynov
Include dirs made public :) https://codereview.chromium.org/2239383002/diff/60001/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2239383002/diff/60001/third_party/protobuf/proto_library.gni#newcode289 third_party/protobuf/proto_library.gni:289: include_dirs += [ cc_out_dir ...
4 years, 4 months ago (2016-08-17 00:40:34 UTC) #28
brettw
https://codereview.chromium.org/2239383002/diff/100001/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2239383002/diff/100001/third_party/protobuf/proto_library.gni#newcode274 third_party/protobuf/proto_library.gni:274: config(config_name) { Do we always need to define configs? ...
4 years, 4 months ago (2016-08-17 18:23:50 UTC) #35
xyzzyz
Seems like just yesterday someone submitted a conflicting CL that rolls own its own generator ...
4 years, 4 months ago (2016-08-17 23:33:05 UTC) #36
kraynov
Yes, I already realized conflicting change. Their plugin is written in Python so will think ...
4 years, 4 months ago (2016-08-17 23:37:34 UTC) #37
kraynov
PTAL There is temporary workaround to satisfy //third_party/dom_distiller_js/BUILD.gn Will be removed very shortly in the ...
4 years, 4 months ago (2016-08-18 14:12:00 UTC) #46
brettw
lgtm
4 years, 4 months ago (2016-08-18 20:23:40 UTC) #47
xyzzyz
lgtm
4 years, 4 months ago (2016-08-18 20:34:12 UTC) #48
kraynov
+oysteine +dpranke Hi, could you please take a look into changes made at //tools and ...
4 years, 4 months ago (2016-08-18 21:30:19 UTC) #50
scottmg
//tools lgtm +phajdan fyi for system-level protoc, which doesn't seem to be supported already in ...
4 years, 4 months ago (2016-08-18 23:00:00 UTC) #52
Dirk Pranke
rs- lgtm.
4 years, 4 months ago (2016-08-18 23:19:37 UTC) #53
oystein (OOO til 10th of July)
components/tracing lgtm
4 years, 4 months ago (2016-08-18 23:21:32 UTC) #54
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/2239383002/140001
4 years, 4 months ago (2016-08-18 23:25:05 UTC) #57
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-18 23:30:08 UTC) #58
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 23:32:54 UTC) #60
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b72583a75181ba099159ce89b3f751054181fa62
Cr-Commit-Position: refs/heads/master@{#412970}

Powered by Google App Engine
This is Rietveld 408576698