Debian Codegraph @

tests/ApkVerityTest/block_device_writer/Android.bp

raw
1 // Copyright (C) 2019 The Android Open Source Project
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // This is a cc_test just because it supports test_suites. This should be converted to something
16 // like cc_binary_test_helper once supported, thus auto_gen_config:false below.
17 package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "frameworks_base_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["frameworks_base_license"],
24 }
25
26 cc_test {
27 name: "block_device_writer",
28 srcs: ["block_device_writer.cpp"],
29 cflags: [
30 "-D_FILE_OFFSET_BITS=64",
31 "-Wall",
32 "-Werror",
33 "-Wextra",
34 "-g",
35 ],
36 shared_libs: [
37 "libbase",
38 "libutils",
39 ],
40 compile_multilib: "both",
41 multilib: {
42 lib32: {
43 suffix: "32",
44 },
45 lib64: {
46 suffix: "64",
47 },
48 },
49
50 auto_gen_config: false,
51 test_suites: [
52 "general-tests",
53 "vts",
54 ],
55 gtest: false,
56 }
57
58 java_library_host {
59 name: "block_device_writer_jar",
60 srcs: ["src/**/*.java"],
61 libs: [
62 "tradefed",
63 "junit",
64 ],
65 }