| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
| 6 import("//mojo/public/mojo_application_manifest.gni") | 6 import("//mojo/public/mojo_application_manifest.gni") |
| 7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
| 8 | 8 |
| 9 group("child") { | 9 group("child") { |
| 10 testonly = true | 10 testonly = true |
| 11 deps = [ | 11 deps = [ |
| 12 ":apptests", | 12 ":apptests", |
| 13 ] | 13 ] |
| 14 } | 14 } |
| 15 | 15 |
| 16 source_set("test_native_main") { | 16 source_set("test_native_main") { |
| 17 sources = [ | 17 sources = [ |
| 18 "test_native_main.cc", | 18 "test_native_main.cc", |
| 19 "test_native_main.h", | 19 "test_native_main.h", |
| 20 ] | 20 ] |
| 21 | 21 |
| 22 public_deps = [ | 22 public_deps = [ |
| 23 "//mojo/shell/runner:init", | 23 "//services/shell/runner:init", |
| 24 ] | 24 ] |
| 25 | 25 |
| 26 deps = [ | 26 deps = [ |
| 27 "//base", | 27 "//base", |
| 28 "//mojo/edk/system", | 28 "//mojo/edk/system", |
| 29 "//mojo/message_pump", | 29 "//mojo/message_pump", |
| 30 "//mojo/shell/public/cpp", | 30 "//services/shell/public/cpp", |
| 31 "//mojo/shell/runner/common", | 31 "//services/shell/runner/common", |
| 32 ] | 32 ] |
| 33 } | 33 } |
| 34 | 34 |
| 35 mojom("apptest_interfaces") { | 35 mojom("apptest_interfaces") { |
| 36 sources = [ | 36 sources = [ |
| 37 "test_native_service.mojom", | 37 "test_native_service.mojom", |
| 38 ] | 38 ] |
| 39 | 39 |
| 40 deps = [ | 40 deps = [ |
| 41 "//mojo/shell/public/interfaces", | 41 "//services/shell/public/interfaces", |
| 42 ] | 42 ] |
| 43 | 43 |
| 44 import_dirs = [ "//mojo/services" ] | 44 import_dirs = [ "//mojo/services" ] |
| 45 } | 45 } |
| 46 | 46 |
| 47 mojo_native_application("apptests") { | 47 mojo_native_application("apptests") { |
| 48 output_name = "mojo_runner_child_apptest" | 48 output_name = "mojo_runner_child_apptest" |
| 49 testonly = true | 49 testonly = true |
| 50 avoid_runner_cycle = true | 50 avoid_runner_cycle = true |
| 51 | 51 |
| 52 sources = [ | 52 sources = [ |
| 53 "native_apptest.cc", | 53 "native_apptest.cc", |
| 54 ] | 54 ] |
| 55 | 55 |
| 56 deps = [ | 56 deps = [ |
| 57 ":apptest_interfaces", | 57 ":apptest_interfaces", |
| 58 "//base", | 58 "//base", |
| 59 "//base/test:test_config", | 59 "//base/test:test_config", |
| 60 "//mojo/shell/public/cpp:sources", | 60 "//services/shell/public/cpp:sources", |
| 61 "//mojo/shell/public/cpp:test_support", | 61 "//services/shell/public/cpp:test_support", |
| 62 ] | 62 ] |
| 63 | 63 |
| 64 data_deps = [ | 64 data_deps = [ |
| 65 ":manifest", | 65 ":manifest", |
| 66 ":native_target", | 66 ":native_target", |
| 67 ] | 67 ] |
| 68 } | 68 } |
| 69 | 69 |
| 70 mojo_application_manifest("manifest") { | 70 mojo_application_manifest("manifest") { |
| 71 application_name = "mojo_runner_child_apptest" | 71 application_name = "mojo_runner_child_apptest" |
| 72 source = "manifest.json" | 72 source = "manifest.json" |
| 73 } | 73 } |
| 74 | 74 |
| 75 executable("native_target") { | 75 executable("native_target") { |
| 76 output_name = "mojo_runner_child_apptest_native_target" | 76 output_name = "mojo_runner_child_apptest_native_target" |
| 77 testonly = true | 77 testonly = true |
| 78 | 78 |
| 79 sources = [ | 79 sources = [ |
| 80 "native_apptest_target.cc", | 80 "native_apptest_target.cc", |
| 81 ] | 81 ] |
| 82 | 82 |
| 83 deps = [ | 83 deps = [ |
| 84 ":apptest_interfaces", | 84 ":apptest_interfaces", |
| 85 ":test_native_main", | 85 ":test_native_main", |
| 86 "//base", | 86 "//base", |
| 87 "//build/config/sanitizers:deps", | 87 "//build/config/sanitizers:deps", |
| 88 "//mojo/shell/public/cpp", | 88 "//services/shell/public/cpp", |
| 89 ] | 89 ] |
| 90 } | 90 } |
| OLD | NEW |