• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2025 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
19cc_binary_host {
20    name: "apex-ls",
21    defaults: [
22        "libapex-deps",
23        // we need this to get the feature flags
24        // used to build liberofs.
25        "erofs-utils_export_defaults",
26    ],
27    srcs: [
28        "erofs.cpp",
29        "ext4.cpp",
30        "main.cpp",
31    ],
32    static_libs: [
33        "libapex",
34        "libbase",
35        "libcrypto",
36        "libcutils",
37        "liberofs",
38        "liblz4",
39        "libprotobuf-cpp-full",
40        "libselinux",
41        "libz",
42        "libziparchive",
43
44        // ext4
45        "libext2_misc",
46        "libext2fs",
47        "libext2_blkid",
48        "libext2_uuid",
49        "libext2_ss",
50        "libext2_quota",
51        "libext2_com_err",
52        "libext2_e2p",
53        "libext2_support",
54    ],
55    static_executable: true,
56}
57