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 | 6 |
7 declare_args() { | 7 declare_args() { |
8 # The origin URL of the WebAPK. Used to generate a unique package name for | 8 # The origin URL of the WebAPK. Used to generate a unique package name for |
9 # WebAPK. Example: "foo.com" | 9 # WebAPK. Example: "foo.com" |
10 webapk_manifest_package_origin = "template" | 10 webapk_manifest_package_origin = "template" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 # - Android manifest is customized to the website. | 57 # - Android manifest is customized to the website. |
58 # - App icon is extracted from the website and added to the APK's resources. | 58 # - App icon is extracted from the website and added to the APK's resources. |
59 android_apk("webapk") { | 59 android_apk("webapk") { |
60 android_manifest = shell_apk_manifest | 60 android_manifest = shell_apk_manifest |
61 apk_name = "WebApk.$webapk_manifest_package_origin" | 61 apk_name = "WebApk.$webapk_manifest_package_origin" |
62 java_files = [ | 62 java_files = [ |
63 "src/org/chromium/webapk/shell_apk/MainActivity.java", | 63 "src/org/chromium/webapk/shell_apk/MainActivity.java", |
64 "src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java", | 64 "src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java", |
65 ] | 65 ] |
66 deps = [ | 66 deps = [ |
| 67 ":dex_loader_lib", |
67 ":shell_apk_manifest", | 68 ":shell_apk_manifest", |
68 ":shell_apk_resources", | 69 ":shell_apk_resources", |
69 "//chrome/android/webapk/libs/common", | 70 "//chrome/android/webapk/libs/common", |
70 "//chrome/android/webapk/libs/runtime_library", | 71 "//chrome/android/webapk/libs/runtime_library", |
71 ] | 72 ] |
72 } | 73 } |
73 | 74 |
74 android_library("shell_apk_javatests") { | 75 android_library("shell_apk_javatests") { |
75 testonly = true | 76 testonly = true |
76 java_files = | 77 java_files = |
77 [ "javatests/src/org/chromium/webapk/shell_apk/DexLoaderTest.java" ] | 78 [ "javatests/src/org/chromium/webapk/shell_apk/DexLoaderTest.java" ] |
78 deps = [ | 79 deps = [ |
79 ":dex_loader_lib", | 80 ":dex_loader_lib", |
80 "//base:base_java", | 81 "//base:base_java", |
81 "//base:base_java_test_support", | 82 "//base:base_java_test_support", |
82 "//chrome/android/webapk/libs/common", | 83 "//chrome/android/webapk/libs/common", |
83 "//content/public/test/android:content_java_test_support", | 84 "//content/public/test/android:content_java_test_support", |
84 ] | 85 ] |
85 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ] | 86 srcjar_deps = [ "javatests/dex_optimizer:dex_optimizer_service_aidl" ] |
86 } | 87 } |
OLD | NEW |