• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19python_binary_host {
20    name: "deapexer",
21    srcs: [
22        "deapexer.py",
23    ],
24    version: {
25        py2: {
26            enabled: false,
27        },
28        py3: {
29            enabled: true,
30            embedded_launcher: true,
31        },
32    },
33    libs: [
34        "apex_manifest",
35    ],
36    required: [
37        "debugfs_static",
38    ],
39}
40
41python_binary_host {
42    name: "apex_compression_tool",
43    srcs: [
44        "apex_compression_tool.py",
45    ],
46    version: {
47        py2: {
48            enabled: false,
49        },
50        py3: {
51            enabled: true,
52            embedded_launcher: true,
53        },
54    },
55    libs: [
56        "apex_manifest_proto",
57    ],
58    required: [
59        "avbtool",
60        "conv_apex_manifest",
61    ],
62}
63
64python_test_host {
65    name: "apex_compression_test",
66    main: "apex_compression_test.py",
67    srcs: [
68        "apex_compression_test.py",
69    ],
70    data: [
71        ":avbtool",
72        ":com.android.example.apex",
73        ":conv_apex_manifest",
74        ":apex_compression_tool",
75        ":deapexer",
76        ":soong_zip",
77    ],
78    version: {
79        py2: {
80            enabled: false,
81        },
82        py3: {
83            enabled: true,
84        },
85    },
86    libs: [
87        "apex_manifest_proto",
88    ],
89    test_suites: ["general-tests"],
90    test_options: {
91        unit_test: true,
92    },
93}
94
95cc_binary_host {
96    name: "host_apex_verifier",
97    srcs: ["host_apex_verifier.cc"],
98    defaults: [
99        "libapex-deps",
100    ],
101    shared_libs: [
102        "libhidl-gen-utils",
103        "libprocessgroup",
104    ],
105    static_libs: [
106        "libapex",
107        "libinit_host",
108    ],
109}
110
111sh_test_host {
112    name: "host-apex-verifier",
113    src: "host-apex-verifier.sh",
114    test_suites: ["device-tests"],
115    test_config: "host-apex-verifier.xml",
116    test_options: {
117        unit_test: false,
118    },
119    data_bins: [
120        "deapexer",
121        "debugfs_static",
122        "host_apex_verifier",
123    ],
124    data_libs: [
125        "libbase",
126        "libc++",
127        "libcgrouprc",
128        "libcrypto",
129        "libcutils",
130        "liblog",
131        "libprocessgroup",
132        "libprotobuf-cpp-full",
133        "libz",
134        "libziparchive",
135    ],
136}
137