| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 component("application_manager") { | 8 component("application_manager") { |
| 9 output_name = "mojo_application_manager" | 9 output_name = "mojo_application_manager" |
| 10 sources = [ | 10 sources = [ |
| 11 "application_loader.h", | 11 "application_loader.h", |
| 12 "application_manager.cc", | 12 "application_manager.cc", |
| 13 "application_manager.h", | 13 "application_manager.h", |
| 14 "data_pipe_peek.cc", | 14 "data_pipe_peek.cc", |
| 15 "data_pipe_peek.h", | 15 "data_pipe_peek.h", |
| 16 "fetcher.cc", |
| 17 "fetcher.h", |
| 16 "local_fetcher.cc", | 18 "local_fetcher.cc", |
| 17 "local_fetcher.h", | 19 "local_fetcher.h", |
| 18 "network_fetcher.cc", | 20 "network_fetcher.cc", |
| 19 "network_fetcher.h", | 21 "network_fetcher.h", |
| 20 "fetcher.cc", | 22 "query_util.cc", |
| 21 "fetcher.h", | 23 "query_util.h", |
| 22 "shell_impl.cc", | 24 "shell_impl.cc", |
| 23 "shell_impl.h", | 25 "shell_impl.h", |
| 24 ] | 26 ] |
| 25 | 27 |
| 26 defines = [ "MOJO_APPLICATION_MANAGER_IMPLEMENTATION" ] | 28 defines = [ "MOJO_APPLICATION_MANAGER_IMPLEMENTATION" ] |
| 27 | 29 |
| 28 public_deps = [ | 30 public_deps = [ |
| 29 "//base", | 31 "//base", |
| 30 "//mojo/common", | 32 "//mojo/common", |
| 31 "//mojo/public/interfaces/application:application", | 33 "//mojo/public/interfaces/application:application", |
| 32 "//mojo/services/network/public/interfaces", | 34 "//mojo/services/network/public/interfaces", |
| 33 "//url", | 35 "//url", |
| 34 ] | 36 ] |
| 35 deps = [ | 37 deps = [ |
| 36 "//base/third_party/dynamic_annotations", | 38 "//base/third_party/dynamic_annotations", |
| 37 "//crypto:crypto", | 39 "//crypto:crypto", |
| 38 "//url", | 40 "//url", |
| 39 "//mojo/edk/system", | 41 "//mojo/edk/system", |
| 40 "//mojo/environment:chromium", | 42 "//mojo/environment:chromium", |
| 41 "//mojo/services/content_handler/public/interfaces", | 43 "//mojo/services/content_handler/public/interfaces", |
| 42 ] | 44 ] |
| 43 } | 45 } |
| 44 | 46 |
| 45 test("mojo_application_manager_unittests") { | 47 test("mojo_application_manager_unittests") { |
| 46 sources = [ | 48 sources = [ |
| 47 "application_manager_unittest.cc", | 49 "application_manager_unittest.cc", |
| 50 "query_util_unittest.cc", |
| 48 ] | 51 ] |
| 49 | 52 |
| 50 deps = [ | 53 deps = [ |
| 51 ":application_manager", | 54 ":application_manager", |
| 52 ":test_bindings", | 55 ":test_bindings", |
| 53 "//base", | 56 "//base", |
| 54 "//mojo/application", | 57 "//mojo/application", |
| 55 "//mojo/common", | 58 "//mojo/common", |
| 56 "//mojo/edk/test:run_all_unittests", | 59 "//mojo/edk/test:run_all_unittests", |
| 57 "//mojo/environment:chromium", | 60 "//mojo/environment:chromium", |
| 58 "//mojo/public/cpp/application", | 61 "//mojo/public/cpp/application", |
| 59 "//mojo/public/cpp/bindings", | 62 "//mojo/public/cpp/bindings", |
| 60 "//testing/gtest", | 63 "//testing/gtest", |
| 61 "//url", | 64 "//url", |
| 62 ] | 65 ] |
| 63 } | 66 } |
| 64 | 67 |
| 65 mojom("test_bindings") { | 68 mojom("test_bindings") { |
| 66 sources = [ | 69 sources = [ |
| 67 "test.mojom", | 70 "test.mojom", |
| 68 ] | 71 ] |
| 69 } | 72 } |
| OLD | NEW |