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

Side by Side Diff: mandoline/services/core_services/BUILD.gn

Issue 1133543005: Use core_services for network_service on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change ifdefs 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 | « mandoline/app/core_services_initialization.cc ('k') | mandoline/services/core_services/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 #
5 # core_services should be thought of as a bundle of many of the services which
6 # we ship with.
4 7
5 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
6 import("//third_party/mojo/src/mojo/public/mojo_application.gni") 9 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
7 import("//testing/test.gni") 10 import("//testing/test.gni")
8 11
9 # core_services should be thought of as a bundle of many of the services which 12 if (is_android) {
10 # we ship with. 13 import("//build/config/android/rules.gni")
11 mojo_native_application("core_services") { 14
15 java_library_path = "$target_out_dir/java_library.dex.jar"
16
17 mojo_android_application("core_services") {
18 input_so = "$root_out_dir/lib.stripped/libcore_services.so"
19 input_dex_jar = java_library_path
20 }
21
22 shared_library("native_library") {
23 output_name = "core_services"
24
25 sources = [
26 "android_hooks.cc",
27 ]
28
29 deps = [
30 ":sources",
31 "//base",
32 "//net",
33 "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
34 ]
35 }
36
37 android_standalone_library("java_library") {
38 dex_path = java_library_path
39
40 deps = [
41 "//net/android:net_java",
42 ]
43 }
44 } else {
45 mojo_native_application("core_services") {
46 deps = [
47 ":sources",
48 ]
49 }
50 }
51
52 source_set("sources") {
12 sources = [ 53 sources = [
13 "core_services_application_delegate.cc", 54 "core_services_application_delegate.cc",
14 "main.cc", 55 "main.cc",
15 ] 56 ]
16 57
17 deps = [ 58 deps = [
18 "//base", 59 "//base",
19 "//components/clipboard:lib", 60 "//components/clipboard:lib",
20 "//components/surfaces:lib", 61 "//components/surfaces:lib",
21 "//components/view_manager:view_manager_lib", 62 "//components/view_manager:view_manager_lib",
22 "//mandoline/ui/browser:kiosk_wm_lib", 63 "//mandoline/ui/browser:kiosk_wm_lib",
23 "//mojo/application", 64 "//mojo/application",
24 "//mojo/common", 65 "//mojo/common",
25 "//mojo/common:tracing_impl", 66 "//mojo/common:tracing_impl",
26 "//mojo/environment:chromium", 67 "//mojo/environment:chromium",
68 "//mojo/services/network:lib",
27 "//mojo/services/tracing:lib", 69 "//mojo/services/tracing:lib",
28 "//third_party/mojo/src/mojo/public/interfaces/application", 70 "//third_party/mojo/src/mojo/public/interfaces/application",
29 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", 71 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
30 "//third_party/mojo_services/src/content_handler/public/interfaces", 72 "//third_party/mojo_services/src/content_handler/public/interfaces",
31 ] 73 ]
32
33 # TODO(erg): The android network service has some weirdness to let it link
34 # with java stuff. Someone who understand how that works should look at this.
35 if (!is_android) {
36 deps += [ "//mojo/services/network:lib" ]
37 }
38 } 74 }
OLDNEW
« no previous file with comments | « mandoline/app/core_services_initialization.cc ('k') | mandoline/services/core_services/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698