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

Side by Side Diff: cc/proto/BUILD.gn

Issue 1394353002: Add Protobuf support in cc for gfx objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix proto target name Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/proto/cc_proto_export.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/proto/cc_proto_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698