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 # dex asset added to dex_optimizer_apk in order to test creating ClassLoader | 12 android_library("canary_lib2") { |
| 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 |
13 # from .dex in remote APK. | 18 # from .dex in remote APK. |
| 19 |
14 android_assets("canary_dex_asset") { | 20 android_assets("canary_dex_asset") { |
15 sources = [ | 21 sources = [ |
16 "$target_gen_dir/canary.dex", | 22 "$target_gen_dir/canary.dex", |
17 ] | 23 ] |
18 disable_compression = true | 24 disable_compression = true |
19 deps = [ | 25 deps = [ |
20 ":canary_lib", | 26 ":canary_lib", |
21 ] | 27 ] |
22 } | 28 } |
| 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 |