OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("//build/config/android/rules.gni") | |
6 import("//webapk/libs/runtime_library_version.gni") | |
7 | |
8 # runtime_library_version.gni must be incremented whenever the runtime library i
s | |
9 # updated. The WebAPK re-extracts the runtime library from the Chrome APK when | |
10 # |runtime_library_version| is incremented. | |
11 | |
12 # Whenever this constant is changed, WebApkUtils#getRuntimeDexName() must also | |
13 # be changed. | |
14 runtime_library_dex_asset_name = "web_apk$runtime_library_version.dex" | |
15 | |
16 android_aidl("webapk_service_aidl") { | |
17 import_include = "src/org/chromium/webapk/lib/runtime_library" | |
18 interface_file = "src/org/chromium/webapk/lib/runtime_library/common.aidl" | |
19 sources = [ | |
20 "src/org/chromium/webapk/lib/runtime_library/IWebApkApi.aidl", | |
21 ] | |
22 } | |
23 | |
24 android_library("runtime_library") { | |
25 dex_path = "$target_gen_dir/$runtime_library_dex_asset_name" | |
26 java_files = | |
27 [ "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java" ] | |
28 chromium_code = false | |
29 srcjar_deps = [ ":webapk_service_aidl" ] | |
30 } | |
31 | |
32 android_assets("runtime_library_assets") { | |
33 write_file("$target_gen_dir/web_apk_dex_version.txt", runtime_library_version) | |
34 | |
35 sources = [ | |
36 "$target_gen_dir/$runtime_library_dex_asset_name", | |
37 "$target_gen_dir/web_apk_dex_version.txt", | |
38 ] | |
39 disable_compression = true | |
40 | |
41 deps = [ | |
42 ":runtime_library", | |
43 ] | |
44 } | |
45 | |
46 junit_binary("webapk_runtime_library_junit_tests") { | |
47 java_files = [ "junit/src/org/chromium/webapk/lib/runtime_library/WebApkServic
eImplTest.java" ] | |
48 deps = [ | |
49 ":runtime_library", | |
50 "//base:base_java", | |
51 "//base:base_junit_test_support", | |
52 ] | |
53 } | |
OLD | NEW |