OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//chrome/android/webapk/libs/runtime_library_version.gni") | 6 import("//chrome/android/webapk/libs/runtime_library_version.gni") |
7 | 7 |
8 # runtime_library_version.gni must be updated whenever the runtime library is | 8 # runtime_library_version.gni must be updated whenever the runtime library is |
9 # updated. The WebAPK re-extracts the runtime library from the Chrome APK when | 9 # updated. The WebAPK re-extracts the runtime library from the Chrome APK when |
10 # |runtime_library_version| is incremented. | 10 # |runtime_library_version| is incremented. |
(...skipping 13 matching lines...) Expand all Loading... |
24 # A standalone jar for the aidl's generated java files so that multiple places | 24 # A standalone jar for the aidl's generated java files so that multiple places |
25 # can depend on the aidl. | 25 # can depend on the aidl. |
26 android_library("webapk_service_aidl_java") { | 26 android_library("webapk_service_aidl_java") { |
27 srcjar_deps = [ ":webapk_service_aidl" ] | 27 srcjar_deps = [ ":webapk_service_aidl" ] |
28 } | 28 } |
29 | 29 |
30 # runtime_library_from_assets_java cannot be used as a dependency of another | 30 # runtime_library_from_assets_java cannot be used as a dependency of another |
31 # library because the dx tool expects files ending in .dex.jar | 31 # library because the dx tool expects files ending in .dex.jar |
32 android_library("runtime_library_for_assets_java") { | 32 android_library("runtime_library_for_assets_java") { |
33 dex_path = "$target_gen_dir/$runtime_library_dex_asset_name" | 33 dex_path = "$target_gen_dir/$runtime_library_dex_asset_name" |
34 java_files = [ | 34 java_files = |
35 "src/org/chromium/webapk/lib/runtime_library/HostBrowserLauncher.java", | 35 [ "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java" ] |
36 "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java", | |
37 ] | |
38 deps = [ | |
39 "//chrome/android/webapk/libs/common:common_java", | |
40 ] | |
41 srcjar_deps = [ ":webapk_service_aidl" ] | 36 srcjar_deps = [ ":webapk_service_aidl" ] |
42 } | 37 } |
43 | 38 |
44 # The subset of runtime_library_from_assets_java needed for tests. | 39 # The subset of runtime_library_from_assets_java needed for tests. |
45 android_library("runtime_library_for_tests_java") { | 40 android_library("runtime_library_for_tests_java") { |
46 java_files = | 41 java_files = |
47 [ "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java" ] | 42 [ "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java" ] |
48 deps = [ | 43 deps = [ |
49 ":webapk_service_aidl_java", | 44 ":webapk_service_aidl_java", |
50 ] | 45 ] |
(...skipping 17 matching lines...) Expand all Loading... |
68 testonly = true | 63 testonly = true |
69 java_files = [ "javatests/src/org/chromium/webapk/lib/runtime_library/WebApkSe
rviceImplTest.java" ] | 64 java_files = [ "javatests/src/org/chromium/webapk/lib/runtime_library/WebApkSe
rviceImplTest.java" ] |
70 deps = [ | 65 deps = [ |
71 ":runtime_library_for_tests_java", | 66 ":runtime_library_for_tests_java", |
72 ":webapk_service_aidl_java", | 67 ":webapk_service_aidl_java", |
73 "//base:base_java_test_support", | 68 "//base:base_java_test_support", |
74 "//chrome/test/android:chrome_java_test_support", | 69 "//chrome/test/android:chrome_java_test_support", |
75 "//content/public/test/android:content_java_test_support", | 70 "//content/public/test/android:content_java_test_support", |
76 ] | 71 ] |
77 } | 72 } |
OLD | NEW |