• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_binary {
18    name: "gsi_tool",
19    shared_libs: [
20        "gsi_aidl_interface-cpp",
21        "libbinder",
22        "libbase",
23        "libcutils",
24        "libgsi",
25        "liblog",
26        "libservices",
27        "libutils",
28    ],
29    srcs: [
30        "gsi_tool.cpp",
31    ],
32}
33
34cc_library {
35    name: "libgsi",
36    recovery_available: true,
37    host_supported: true,
38    srcs: [
39        "libgsi.cpp",
40    ],
41    shared_libs: [
42        "libbase",
43    ],
44    export_include_dirs: ["include"],
45}
46
47cc_library_headers {
48    name: "libgsi_headers",
49    host_supported: true,
50    recovery_available: true,
51    vendor_available: true,
52    export_include_dirs: ["include"],
53}
54
55cc_binary {
56    name: "gsid",
57    srcs: [
58        "daemon.cpp",
59        "gsi_service.cpp",
60    ],
61    required: [
62        "mke2fs",
63    ],
64    init_rc: [
65        "gsid.rc",
66    ],
67    shared_libs: [
68        "gsi_aidl_interface-cpp",
69        "libbase",
70        "libbinder",
71        "libext4_utils",
72        "libfs_mgr",
73        "libgsi",
74        "liblog",
75        "liblp",
76        "libutils",
77    ],
78    static_libs: [
79        "libdm",
80        "libfiemap_writer",
81    ],
82    local_include_dirs: ["include"],
83}
84
85cc_test {
86    name: "gsi_boot_test",
87    shared_libs: [
88        "libbase",
89        "libcutils",
90        "libhardware",
91        "libhidlbase",
92        "libhidltransport",
93        "libhwbinder",
94        "liblog",
95        "libutils",
96    ],
97    static_libs: [
98        "libext4_utils",
99        "libfstab",
100        "android.hardware.weaver@1.0",
101    ],
102    srcs: [
103        "tests/boot_tests.cpp",
104    ],
105}
106
107aidl_interface {
108    name: "gsi_aidl_interface",
109    srcs: [
110        "aidl/android/gsi/GsiInstallParams.aidl",
111        "aidl/android/gsi/GsiProgress.aidl",
112        "aidl/android/gsi/IGsiService.aidl",
113    ],
114    local_include_dir: "aidl",
115    backend: {
116        ndk: {
117            enabled: false,
118        },
119    },
120}
121
122filegroup {
123    name: "gsiservice_aidl",
124    srcs: [
125        "aidl/android/gsi/GsiInstallParams.aidl",
126        "aidl/android/gsi/GsiProgress.aidl",
127        "aidl/android/gsi/IGsiService.aidl",
128    ],
129}
130