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

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

Issue 1137223002: core_services: Move resource_provider to core_services. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove data_dep per discussion with sky Created 5 years, 7 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/html_viewer/BUILD.gn ('k') | components/resource_provider/android/android_hooks.cc » ('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/mojo_application_package.gni") 5 import("//mojo/mojo_application_package.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//third_party/mojo/src/mojo/public/mojo_application.gni") 7 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
11 11
12 java_library_path = "$target_out_dir/java_library.dex.jar" 12 java_library_path = "$target_out_dir/java_library.dex.jar"
13 13
14 mojo_android_application("resource_provider") { 14 mojo_android_application("resource_provider") {
15 input_so = "$root_out_dir/lib.stripped/libresource_provider_lib.so" 15 input_so = "$root_out_dir/lib.stripped/libresource_provider_lib.so"
16 input_dex_jar = java_library_path 16 input_dex_jar = java_library_path
17 } 17 }
18 18
19 shared_library("resource_provider_lib") { 19 shared_library("resource_provider_lib") {
20 sources = [ 20 sources = [
21 "android/android_hooks.cc", 21 "android/android_hooks.cc",
22 "main.cc", 22 "main.cc",
23 "resource_provider_app.cc",
24 "resource_provider_app.h",
25 ] 23 ]
26 24
27 deps = [ 25 deps = [
28 ":jni_headers", 26 ":jni_headers",
29 ":lib", 27 ":lib",
30 "//base", 28 "//base",
31 "//components/resource_provider/public/interfaces", 29 "//components/resource_provider/public/interfaces",
32 "//mojo/application",
33 "//mojo/environment:chromium", 30 "//mojo/environment:chromium",
34 "//third_party/mojo/src/mojo/public/c/system:for_shared_library", 31 "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
35 "//url", 32 "//url",
36 ] 33 ]
37 } 34 }
38 35
39 generate_jni("jni_headers") { 36 generate_jni("jni_headers") {
40 sources = [ 37 sources = [
41 "android/java/org/chromium/resource_provider/Main.java", 38 "android/java/org/chromium/resource_provider/Main.java",
42 ] 39 ]
(...skipping 12 matching lines...) Expand all
55 dex_path = java_library_path 52 dex_path = java_library_path
56 53
57 deps = [ 54 deps = [
58 ":java_classes", 55 ":java_classes",
59 ] 56 ]
60 } 57 }
61 } else { 58 } else {
62 mojo_native_application("resource_provider") { 59 mojo_native_application("resource_provider") {
63 sources = [ 60 sources = [
64 "main.cc", 61 "main.cc",
65 "resource_provider_app.cc",
66 "resource_provider_app.h",
67 ] 62 ]
68 63
69 deps = [ 64 deps = [
70 ":lib", 65 ":lib",
71 "//base", 66 "//base",
72 "//components/resource_provider/public/interfaces", 67 "//components/resource_provider/public/interfaces",
73 "//mojo/application",
74 "//mojo/environment:chromium", 68 "//mojo/environment:chromium",
75 "//url", 69 "//url",
76 ] 70 ]
77 } 71 }
78 } 72 }
79 73
80 source_set("lib") { 74 source_set("lib") {
81 sources = [ 75 sources = [
82 "file_utils.cc", 76 "file_utils.cc",
83 "file_utils.h", 77 "file_utils.h",
78 "resource_provider_app.cc",
79 "resource_provider_app.h",
84 "resource_provider_impl.cc", 80 "resource_provider_impl.cc",
85 "resource_provider_impl.h", 81 "resource_provider_impl.h",
86 ] 82 ]
87 83
88 deps = [ 84 deps = [
89 "//base", 85 "//base",
90 "//components/resource_provider/public/interfaces", 86 "//components/resource_provider/public/interfaces",
87 "//mojo/application",
91 "//mojo/common:common_base", 88 "//mojo/common:common_base",
92 "//mojo/platform_handle", 89 "//mojo/platform_handle",
93 "//url", 90 "//url",
94 ] 91 ]
95 } 92 }
96 93
97 test("tests") { 94 test("tests") {
98 output_name = "resource_provider_unittests" 95 output_name = "resource_provider_unittests"
99 sources = [ 96 sources = [
100 "file_utils_unittest.cc", 97 "file_utils_unittest.cc",
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 "//components/resource_provider/public/interfaces", 129 "//components/resource_provider/public/interfaces",
133 "//mojo/application", 130 "//mojo/application",
134 "//mojo/application:test_support", 131 "//mojo/application:test_support",
135 "//mojo/common", 132 "//mojo/common",
136 "//mojo/platform_handle", 133 "//mojo/platform_handle",
137 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", 134 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
138 ] 135 ]
139 136
140 data_deps = [ ":resource_provider" ] 137 data_deps = [ ":resource_provider" ]
141 } 138 }
OLDNEW
« no previous file with comments | « components/html_viewer/BUILD.gn ('k') | components/resource_provider/android/android_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698