| 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("//services/catalog/public/tools/catalog.gni") | 5 import("//services/catalog/public/tools/catalog.gni") |
| 6 import("//services/service_manager/public/service_manifest.gni") | 6 import("//services/service_manager/public/service_manifest.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 # Target that builders build. | 9 # Target that builders build. |
| 10 group("all") { | 10 group("all") { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 ] | 31 ] |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 | 34 |
| 35 # This is the catalog of services available to a standalone mash environment. | 35 # This is the catalog of services available to a standalone mash environment. |
| 36 # Build //mash/runner to generate the runner executable. | 36 # Build //mash/runner to generate the runner executable. |
| 37 catalog("catalog") { | 37 catalog("catalog") { |
| 38 testonly = true | 38 testonly = true |
| 39 | 39 |
| 40 standalone_services = [ | 40 standalone_services = [ |
| 41 "catalog_viewer", |
| 42 "leveldb", |
| 43 "mash_session", |
| 44 "mus_demo", |
| 45 "quick_launch", |
| 46 "task_viewer", |
| 47 "test_ime_driver", |
| 48 "tracing", |
| 49 "ui", |
| 50 |
| 51 # TODO(rockot): It seems like a layering violation to have these service |
| 52 # names referenced here, but it's the most convenient thing to do for now, |
| 53 # and this is only for developers. |
| 54 # |
| 55 # Note that there are no build-time dependencies on the actual Chrome |
| 56 # binary implied by mash:all or other targets here. This only ensures that |
| 57 # if you have such a binary built, the runner will be able to locate it. |
| 58 "chrome_content_browser", |
| 59 "chrome_content_gpu", |
| 60 "chrome_content_plugin", |
| 61 "chrome_content_renderer", |
| 62 "chrome_content_utility", |
| 63 ] |
| 64 |
| 65 executable_overrides = [ "chrome_content_browser:@EXE_DIR/chrome" ] |
| 66 |
| 67 included_catalogs = [ "${root_gen_dir}/mash/example/catalog.json" ] |
| 68 |
| 69 deps = [ |
| 41 "//components/leveldb:manifest", | 70 "//components/leveldb:manifest", |
| 42 "//mash/catalog_viewer:manifest", | 71 "//mash/catalog_viewer:manifest", |
| 72 "//mash/example:catalog", |
| 43 "//mash/quick_launch:manifest", | 73 "//mash/quick_launch:manifest", |
| 44 "//mash/session:manifest", | 74 "//mash/session:manifest", |
| 45 "//mash/task_viewer:manifest", | 75 "//mash/task_viewer:manifest", |
| 46 "//services/tracing:manifest", | 76 "//services/tracing:manifest", |
| 47 "//services/ui:manifest", | 77 "//services/ui:manifest", |
| 48 "//services/ui/demo:manifest", | 78 "//services/ui/demo:manifest", |
| 49 "//services/ui/ime/test_ime_driver:manifest", | 79 "//services/ui/ime/test_ime_driver:manifest", |
| 50 | 80 |
| 51 # TODO(rockot): It seems like a layering violation to have these service | 81 # See the note above about dependencies on Chrome. |
| 52 # names referenced here, but it's the most convenient thing to do for now, | 82 "//chrome/app:service_manifests", |
| 53 # and this is only for developers. | |
| 54 # | |
| 55 # Note that there are no build-time dependencies on the actual Chrome | |
| 56 # binary implied by mash:all or other targets here. This only ensures that | |
| 57 # if you have such a binary built, the runner will be able to locate it. | |
| 58 "//chrome/app:chrome_content_browser_manifest", | |
| 59 "//chrome/app:chrome_content_gpu_manifest", | |
| 60 "//chrome/app:chrome_content_plugin_manifest", | |
| 61 "//chrome/app:chrome_content_renderer_manifest", | |
| 62 "//chrome/app:chrome_content_utility_manifest", | |
| 63 ] | 83 ] |
| 64 | 84 |
| 65 executable_overrides = [ "content_browser:@EXE_DIR/chrome" ] | 85 if (is_chromeos) { |
| 86 standalone_services += [ "ash" ] |
| 66 | 87 |
| 67 catalog_deps = [ "//mash/example:catalog" ] | 88 deps += [ "//ash/mus:manifest" ] |
| 68 | |
| 69 if (is_chromeos) { | |
| 70 standalone_services += [ "//ash/mus:manifest" ] | |
| 71 } | 89 } |
| 72 | 90 |
| 73 if (is_linux && !is_android) { | 91 if (is_linux && !is_android) { |
| 74 standalone_services += [ "//components/font_service:manifest" ] | 92 standalone_services += [ "font_service" ] |
| 93 |
| 94 deps += [ "//components/font_service:manifest" ] |
| 75 } | 95 } |
| 76 } | 96 } |
| 77 | 97 |
| 78 copy("mash_catalog") { | 98 copy("mash_catalog") { |
| 79 testonly = true | 99 testonly = true |
| 100 deps = [ |
| 101 ":catalog", |
| 102 ] |
| 80 sources = get_target_outputs(":catalog") | 103 sources = get_target_outputs(":catalog") |
| 81 outputs = [ | 104 outputs = [ |
| 82 "$root_out_dir/mash_catalog.json", | 105 "$root_out_dir/mash_catalog.json", |
| 83 ] | 106 ] |
| 84 deps = [ | |
| 85 ":catalog", | |
| 86 ] | |
| 87 } | 107 } |
| 88 | 108 |
| 89 group("browser") { | 109 group("browser") { |
| 90 testonly = true | 110 testonly = true |
| 91 | 111 |
| 92 deps = [ | 112 deps = [ |
| 93 ":all", | 113 ":all", |
| 94 "//mash/browser", | 114 "//mash/browser", |
| 95 "//mash/webtest", | 115 "//mash/webtest", |
| 96 ] | 116 ] |
| 97 } | 117 } |
| 98 | 118 |
| 99 if (is_chromeos) { | 119 if (is_chromeos) { |
| 100 # TODO(jamescook): Move these tests into //ash/mus. | 120 # TODO(jamescook): Move these tests into //ash/mus. |
| 101 test("mash_unittests") { | 121 test("mash_unittests") { |
| 102 sources = [ | 122 sources = [ |
| 103 "test/mash_test_suite.cc", | 123 "test/mash_test_suite.cc", |
| 104 "test/mash_test_suite.h", | 124 "test/mash_test_suite.h", |
| 105 "test/mash_unittests.cc", | 125 "test/mash_unittests.cc", |
| 106 ] | 126 ] |
| 107 deps = [ | 127 deps = [ |
| 108 "//ash/common:unittests", | 128 "//ash/common:unittests", |
| 109 "//ash/common/test:test_support", | 129 "//ash/common/test:test_support", |
| 110 "//ash/mus:resources", | 130 "//ash/mus:resources", |
| 111 "//ash/mus:unittests", | 131 "//ash/mus:unittests", |
| 112 "//base", | 132 "//base", |
| 113 "//base/test:test_support", | 133 "//base/test:test_support", |
| 114 "//cc", | 134 "//cc", |
| 115 "//cc:test_support", | 135 "//cc:test_support", |
| 116 "//mojo/edk/system", | 136 "//services/service_manager/background:main", |
| 117 "//services/catalog:lib", | |
| 118 "//ui/aura", | 137 "//ui/aura", |
| 119 "//ui/base", | 138 "//ui/base", |
| 120 "//ui/compositor:test_support", | 139 "//ui/compositor:test_support", |
| 121 "//ui/gl:test_support", | 140 "//ui/gl:test_support", |
| 122 ] | 141 ] |
| 123 data_deps = [ | 142 data_deps = [ |
| 124 ":mash_unittests_catalog_copy", | 143 ":unittests_manifest", |
| 125 "//ash/mus:resources", | 144 "//ash/mus:resources", |
| 126 ] | 145 ] |
| 127 } | 146 } |
| 128 | 147 |
| 129 service_manifest("unittests_manifest") { | 148 service_manifest("unittests_manifest") { |
| 130 name = "mash_unittests" | 149 name = "mash_unittests" |
| 131 source = "unittests_manifest.json" | 150 source = "unittests_manifest.json" |
| 132 } | 151 } |
| 133 | |
| 134 catalog("mash_unittests_catalog") { | |
| 135 testonly = true | |
| 136 | |
| 137 embedded_services = [ ":unittests_manifest" ] | |
| 138 | |
| 139 catalog_deps = [ ":catalog" ] | |
| 140 } | |
| 141 | |
| 142 copy("mash_unittests_catalog_copy") { | |
| 143 testonly = true | |
| 144 sources = get_target_outputs(":mash_unittests_catalog") | |
| 145 outputs = [ | |
| 146 "${root_out_dir}/mash_unittests_catalog.json", | |
| 147 ] | |
| 148 deps = [ | |
| 149 ":mash_unittests_catalog", | |
| 150 ] | |
| 151 } | |
| 152 } | 152 } |
| OLD | NEW |