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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/proto/cc_proto_export.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/BUILD.gn
diff --git a/cc/proto/BUILD.gn b/cc/proto/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..eb08f2309051c9acfd1ed0c5a5ed80b697a51d0a
--- /dev/null
+++ b/cc/proto/BUILD.gn
@@ -0,0 +1,48 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//third_party/protobuf/proto_library.gni")
+
+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.
+ deps = [
+ ":cc_proto",
+ ]
+}
+
+component("cc_proto") {
+ 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
+
+ public_deps = [
+ ":proto_internal",
+ ]
+}
+
+proto_library("proto_internal") {
+ visibility = [ ":cc_proto" ]
+
+ sources = [
+ # TODO(dtrainor): Move the ui/gfx related protos to ui/gfx/proto once it is
+ # possible to include protos from other directories/targets (see
+ # crbug.com/542423).
+ "point.proto",
+ "pointf.proto",
+ "rect.proto",
+ "rectf.proto",
+ "size.proto",
+ "sizef.proto",
+ "transform.proto",
+ ]
+
+ deps = [
+ "//third_party/protobuf:protobuf_lite",
+ ]
+
+ cc_generator_options = "dllexport_decl=CC_PROTO_EXPORT:"
+ cc_include = "cc/proto/cc_proto_export.h"
+
+ defines = [ "CC_PROTO_IMPLEMENTATION" ]
+
+ # Warn if clang creates exit destructors.
+ extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
+}
« 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