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 | 6 |
7 android_library("canary_lib") { | 7 android_library("canary_lib") { |
8 dex_path = "$target_gen_dir/canary.dex" | 8 dex_path = "$target_gen_dir/canary.dex" |
9 java_files = [ "src/org/chromium/webapk/shell_apk/test/canary/Canary.java" ] | 9 java_files = [ "src/org/chromium/webapk/shell_apk/test/canary/Canary.java" ] |
10 } | 10 } |
11 | 11 |
12 android_library("canary_lib2") { | 12 # dex asset added to dex_optimizer_apk in order to test creating ClassLoader |
13 dex_path = "$target_gen_dir/canary2.dex" | |
14 java_files = [ "src/org/chromium/webapk/shell_apk/test/canary/Canary2.java" ] | |
15 } | |
16 | |
17 # dex assets added to dex_optimizer_apk in order to test creating ClassLoader | |
18 # from .dex in remote APK. | 13 # from .dex in remote APK. |
19 | |
20 android_assets("canary_dex_asset") { | 14 android_assets("canary_dex_asset") { |
21 sources = [ | 15 sources = [ |
22 "$target_gen_dir/canary.dex", | 16 "$target_gen_dir/canary.dex", |
23 ] | 17 ] |
24 disable_compression = true | 18 disable_compression = true |
25 deps = [ | 19 deps = [ |
26 ":canary_lib", | 20 ":canary_lib", |
27 ] | 21 ] |
28 } | 22 } |
29 | |
30 android_assets("canary_dex_asset2") { | |
31 sources = [ | |
32 "$target_gen_dir/canary2.dex", | |
33 ] | |
34 disable_compression = true | |
35 deps = [ | |
36 ":canary_lib2", | |
37 ] | |
38 } | |
OLD | NEW |