Chromium Code Reviews| 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", |
| + ] |
| +} |