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 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 # Mark all targets as test only. | 8 # Mark all targets as test only. |
9 testonly = true | 9 testonly = true |
10 | 10 |
11 group("test") { | 11 group("test") { |
12 deps = [ | 12 deps = [ |
13 ":android_webview_test_apk", | 13 ":android_webview_test_apk", |
14 ":android_webview_unittests", | 14 ":android_webview_unittests", |
15 ] | 15 ] |
16 } | 16 } |
17 | 17 |
18 android_apk("android_webview_apk") { | 18 android_apk("android_webview_apk") { |
19 deps = [ | 19 deps = [ |
20 ":android_webview_apk_assets", | 20 ":android_webview_apk_assets", |
21 ":android_webview_apk_resources", | 21 ":android_webview_apk_resources", |
22 "//android_webview:android_webview_java", | 22 "//android_webview:android_webview_java", |
23 "//android_webview:locale_pak_assets", | |
24 "//base:base_java", | 23 "//base:base_java", |
25 "//base:base_java_test_support", | 24 "//base:base_java_test_support", |
26 "//components/policy/android:policy_java_test_support", | 25 "//components/policy/android:policy_java_test_support", |
27 "//content/public/android:content_java", | 26 "//content/public/android:content_java", |
28 "//ui/android:ui_java", | 27 "//ui/android:ui_java", |
29 ] | 28 ] |
30 | 29 |
31 apk_name = "AndroidWebView" | 30 apk_name = "AndroidWebView" |
32 android_manifest = "shell/AndroidManifest.xml" | 31 android_manifest = "shell/AndroidManifest.xml" |
33 java_files = [ | 32 java_files = [ |
(...skipping 11 matching lines...) Expand all Loading... |
45 ] | 44 ] |
46 shared_libraries = [ | 45 shared_libraries = [ |
47 ":libdrawgl", | 46 ":libdrawgl", |
48 ":libstandalonelibwebviewchromium", | 47 ":libstandalonelibwebviewchromium", |
49 ] | 48 ] |
50 | 49 |
51 native_lib_version_rule = "//build/util:chrome_version_json" | 50 native_lib_version_rule = "//build/util:chrome_version_json" |
52 _native_lib_file = | 51 _native_lib_file = |
53 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_build_dir) | 52 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_build_dir) |
54 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)" | 53 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)" |
| 54 |
| 55 extensions_to_not_compress = ".dat,.bin,.pak,.lpak" |
55 } | 56 } |
56 | 57 |
57 android_resources("android_webview_apk_resources") { | 58 android_resources("android_webview_apk_resources") { |
58 resource_dirs = [ "shell/res" ] | 59 resource_dirs = [ "shell/res" ] |
59 custom_package = "org.chromium.android_webview.shell" | 60 custom_package = "org.chromium.android_webview.shell" |
60 } | 61 } |
61 | 62 |
62 android_assets("android_webview_apk_assets") { | 63 android_assets("android_webview_apk_assets") { |
63 deps = [ | 64 deps = [ |
64 "//android_webview:pak_file_assets", | 65 "//android_webview:pak_file_assets", |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 "../unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsCli
entBridge.java", | 276 "../unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsCli
entBridge.java", |
276 ] | 277 ] |
277 } | 278 } |
278 | 279 |
279 shared_library("libdrawgl") { | 280 shared_library("libdrawgl") { |
280 sources = [ | 281 sources = [ |
281 "shell/src/draw_gl/draw_gl.cc", | 282 "shell/src/draw_gl/draw_gl.cc", |
282 ] | 283 ] |
283 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 284 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
284 } | 285 } |
OLD | NEW |