David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 1 | // |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 2 | // Copyright (C) 2019 The Android Open Source Project |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 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 | |
| 17 | cc_binary { |
| 18 | name: "gsi_tool", |
| 19 | shared_libs: [ |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 20 | "gsi_aidl_interface-cpp", |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 21 | "libbinder", |
| 22 | "libbase", |
David Anderson | b33f2b1 | 2019-01-22 14:14:10 -0800 | [diff] [blame] | 23 | "libcutils", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 24 | "libgsi", |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 25 | "liblog", |
| 26 | "libservices", |
| 27 | "libutils", |
| 28 | ], |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 29 | srcs: [ |
| 30 | "gsi_tool.cpp", |
| 31 | ], |
| 32 | } |
| 33 | |
| 34 | cc_library { |
| 35 | name: "libgsi", |
| 36 | recovery_available: true, |
Howard Chen | 9e20bdf | 2019-01-09 17:54:26 +0800 | [diff] [blame] | 37 | host_supported: true, |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 38 | srcs: [ |
| 39 | "libgsi.cpp", |
| 40 | ], |
| 41 | shared_libs: [ |
| 42 | "libbase", |
| 43 | ], |
| 44 | export_include_dirs: ["include"], |
| 45 | } |
| 46 | |
| 47 | cc_library_headers { |
| 48 | name: "libgsi_headers", |
Howard Chen | 9e20bdf | 2019-01-09 17:54:26 +0800 | [diff] [blame] | 49 | host_supported: true, |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 50 | recovery_available: true, |
| 51 | vendor_available: true, |
| 52 | export_include_dirs: ["include"], |
| 53 | } |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 54 | |
| 55 | cc_binary { |
| 56 | name: "gsid", |
| 57 | srcs: [ |
| 58 | "daemon.cpp", |
| 59 | "gsi_service.cpp", |
David Anderson | b2988ab | 2019-04-16 17:14:09 -0700 | [diff] [blame] | 60 | "gsi_installer.cpp", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 61 | ], |
| 62 | required: [ |
| 63 | "mke2fs", |
| 64 | ], |
| 65 | init_rc: [ |
| 66 | "gsid.rc", |
| 67 | ], |
| 68 | shared_libs: [ |
| 69 | "gsi_aidl_interface-cpp", |
| 70 | "libbase", |
| 71 | "libbinder", |
David Anderson | 8bdf625 | 2019-06-11 16:43:24 -0700 | [diff] [blame] | 72 | "libext4_utils", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 73 | "libfs_mgr", |
David Anderson | b3aff18 | 2019-01-11 14:37:51 -0800 | [diff] [blame] | 74 | "libgsi", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 75 | "liblog", |
| 76 | "liblp", |
| 77 | "libutils", |
| 78 | ], |
| 79 | static_libs: [ |
David Anderson | 963d7cc | 2019-01-17 13:34:57 -0800 | [diff] [blame] | 80 | "libdm", |
Yifan Hong | 5cc4846 | 2019-08-13 18:28:10 -0700 | [diff] [blame] | 81 | "libfiemap_passthrough", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 82 | ], |
| 83 | local_include_dirs: ["include"], |
| 84 | } |
| 85 | |
| 86 | aidl_interface { |
| 87 | name: "gsi_aidl_interface", |
David Anderson | 6f373b7 | 2019-06-05 15:04:00 -0700 | [diff] [blame] | 88 | srcs: [":gsiservice_aidl"], |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 89 | local_include_dir: "aidl", |
| 90 | backend: { |
| 91 | ndk: { |
| 92 | enabled: false, |
| 93 | }, |
| 94 | }, |
| 95 | } |
| 96 | |
| 97 | filegroup { |
| 98 | name: "gsiservice_aidl", |
| 99 | srcs: [ |
David Anderson | eb30ac2 | 2019-03-12 15:24:53 -0700 | [diff] [blame] | 100 | "aidl/android/gsi/GsiInstallParams.aidl", |
David Anderson | 6a5b8a7 | 2019-01-16 16:24:48 -0800 | [diff] [blame] | 101 | "aidl/android/gsi/GsiProgress.aidl", |
David Anderson | 551ae3a | 2019-08-01 12:53:06 -0700 | [diff] [blame] | 102 | "aidl/android/gsi/IImageService.aidl", |
David Anderson | 4c75673 | 2019-07-12 14:18:37 -0700 | [diff] [blame] | 103 | "aidl/android/gsi/IGsid.aidl", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 104 | "aidl/android/gsi/IGsiService.aidl", |
David Anderson | 6f373b7 | 2019-06-05 15:04:00 -0700 | [diff] [blame] | 105 | "aidl/android/gsi/MappedImage.aidl", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 106 | ], |
Jiyong Park | eaabad0 | 2019-08-16 21:10:23 +0900 | [diff] [blame] | 107 | path: "aidl", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 108 | } |