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

Side by Side Diff: components/resource_provider/BUILD.gn

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « components/profile_service/profile_service_impl.cc ('k') | components/resource_provider/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//testing/test.gni") 8 import("//testing/test.gni")
9 9
10 if (is_android) { 10 if (is_android) {
11 import("//build/config/android/rules.gni") 11 import("//build/config/android/rules.gni")
12 12
13 java_library_path = "$target_out_dir/java_library.dex.jar" 13 java_library_path = "$target_out_dir/java_library.dex.jar"
14 14
15 mojo_android_application("resource_provider") { 15 mojo_android_application("resource_provider") {
16 input_so = 16 input_so =
17 "$root_shlib_dir/${shlib_prefix}resource_provider_lib$shlib_extension" 17 "$root_shlib_dir/${shlib_prefix}resource_provider_lib$shlib_extension"
18 input_dex_jar = java_library_path 18 input_dex_jar = java_library_path
19 deps = [ 19 deps = [
20 ":java_library", 20 ":java_library",
21 ":resource_provider_lib", 21 ":resource_provider_lib",
22 "//mojo/shell/public/cpp", 22 "//services/shell/public/cpp",
23 ] 23 ]
24 } 24 }
25 25
26 shared_library("resource_provider_lib") { 26 shared_library("resource_provider_lib") {
27 sources = [ 27 sources = [
28 "android/android_hooks.cc", 28 "android/android_hooks.cc",
29 "main.cc", 29 "main.cc",
30 ] 30 ]
31 31
32 deps = [ 32 deps = [
33 ":jni_headers", 33 ":jni_headers",
34 ":lib", 34 ":lib",
35 "//base", 35 "//base",
36 "//build/config/sanitizers:deps", 36 "//build/config/sanitizers:deps",
37 "//components/resource_provider/public/interfaces", 37 "//components/resource_provider/public/interfaces",
38 "//mojo/platform_handle:for_shared_library", 38 "//mojo/platform_handle:for_shared_library",
39 "//mojo/public/c/system:for_shared_library", 39 "//mojo/public/c/system:for_shared_library",
40 "//mojo/shell/public/cpp", 40 "//services/shell/public/cpp",
41 "//url", 41 "//url",
42 ] 42 ]
43 } 43 }
44 44
45 generate_jni("jni_headers") { 45 generate_jni("jni_headers") {
46 sources = [ 46 sources = [
47 "android/java/org/chromium/resource_provider/Main.java", 47 "android/java/org/chromium/resource_provider/Main.java",
48 ] 48 ]
49 jni_package = "components/resource_provider" 49 jni_package = "components/resource_provider"
50 } 50 }
(...skipping 16 matching lines...) Expand all
67 } else { 67 } else {
68 mojo_native_application("resource_provider") { 68 mojo_native_application("resource_provider") {
69 sources = [ 69 sources = [
70 "main.cc", 70 "main.cc",
71 ] 71 ]
72 72
73 deps = [ 73 deps = [
74 ":lib", 74 ":lib",
75 "//base", 75 "//base",
76 "//components/resource_provider/public/interfaces", 76 "//components/resource_provider/public/interfaces",
77 "//mojo/shell/public/cpp", 77 "//services/shell/public/cpp",
78 "//url", 78 "//url",
79 ] 79 ]
80 80
81 data_deps = [ 81 data_deps = [
82 ":manifest", 82 ":manifest",
83 ] 83 ]
84 } 84 }
85 85
86 mojo_application_manifest("manifest") { 86 mojo_application_manifest("manifest") {
87 application_name = "resource_provider" 87 application_name = "resource_provider"
(...skipping 10 matching lines...) Expand all
98 "resource_provider_impl.cc", 98 "resource_provider_impl.cc",
99 "resource_provider_impl.h", 99 "resource_provider_impl.h",
100 ] 100 ]
101 101
102 deps = [ 102 deps = [
103 "//base", 103 "//base",
104 "//components/resource_provider/public/interfaces", 104 "//components/resource_provider/public/interfaces",
105 "//mojo/common:common_base", 105 "//mojo/common:common_base",
106 "//mojo/platform_handle", 106 "//mojo/platform_handle",
107 "//mojo/services/tracing/public/cpp", 107 "//mojo/services/tracing/public/cpp",
108 "//mojo/shell/public/cpp", 108 "//services/shell/public/cpp",
109 "//url", 109 "//url",
110 ] 110 ]
111 } 111 }
112 112
113 test("resource_provider_unittests") { 113 test("resource_provider_unittests") {
114 sources = [ 114 sources = [
115 "file_utils_unittest.cc", 115 "file_utils_unittest.cc",
116 "resource_provider_unittest.cc", 116 "resource_provider_unittest.cc",
117 ] 117 ]
118 118
119 deps = [ 119 deps = [
120 ":lib", 120 ":lib",
121 ":test_interfaces", 121 ":test_interfaces",
122 "//base", 122 "//base",
123 "//components/resource_provider/public/interfaces", 123 "//components/resource_provider/public/interfaces",
124 "//mojo/shell/background:main", 124 "//services/shell/background:main",
125 "//mojo/shell/public/cpp:shell_test_support", 125 "//services/shell/public/cpp:shell_test_support",
126 "//mojo/shell/public/cpp/test:run_all_shelltests", 126 "//services/shell/public/cpp/test:run_all_shelltests",
127 "//testing/gtest", 127 "//testing/gtest",
128 "//url", 128 "//url",
129 ] 129 ]
130 130
131 data_deps = [ 131 data_deps = [
132 ":test_app", 132 ":test_app",
133 ":unittests_manifest", 133 ":unittests_manifest",
134 ] 134 ]
135 } 135 }
136 136
137 mojo_native_application("test_app") { 137 mojo_native_application("test_app") {
138 output_name = "resource_provider_test_app" 138 output_name = "resource_provider_test_app"
139 testonly = true 139 testonly = true
140 140
141 sources = [ 141 sources = [
142 "resource_provider_test_app.cc", 142 "resource_provider_test_app.cc",
143 ] 143 ]
144 144
145 resources = [ 145 resources = [
146 "//components/test/data/resource_provider/sample", 146 "//components/test/data/resource_provider/sample",
147 "//components/test/data/resource_provider/dir", 147 "//components/test/data/resource_provider/dir",
148 ] 148 ]
149 149
150 deps = [ 150 deps = [
151 ":test_interfaces", 151 ":test_interfaces",
152 "//base", 152 "//base",
153 "//components/resource_provider/public/cpp", 153 "//components/resource_provider/public/cpp",
154 "//components/resource_provider/public/interfaces", 154 "//components/resource_provider/public/interfaces",
155 "//mojo/shell/public/cpp", 155 "//services/shell/public/cpp",
156 "//mojo/shell/public/interfaces", 156 "//services/shell/public/interfaces",
157 ] 157 ]
158 158
159 data_deps = [ 159 data_deps = [
160 ":resource_provider", 160 ":resource_provider",
161 ":test_manifest", 161 ":test_manifest",
162 ] 162 ]
163 } 163 }
164 164
165 mojo_application_manifest("test_manifest") { 165 mojo_application_manifest("test_manifest") {
166 application_name = "resource_provider_test_app" 166 application_name = "resource_provider_test_app"
167 source = "test_manifest.json" 167 source = "test_manifest.json"
168 } 168 }
169 169
170 mojo_application_manifest("unittests_manifest") { 170 mojo_application_manifest("unittests_manifest") {
171 type = "exe" 171 type = "exe"
172 application_name = "resource_provider_unittests" 172 application_name = "resource_provider_unittests"
173 source = "unittests_manifest.json" 173 source = "unittests_manifest.json"
174 } 174 }
175 175
176 mojom("test_interfaces") { 176 mojom("test_interfaces") {
177 sources = [ 177 sources = [
178 "test.mojom", 178 "test.mojom",
179 ] 179 ]
180 } 180 }
OLDNEW
« no previous file with comments | « components/profile_service/profile_service_impl.cc ('k') | components/resource_provider/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698