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

Unified Diff: mojo/platform_handle/BUILD.gn

Issue 1578423002: Added PlatformHandle thunks. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 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/platform_handle/BUILD.gn
diff --git a/mojo/platform_handle/BUILD.gn b/mojo/platform_handle/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..a7132fcaeb85134bb1e4a02ed85f9ef299cecf35
--- /dev/null
+++ b/mojo/platform_handle/BUILD.gn
@@ -0,0 +1,47 @@
+# 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("//mojo/public/mojo_application.gni")
+
+source_set("platform_handle") {
+ sources = [
+ "platform_handle_private_thunks.cc",
+ "platform_handle_private_thunks.h",
+ ]
+
+ deps = [
+ ":defs",
+ "//mojo/public/c/system",
+ ]
+
+ defines = [ "PLATFORM_HANDLE_IMPLEMENTATION" ]
+}
+
+# Only targets that are registering the thunks should depend upon this.
+source_set("defs") {
+ sources = [
+ "platform_handle_functions.h",
+ ]
+ deps = [
+ "//mojo/public/c/system:system",
+ ]
+}
+
+mojo_native_application("platform_handle_apptest") {
+ output_name = "platform_handle_apptests"
+
+ testonly = true
+
+ sources = [
+ "platform_handle_apptest.cc",
+ ]
+
+ deps = [
+ ":defs",
+ ":platform_handle",
+ "//mojo/public/cpp/application:standalone",
+ "//mojo/public/cpp/application:test_support_standalone",
+ "//mojo/public/cpp/environment",
+ "//mojo/public/cpp/system",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698