OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 import("//third_party/protobuf/proto_library.gni") | |
6 | |
7 group("proto") { | |
danakj
2015/10/19 17:24:30
Can you leave a comment explaining to future-us wh
David Trainor- moved to gerrit
2015/10/19 18:50:38
Done.
| |
8 deps = [ | |
9 ":cc_proto", | |
10 ] | |
11 } | |
12 | |
13 component("cc_proto") { | |
14 visibility = [ ":proto" ] | |
danakj
2015/10/19 17:24:30
I did a google search for gn visibility and got no
David Trainor- moved to gerrit
2015/10/19 18:50:38
Done. Basically only exposes this target to the t
| |
15 | |
16 public_deps = [ | |
17 ":proto_internal", | |
18 ] | |
19 } | |
20 | |
21 proto_library("proto_internal") { | |
22 visibility = [ ":cc_proto" ] | |
23 | |
24 sources = [ | |
25 # TODO(dtrainor): Move the ui/gfx related protos to ui/gfx/proto once it is | |
26 # possible to include protos from other directories/targets (see | |
27 # crbug.com/542423). | |
28 "point.proto", | |
29 "pointf.proto", | |
30 "rect.proto", | |
31 "rectf.proto", | |
32 "size.proto", | |
33 "sizef.proto", | |
34 "transform.proto", | |
35 ] | |
36 | |
37 deps = [ | |
38 "//third_party/protobuf:protobuf_lite", | |
39 ] | |
40 | |
41 cc_generator_options = "dllexport_decl=CC_PROTO_EXPORT:" | |
42 cc_include = "cc/proto/cc_proto_export.h" | |
43 | |
44 defines = [ "CC_PROTO_IMPLEMENTATION" ] | |
45 | |
46 # Warn if clang creates exit destructors. | |
47 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] | |
48 } | |
OLD | NEW |