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

Side by Side Diff: content/shell/android/BUILD.gn

Issue 569923003: Make content_shell_apk build completely (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-fix-apk-resources
Patch Set: Rebase + remove redundant notifications define Created 6 years, 3 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 | « content/shell/BUILD.gn ('k') | ui/android/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 import("//third_party/icu/config.gni")
7 8
8 generate_jni("content_shell_jni_headers") { 9 generate_jni("content_shell_jni_headers") {
9 jni_package = "content/shell" 10 jni_package = "content/shell"
10 sources = [ 11 sources = [
11 "browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTe stsActivity.java", 12 "browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTe stsActivity.java",
12 "java/src/org/chromium/content_shell/ShellLayoutTestUtils.java", 13 "java/src/org/chromium/content_shell/ShellLayoutTestUtils.java",
13 "java/src/org/chromium/content_shell/ShellManager.java", 14 "java/src/org/chromium/content_shell/ShellManager.java",
14 "java/src/org/chromium/content_shell/Shell.java", 15 "java/src/org/chromium/content_shell/Shell.java",
15 ] 16 ]
16 } 17 }
17 18
18 shared_library("libcontent_shell_content_view") { 19 shared_library("libcontent_shell_content_view") {
19 # TODO(GYP,cjhopman): enable these when content_shell builds 20 testonly = true
20 deps = [ 21 deps = [
21 ":content_shell_jni_headers", 22 ":content_shell_jni_headers",
22 #"//content/shell:content_shell", 23 "//content/shell:content_shell_lib",
23 #"//content/shell:content_shell_pak", 24 "//content/shell:pak",
25 "//components/crash/browser",
24 "//skia", 26 "//skia",
25 "//media/base/android", 27 "//media/base/android",
26 ] 28 ]
27 sources = [ 29 sources = [
28 #"shell_library_loader.cc", 30 "shell_library_loader.cc",
29 #"shell_library_loader.h", 31 "shell_library_loader.h",
30 ] 32 ]
31 if (is_android_webview_build) { 33 if (is_android_webview_build) {
32 ldflags = [ 34 ldflags = [
33 "-lgabi++", 35 "-lgabi++",
34 ] 36 ]
35 } 37 }
36 } 38 }
37 39
38 android_resources("content_shell_java_resources") { 40 android_resources("content_shell_java_resources") {
41 testonly = true
39 resource_dirs = [ "java/res" ] 42 resource_dirs = [ "java/res" ]
40 custom_package = "org.chromium.content_shell" 43 custom_package = "org.chromium.content_shell"
41 } 44 }
42 45
43 android_library("content_shell_java") { 46 android_library("content_shell_java") {
47 testonly = true
44 deps = [ 48 deps = [
45 "//base:base_java", 49 "//base:base_java",
46 "//content/public/android:content_java", 50 "//content/public/android:content_java",
47 "//media/base/android:media_java", 51 "//media/base/android:media_java",
48 "//net/android:net_java", 52 "//net/android:net_java",
49 "//ui/android:ui_java", 53 "//ui/android:ui_java",
50 ":content_shell_java_resources", 54 ":content_shell_java_resources",
51 ] 55 ]
52 DEPRECATED_java_in_dir = "java/src" 56 DEPRECATED_java_in_dir = "java/src"
53 } 57 }
54 58
55 android_resources("content_shell_apk_resources") { 59 android_resources("content_shell_apk_resources") {
60 testonly = true
56 resource_dirs = [ "shell_apk/res" ] 61 resource_dirs = [ "shell_apk/res" ]
57 deps = [ 62 deps = [
58 ":content_shell_java_resources" 63 ":content_shell_java_resources"
59 ] 64 ]
60 android_manifest = "shell_apk/AndroidManifest.xml" 65 android_manifest = "shell_apk/AndroidManifest.xml"
61 } 66 }
62 67
63 android_library("content_shell_apk_java") { 68 android_library("content_shell_apk_java") {
69 testonly = true
64 deps = [ 70 deps = [
65 ":content_shell_apk_resources", 71 ":content_shell_apk_resources",
66 ":content_shell_java", 72 ":content_shell_java",
67 "//base:base_java", 73 "//base:base_java",
68 "//content/public/android:content_java", 74 "//content/public/android:content_java",
69 "//media/base/android:media_java", 75 "//media/base/android:media_java",
70 "//net/android:net_java", 76 "//net/android:net_java",
71 "//ui/android:ui_java", 77 "//ui/android:ui_java",
72 ] 78 ]
73 DEPRECATED_java_in_dir = "shell_apk/src" 79 DEPRECATED_java_in_dir = "shell_apk/src"
74 } 80 }
75 81
82 content_shell_assets_dir = "$root_build_dir/content_shell/assets"
83 copy_ex("copy_content_shell_assets") {
84 clear_dir = true
85 dest = content_shell_assets_dir
86 sources = [
87 "$root_out_dir/content_shell.pak"
88 ]
89
90 if (icu_use_data_file) {
91 sources += [
92 "$root_build_dir/icudtl.dat"
93 ]
94 }
95 }
96
76 android_apk("content_shell_apk") { 97 android_apk("content_shell_apk") {
98 testonly = true
77 datadeps = [ 99 datadeps = [
78 # "//tools/android/forwarder", 100 # "//tools/android/forwarder",
79 ] 101 ]
80 deps = [ 102 deps = [
81 ":content_shell_apk_resources", 103 ":content_shell_apk_resources",
82 ":content_shell_java", 104 ":content_shell_java",
83 ":content_shell_apk_java", 105 ":content_shell_apk_java",
84 ":libcontent_shell_content_view", 106 ":libcontent_shell_content_view",
107 ":copy_content_shell_assets",
85 "//base:base_java", 108 "//base:base_java",
86 "//content/public/android:content_java", 109 "//content/public/android:content_java",
87 "//content/public/android:content_java_resources",
88 "//media/base/android:media_java", 110 "//media/base/android:media_java",
89 "//net/android:net_java", 111 "//net/android:net_java",
90 #"//third_party/mesa:osmesa_in_lib_dir", 112 #"//third_party/mesa:osmesa_in_lib_dir",
91 "//ui/android:ui_java", 113 "//ui/android:ui_java",
92 ] 114 ]
93 apk_name = "ContentShell" 115 apk_name = "ContentShell"
94 android_manifest = "shell_apk/AndroidManifest.xml" 116 android_manifest = "shell_apk/AndroidManifest.xml"
95 native_libs = [ 117 native_libs = [
96 "$root_build_dir/lib.stripped/libcontent_shell_content_view.so" 118 "$root_build_dir/lib.stripped/libcontent_shell_content_view.so"
97 ] 119 ]
98 asset_location = "$root_build_dir/content_shell/assets" 120 asset_location = content_shell_assets_dir
99 121
100 # TODO(GYP) 122 # TODO(GYP)
101 #'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell .pak'],
102 #'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'], 123 #'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
103 124
104 if (false && icu_use_data_file_flag) {
105 # TODO(GYP)
106 }
107
108 if (is_android_webview_build) { 125 if (is_android_webview_build) {
109 # TODO(GYP) 126 # TODO(GYP)
110 } 127 }
111 } 128 }
112 129
113 android_library("content_shell_test_java") { 130 android_library("content_shell_test_java") {
131 testonly = true
114 deps = [ 132 deps = [
115 ":content_shell_java", 133 ":content_shell_java",
116 ":content_shell_apk_java", 134 ":content_shell_apk_java",
117 "//base:base_java", 135 "//base:base_java",
118 "//base:base_java_test_support", 136 "//base:base_java_test_support",
119 "//content/public/test/android:content_java_test_support", 137 "//content/public/test/android:content_java_test_support",
120 "//content/shell/android:content_shell_java", 138 "//content/shell/android:content_shell_java",
121 "//content/public/android:content_java", 139 "//content/public/android:content_java",
122 ] 140 ]
123 DEPRECATED_java_in_dir = "javatests/src" 141 DEPRECATED_java_in_dir = "javatests/src"
124 } 142 }
125 143
126 android_apk("content_shell_test_apk") { 144 android_apk("content_shell_test_apk") {
145 testonly = true
127 deps = [ 146 deps = [
128 "//content/public/android:content_javatests", 147 "//content/public/android:content_javatests",
129 "//base:base_javatests", 148 "//base:base_javatests",
130 "//net/android:net_javatests", 149 "//net/android:net_javatests",
131 ] 150 ]
151 datadeps = [
152 ":content_shell_apk",
153 ]
132 apk_name = "ContentShellTest" 154 apk_name = "ContentShellTest"
133 android_manifest = "javatests/AndroidManifest.xml" 155 android_manifest = "javatests/AndroidManifest.xml"
134 } 156 }
OLDNEW
« no previous file with comments | « content/shell/BUILD.gn ('k') | ui/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698