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 assert(is_android) | 5 assert(is_android) |
6 | 6 |
7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 import("//mojo/generate_mojo_shell_assets_list.gni") | 9 import("//mojo/generate_mojo_shell_assets_list.gni") |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 # On android, the executable is also the native library used by the apk. | 34 # On android, the executable is also the native library used by the apk. |
35 # It means dynamic symbols must be preserved and exported. | 35 # It means dynamic symbols must be preserved and exported. |
36 ldflags = [ "-Wl,--export-dynamic" ] | 36 ldflags = [ "-Wl,--export-dynamic" ] |
37 } | 37 } |
38 | 38 |
39 copy("copy_mandoline_runner") { | 39 copy("copy_mandoline_runner") { |
40 deps = [ | 40 deps = [ |
41 ":mandoline_runner", | 41 ":mandoline_runner", |
42 ] | 42 ] |
43 sources = [ | 43 sources = [ |
44 "$root_out_dir/exe.stripped/mandoline_runner", | 44 "$root_out_dir/mandoline_runner", |
45 ] | 45 ] |
46 outputs = [ | 46 outputs = [ |
47 "$root_out_dir/lib.stripped/libmandoline_runner$android_product_extension", | 47 "$root_shlib_dir/${shlib_prefix}mandoline_runner$shlib_extension", |
48 ] | 48 ] |
49 } | 49 } |
50 | 50 |
51 copy_ex("copy_mandoline_assets") { | 51 copy_ex("copy_mandoline_assets") { |
52 clear_dir = true | 52 clear_dir = true |
53 dest = mandoline_assets_dir | 53 dest = mandoline_assets_dir |
54 deps = [ | 54 deps = [ |
55 "//components/devtools_service", | 55 "//components/devtools_service", |
56 "//components/html_viewer", | 56 "//components/html_viewer", |
57 "//components/resource_provider", | 57 "//components/resource_provider", |
58 "//mandoline/services/core_services", | 58 "//mandoline/services/core_services", |
59 "//mojo/runner:bootstrap", | 59 "//mojo/runner:bootstrap", |
60 "//mojo/runner:bootstrap_java", | 60 "//mojo/runner:bootstrap_java", |
61 "//mojo/services/network", | 61 "//mojo/services/network", |
62 ] | 62 ] |
63 sources = [ | 63 sources = [ |
64 "$root_out_dir/lib.stripped/libbootstrap$android_product_extension", | |
65 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", | 64 "$root_out_dir/obj/mojo/runner/bootstrap_java.dex.jar", |
| 65 "$root_shlib_dir/${shlib_prefix}bootstrap$shlib_extension", |
66 ] | 66 ] |
67 | 67 |
68 # Directories can't be specified as sources so pass manually to the script. | 68 # Directories can't be specified as sources so pass manually to the script. |
69 args = [ | 69 args = [ |
70 "--files=" + rebase_path("$root_out_dir/core_services", root_build_dir), | 70 "--files=" + rebase_path("$root_out_dir/core_services", root_build_dir), |
71 "--files=" + rebase_path("$root_out_dir/network_service", root_build_dir), | 71 "--files=" + rebase_path("$root_out_dir/network_service", root_build_dir), |
72 "--files=" + rebase_path("$root_out_dir/resource_provider", root_build_dir), | 72 "--files=" + rebase_path("$root_out_dir/resource_provider", root_build_dir), |
73 "--files=" + rebase_path("$root_out_dir/devtools_service", root_build_dir), | 73 "--files=" + rebase_path("$root_out_dir/devtools_service", root_build_dir), |
74 "--files=" + rebase_path("$root_out_dir/html_viewer", root_build_dir), | 74 "--files=" + rebase_path("$root_out_dir/html_viewer", root_build_dir), |
75 ] | 75 ] |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 android_resources("mandoline_apk_resources") { | 110 android_resources("mandoline_apk_resources") { |
111 custom_package = "org.chromium.mandoline" | 111 custom_package = "org.chromium.mandoline" |
112 resource_dirs = [ "apk/res" ] | 112 resource_dirs = [ "apk/res" ] |
113 } | 113 } |
114 | 114 |
115 android_apk("mandoline_apk") { | 115 android_apk("mandoline_apk") { |
116 apk_name = "Mandoline" | 116 apk_name = "Mandoline" |
117 | 117 |
118 android_manifest = "apk/AndroidManifest.xml" | 118 android_manifest = "apk/AndroidManifest.xml" |
119 | 119 |
120 native_libs = [ "libmandoline_runner$android_product_extension" ] | 120 native_libs = [ "${shlib_prefix}mandoline_runner$shlib_extension" ] |
121 | 121 |
122 asset_location = mandoline_assets_dir | 122 asset_location = mandoline_assets_dir |
123 | 123 |
124 deps = [ | 124 deps = [ |
125 ":build_mandoline_assets", | 125 ":build_mandoline_assets", |
126 ":copy_mandoline_runner", | 126 ":copy_mandoline_runner", |
127 ":java", | 127 ":java", |
128 ":mandoline_apk_resources", | 128 ":mandoline_apk_resources", |
129 "//mojo/runner:java", | 129 "//mojo/runner:java", |
130 "//mojo/runner:resources", | 130 "//mojo/runner:resources", |
131 "//base:base_java", | 131 "//base:base_java", |
132 "//third_party/android_tools:google_play_services_default_resources", | 132 "//third_party/android_tools:google_play_services_default_resources", |
133 "//ui/platform_window/android:platform_window_java", | 133 "//ui/platform_window/android:platform_window_java", |
134 ] | 134 ] |
135 } | 135 } |
OLD | NEW |