| 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 18 matching lines...) Expand all Loading... |
| 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/HostBrowserLauncher.java", |
| 36 "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java", | 36 "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java", |
| 37 ] | 37 ] |
| 38 deps = [ | 38 deps = [ |
| 39 ":webapk_service_aidl_java", | |
| 40 "//chrome/android/webapk/libs/common:common_java", | 39 "//chrome/android/webapk/libs/common:common_java", |
| 41 ] | 40 ] |
| 41 srcjar_deps = [ ":webapk_service_aidl" ] |
| 42 } | 42 } |
| 43 | 43 |
| 44 # The subset of runtime_library_from_assets_java needed for tests. | 44 # The subset of runtime_library_from_assets_java needed for tests. |
| 45 android_library("runtime_library_for_tests_java") { | 45 android_library("runtime_library_for_tests_java") { |
| 46 java_files = | 46 java_files = |
| 47 [ "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java" ] | 47 [ "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java" ] |
| 48 deps = [ | 48 deps = [ |
| 49 ":webapk_service_aidl_java", | 49 ":webapk_service_aidl_java", |
| 50 ] | 50 ] |
| 51 } | 51 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 68 testonly = true | 68 testonly = true |
| 69 java_files = [ "javatests/src/org/chromium/webapk/lib/runtime_library/WebApkSe
rviceImplTest.java" ] | 69 java_files = [ "javatests/src/org/chromium/webapk/lib/runtime_library/WebApkSe
rviceImplTest.java" ] |
| 70 deps = [ | 70 deps = [ |
| 71 ":runtime_library_for_tests_java", | 71 ":runtime_library_for_tests_java", |
| 72 ":webapk_service_aidl_java", | 72 ":webapk_service_aidl_java", |
| 73 "//base:base_java_test_support", | 73 "//base:base_java_test_support", |
| 74 "//chrome/test/android:chrome_java_test_support", | 74 "//chrome/test/android:chrome_java_test_support", |
| 75 "//content/public/test/android:content_java_test_support", | 75 "//content/public/test/android:content_java_test_support", |
| 76 ] | 76 ] |
| 77 } | 77 } |
| OLD | NEW |