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

Issue 2388113003: Allow proto-path in the proto_library target (Closed)

Created:
4 years, 2 months ago by Olivier
Modified:
4 years, 1 month ago
Reviewers:
Nico, sdefresne
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow proto-path in the proto_library target Also forward include_dirs as it is needed to compile the resulting .cc. This is needed to import protos from another directory. One example of usage is to have a local proto that include a sync proto to avoid duplicate the sync data. BUG=652312

Patch Set 1 #

Total comments: 10

Patch Set 2 : feedback #

Total comments: 2

Patch Set 3 : feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M third_party/protobuf/proto_library.gni View 1 2 4 chunks +19 lines, -3 lines 1 comment Download
M tools/protoc_wrapper/protoc_wrapper.py View 1 2 chunks +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (5 generated)
Olivier
4 years, 2 months ago (2016-10-03 16:42:32 UTC) #2
sdefresne
https://codereview.chromium.org/2388113003/diff/1/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2388113003/diff/1/third_party/protobuf/proto_library.gni#newcode23 third_party/protobuf/proto_library.gni:23: # Specifies the path of an additionnal directory to ...
4 years, 2 months ago (2016-10-04 11:29:55 UTC) #3
Olivier
https://codereview.chromium.org/2388113003/diff/1/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2388113003/diff/1/third_party/protobuf/proto_library.gni#newcode23 third_party/protobuf/proto_library.gni:23: # Specifies the path of an additionnal directory to ...
4 years, 2 months ago (2016-10-04 12:44:32 UTC) #4
sdefresne
lgtm
4 years, 2 months ago (2016-10-04 14:57:47 UTC) #5
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/2388113003/20001
4 years, 2 months ago (2016-10-05 17:06:41 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/274325)
4 years, 2 months ago (2016-10-05 17:17:58 UTC) #9
Olivier
ping
4 years, 2 months ago (2016-10-05 18:53:03 UTC) #10
Nico
What's this needed for? Neither the cl description nor the bug say why we need ...
4 years, 2 months ago (2016-10-05 18:57:49 UTC) #11
Olivier
On 2016/10/05 18:57:49, Nico wrote: > What's this needed for? Neither the cl description nor ...
4 years, 2 months ago (2016-10-06 07:19:08 UTC) #12
sdefresne
https://codereview.chromium.org/2388113003/diff/20001/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2388113003/diff/20001/third_party/protobuf/proto_library.gni#newcode330 third_party/protobuf/proto_library.gni:330: "include_dirs", I think this is incorrect as dependent target ...
4 years, 2 months ago (2016-10-06 15:08:46 UTC) #15
Nico
On 2016/10/06 07:19:08, Olivier Robin wrote: > On 2016/10/05 18:57:49, Nico wrote: > > What's ...
4 years, 2 months ago (2016-10-06 15:10:36 UTC) #16
Olivier
sdefresne: done thakis: import lines in .proto don't contain folder, so I don't think so. ...
4 years, 2 months ago (2016-10-06 16:36:31 UTC) #17
Olivier
On 2016/10/06 16:36:31, Olivier Robin wrote: > sdefresne: done > > thakis: import lines in ...
4 years, 2 months ago (2016-10-06 16:38:21 UTC) #18
sdefresne
lgtm https://codereview.chromium.org/2388113003/diff/40001/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2388113003/diff/40001/third_party/protobuf/proto_library.gni#newcode340 third_party/protobuf/proto_library.gni:340: if (!defined(invoker.public_configs)) { The pattern we usually use ...
4 years, 2 months ago (2016-10-06 16:44:44 UTC) #19
Nico
On 2016/10/06 16:38:21, Olivier Robin wrote: > On 2016/10/06 16:36:31, Olivier Robin wrote: > > ...
4 years, 2 months ago (2016-10-06 16:46:46 UTC) #20
Olivier
On 2016/10/06 16:46:46, Nico wrote: > On 2016/10/06 16:38:21, Olivier Robin wrote: > > On ...
4 years, 2 months ago (2016-10-06 17:24:46 UTC) #21
Olivier
ping
4 years, 1 month ago (2016-10-21 14:59:21 UTC) #22
Olivier
4 years, 1 month ago (2016-11-02 14:54:24 UTC) #23
I understand this can cause security issue by allowing uncontrolled
cross-components inclusions.
Closing this issue.

Powered by Google App Engine
This is Rietveld 408576698