OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 # Use a group here to allow external targets to depend on "cc/proto" instead of | 7 # Use a group here to allow external targets to depend on "cc/proto" instead of |
8 # cc/proto:cc_proto. We need a group because other component targets are named | 8 # cc/proto:cc_proto. We need a group because other component targets are named |
9 # "proto" which breaks component builds. A group doesn't have the same issue. | 9 # "proto" which breaks component builds. A group doesn't have the same issue. |
10 group("proto") { | 10 group("proto") { |
(...skipping 16 matching lines...) Expand all Loading... |
27 visibility = [ ":cc_proto" ] | 27 visibility = [ ":cc_proto" ] |
28 | 28 |
29 sources = [ | 29 sources = [ |
30 # TODO(dtrainor): Move protos to their correct packages once it's possible | 30 # TODO(dtrainor): Move protos to their correct packages once it's possible |
31 # to include protos from other directories/targets (crbug.com/542423). | 31 # to include protos from other directories/targets (crbug.com/542423). |
32 "compositor_message.proto", | 32 "compositor_message.proto", |
33 "display_item.proto", | 33 "display_item.proto", |
34 "layer.proto", | 34 "layer.proto", |
35 "layer_position_constraint.proto", | 35 "layer_position_constraint.proto", |
36 "layer_tree_debug_state.proto", | 36 "layer_tree_debug_state.proto", |
| 37 "managed_memory_policy.proto", |
| 38 "memory_allocation.proto", |
37 "point.proto", | 39 "point.proto", |
38 "point3f.proto", | 40 "point3f.proto", |
39 "pointf.proto", | 41 "pointf.proto", |
40 "rect.proto", | 42 "rect.proto", |
41 "rectf.proto", | 43 "rectf.proto", |
42 "region.proto", | 44 "region.proto", |
43 "renderer_settings.proto", | 45 "renderer_settings.proto", |
44 "scroll_offset.proto", | 46 "scroll_offset.proto", |
45 "size.proto", | 47 "size.proto", |
46 "sizef.proto", | 48 "sizef.proto", |
47 "skregion.proto", | 49 "skregion.proto", |
48 "skrrect.proto", | 50 "skrrect.proto", |
49 "skxfermode.proto", | 51 "skxfermode.proto", |
50 "transform.proto", | 52 "transform.proto", |
51 "vector2df.proto", | 53 "vector2df.proto", |
52 ] | 54 ] |
53 | 55 |
54 deps = [ | 56 deps = [ |
55 "//third_party/protobuf:protobuf_lite", | 57 "//third_party/protobuf:protobuf_lite", |
56 ] | 58 ] |
57 | 59 |
58 cc_generator_options = "dllexport_decl=CC_PROTO_EXPORT:" | 60 cc_generator_options = "dllexport_decl=CC_PROTO_EXPORT:" |
59 cc_include = "cc/proto/cc_proto_export.h" | 61 cc_include = "cc/proto/cc_proto_export.h" |
60 | 62 |
61 defines = [ "CC_PROTO_IMPLEMENTATION" ] | 63 defines = [ "CC_PROTO_IMPLEMENTATION" ] |
62 | 64 |
63 # Warn if clang creates exit destructors. | 65 # Warn if clang creates exit destructors. |
64 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] | 66 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] |
65 } | 67 } |
OLD | NEW |