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

Side by Side Diff: mandoline/app/android/BUILD.gn

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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/DEPS ('k') | mandoline/app/android/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 assert(is_android)
6
7 import("//build/config/android/config.gni")
8 import("//build/config/android/rules.gni")
9
10 group("android") {
11 deps = [
12 ":mandoline_apk",
13 ]
14 }
15
16 executable("mandoline_runner") {
17 deps = [
18 ":jni_headers",
19 "//base",
20 "//build/config/sanitizers:deps",
21 "//mandoline/ui/desktop_ui/public/interfaces",
22 "//mojo/common",
23 "//mojo/environment:chromium",
24 "//mojo/shell",
25 "//mojo/shell/package_manager",
26 "//mojo/shell/standalone:lib",
27 "//mojo/shell/standalone:main_lib",
28 "//mojo/shell/standalone:register_local_aliases_fwd",
29 ]
30
31 sources = [
32 "../register_local_aliases.cc",
33 "mandoline_activity.cc",
34 "mandoline_context_init.cc",
35 ]
36
37 # On android, the executable is also the native library used by the apk.
38 # It means dynamic symbols must be preserved and exported.
39 ldflags = [ "-Wl,--export-dynamic" ]
40 }
41
42 copy("copy_mandoline_runner") {
43 deps = [
44 ":mandoline_runner",
45 ]
46 sources = [
47 "$root_out_dir/mandoline_runner",
48 ]
49 outputs = [
50 "$root_shlib_dir/${shlib_prefix}mandoline_runner$shlib_extension",
51 ]
52 }
53
54 android_assets("mandoline_assets") {
55 deps = [
56 "//components/devtools_service:devtools_service_assets",
57 "//components/html_viewer:html_viewer_assets",
58 "//components/resource_provider:resource_provider_assets",
59 "//mandoline/services/core_services:core_services_assets",
60 "//mojo/services/network:network_assets",
61 "//mojo/shell/standalone:android_assets",
62 ]
63
64 if (use_aura) {
65 deps += [
66 "//mandoline/ui/desktop_ui:desktop_ui_assets",
67 "//mandoline/ui/omnibox:omnibox_assets",
68 ]
69 }
70 }
71
72 android_library("java") {
73 java_files = [ "apk/src/org/chromium/mandoline/MandolineActivity.java" ]
74
75 deps = [
76 "//base:base_java",
77 "//mojo/shell/standalone:java",
78 ]
79 }
80
81 generate_jni("jni_headers") {
82 sources = [
83 "apk/src/org/chromium/mandoline/MandolineActivity.java",
84 ]
85 jni_package = "mandoline"
86 }
87
88 android_resources("mandoline_apk_resources") {
89 custom_package = "org.chromium.mandoline"
90 resource_dirs = [ "apk/res" ]
91 }
92
93 android_apk("mandoline_apk") {
94 apk_name = "Mandoline"
95
96 android_manifest = "apk/AndroidManifest.xml"
97 native_libs = [ "${shlib_prefix}mandoline_runner$shlib_extension" ]
98 write_asset_list = true
99
100 deps = [
101 ":copy_mandoline_runner",
102 ":java",
103 ":mandoline_apk_resources",
104 ":mandoline_assets",
105 "//base:base_java",
106 "//mojo/shell/standalone:java",
107 "//mojo/shell/standalone:resources",
108 "//ui/platform_window/android:platform_window_java",
109 google_play_services_resources,
110 ]
111 }
OLDNEW
« no previous file with comments | « mandoline/app/DEPS ('k') | mandoline/app/android/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698