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

Unified Diff: examples/python/BUILD.gn

Issue 796373006: Content handler for python. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: examples/python/BUILD.gn
diff --git a/examples/python/BUILD.gn b/examples/python/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..4ef5153da34c988c5c19f54bc8cf8d40cb67371d
--- /dev/null
+++ b/examples/python/BUILD.gn
@@ -0,0 +1,58 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
qsr 2015/01/07 15:14:45 This is now wrong. (2014 -> 2015)
etiennej 2015/01/08 11:23:12 Done.
+# 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")
+import("//mojo/public/tools/bindings/mojom.gni")
+import("//mojo/public/python/rules.gni")
+
+group("python") {
+ testonly = true
+ deps = [
+ ":python_apptests",
+ ":py_service",
+ ]
+}
+
+mojo_native_application("python_apptests") {
+ testonly = true
+ deps = [
qsr 2015/01/07 15:14:45 order seems wrong. Does gn format solve this? Othe
etiennej 2015/01/08 11:23:12 Done. gn format does not fix that.
+ ":bindings",
+ "//base",
+ "//mojo/application",
+ "//mojo/application:test_support",
+ "//mojo/public/cpp/bindings",
+ "//mojo/public/cpp/utility",
+ "//testing/gtest",
+ ]
+
+ sources = [
+ "python_apptest.cc",
+ ]
+
+ datadeps = [
+ ":py_service",
+ ]
+}
+
+python_packaged_application("py_service") {
+ sources = [
+ "__mojo__.py",
+ ]
+ mojom_deps = [
+ ":bindings",
+ "//mojo/public/interfaces/application",
+ ]
+ deps = [
+ "//mojo/public/python:packaged_bindings",
+ ]
+ datadeps = [
+ "//mojo/python/content_handler",
+ ]
+}
+
+mojom("bindings") {
+ sources = [
+ "echo_service.mojom",
+ ]
+}
« no previous file with comments | « examples/BUILD.gn ('k') | examples/python/__mojo__.py » ('j') | examples/python/__mojo__.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698