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

Unified Diff: mojo/converters/BUILD.gn

Issue 640893003: Move mojo/services/public/cpp TypeConverters to mojo/converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN. Created 6 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
Index: mojo/converters/BUILD.gn
diff --git a/mojo/converters/BUILD.gn b/mojo/converters/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..584d7a4c30c157a833d8b4ddfe9ef8d2a100d866
--- /dev/null
+++ b/mojo/converters/BUILD.gn
@@ -0,0 +1,69 @@
+# Copyright 2014 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.
+
+# GYP version: mojo/mojo_converters.gypi:mojo_converters
+component("converters") {
msw 2014/10/09 19:23:09 Should we have consistent naming between GYP's "mo
jamesr 2014/10/09 19:30:54 The unit test executable names all have mojo_ pref
msw 2014/10/10 00:28:58 Thanks for the naming explanations, that makes sen
+ public_deps = [
+ "//ui/gfx",
+ ]
+ deps = [
+ "//base",
+ "//cc",
+ "//cc/surfaces",
+ "//gpu",
+ "//skia",
+ "//ui/events",
+ "//ui/gfx/geometry",
+ "//mojo/environment:chromium",
+ "//mojo/public/c/system:for_component",
+ "//mojo/services/public/interfaces/geometry",
+ "//mojo/services/public/interfaces/input_events",
+ "//mojo/services/public/interfaces/surfaces:surface_id",
+ "//mojo/services/public/interfaces/surfaces",
+ ]
+
+ defines = [
+ "MOJO_CONVERTERS_IMPLEMENTATION",
jamesr 2014/10/09 19:30:54 why put all converters in one component? seems lik
msw 2014/10/10 00:28:58 Done, I misunderstood this as your intention, but
+ ]
+
+ sources = [
+ "geometry_type_converters.cc",
+ "geometry_type_converters.h",
+ "input_event_names.h",
+ "input_events_type_converters.cc",
+ "input_events_type_converters.h",
+ "mojo_converters_export.h",
+ "mojo_extended_key_event_data.cc",
+ "mojo_extended_key_event_data.h",
+ "surfaces_type_converters.cc",
+ "surfaces_type_converters.h",
+ "surfaces_utils.cc",
+ "surfaces_utils.h",
+ ]
+}
+
+# GYP version: mojo/mojo_converters.gypi:mojo_converters_unittests
+test("converters_unittests") {
msw 2014/10/09 19:23:09 Should I split the test target into it's own sub-d
+ deps = [
+ "//base",
+ "//base/test:test_support",
+ "//cc",
+ "//cc/surfaces",
+ "//gpu",
+ "//mojo/converters",
+ "//mojo/edk/test:run_all_unittests",
+ "//mojo/environment:chromium",
+ "//mojo/services/public/interfaces/geometry",
+ "//mojo/services/public/interfaces/surfaces",
+ "//skia",
+ "//testing/gtest",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ "//ui/gfx:test_support",
+ ]
+
+ sources = [
+ "surface_unittest.cc"
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698