Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 1 | // Copyright (C) 2018 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 | |
Tao Bao | ef5e38f | 2018-07-24 15:34:39 -0700 | [diff] [blame] | 15 | cc_defaults { |
| 16 | name: "libupdater_defaults", |
Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 17 | |
| 18 | defaults: [ |
| 19 | "recovery_defaults", |
| 20 | ], |
| 21 | |
Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 22 | static_libs: [ |
| 23 | "libapplypatch", |
| 24 | "libbootloader_message", |
| 25 | "libbspatch", |
| 26 | "libedify", |
Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 27 | "libotautil", |
| 28 | "libext4_utils", |
Yifan Hong | 8ff84d7 | 2018-12-19 16:21:55 -0800 | [diff] [blame] | 29 | "libdm", |
Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 30 | "libfec", |
| 31 | "libfec_rs", |
| 32 | "libverity_tree", |
Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 33 | "libgtest_prod", |
| 34 | "liblog", |
Yifan Hong | 8ff84d7 | 2018-12-19 16:21:55 -0800 | [diff] [blame] | 35 | "liblp", |
Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 36 | "libselinux", |
| 37 | "libsparse", |
| 38 | "libsquashfs_utils", |
| 39 | "libbrotli", |
| 40 | "libbz", |
| 41 | "libziparchive", |
| 42 | "libz", |
| 43 | "libbase", |
| 44 | "libcrypto", |
| 45 | "libcrypto_utils", |
| 46 | "libcutils", |
Steven Moreland | 46ec20b | 2019-06-14 09:43:24 -0700 | [diff] [blame] | 47 | "libcgrouprc", |
| 48 | "libcgrouprc_format", |
Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 49 | "libutils", |
Tianjie Xu | c1a5e26 | 2019-05-22 14:34:12 -0700 | [diff] [blame] | 50 | ], |
| 51 | } |
| 52 | |
| 53 | cc_defaults { |
| 54 | name: "libupdater_device_defaults", |
| 55 | |
| 56 | static_libs: [ |
| 57 | "libfs_mgr", |
Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 58 | "libtune2fs", |
| 59 | |
| 60 | "libext2_com_err", |
| 61 | "libext2_blkid", |
| 62 | "libext2_quota", |
| 63 | "libext2_uuid", |
| 64 | "libext2_e2p", |
| 65 | "libext2fs", |
Tianjie Xu | c1a5e26 | 2019-05-22 14:34:12 -0700 | [diff] [blame] | 66 | ] |
Tao Bao | 673bb6f | 2018-08-03 20:56:25 -0700 | [diff] [blame] | 67 | } |
Tao Bao | ef5e38f | 2018-07-24 15:34:39 -0700 | [diff] [blame] | 68 | |
| 69 | cc_library_static { |
Tianjie Xu | c1a5e26 | 2019-05-22 14:34:12 -0700 | [diff] [blame] | 70 | name: "libupdater_core", |
| 71 | |
| 72 | host_supported: true, |
Tao Bao | ef5e38f | 2018-07-24 15:34:39 -0700 | [diff] [blame] | 73 | |
| 74 | defaults: [ |
| 75 | "recovery_defaults", |
| 76 | "libupdater_defaults", |
| 77 | ], |
| 78 | |
| 79 | srcs: [ |
| 80 | "blockimg.cpp", |
| 81 | "commands.cpp", |
| 82 | "install.cpp", |
Tianjie Xu | 58d5912 | 2019-05-03 01:05:04 -0700 | [diff] [blame] | 83 | "updater.cpp", |
Tianjie Xu | c1a5e26 | 2019-05-22 14:34:12 -0700 | [diff] [blame] | 84 | ], |
| 85 | |
Tianjie Xu | 76e165d | 2019-05-30 10:24:47 -0700 | [diff] [blame] | 86 | target: { |
| 87 | darwin: { |
| 88 | enabled: false, |
| 89 | }, |
| 90 | }, |
| 91 | |
Tianjie Xu | c1a5e26 | 2019-05-22 14:34:12 -0700 | [diff] [blame] | 92 | export_include_dirs: [ |
| 93 | "include", |
| 94 | ], |
| 95 | } |
| 96 | |
| 97 | cc_library_static { |
| 98 | name: "libupdater_device", |
| 99 | |
| 100 | defaults: [ |
| 101 | "recovery_defaults", |
| 102 | "libupdater_defaults", |
| 103 | "libupdater_device_defaults", |
| 104 | ], |
| 105 | |
| 106 | srcs: [ |
| 107 | "dynamic_partitions.cpp", |
Tianjie Xu | 1536db8 | 2019-05-14 10:54:43 -0700 | [diff] [blame] | 108 | "updater_runtime.cpp", |
Tao Bao | ef5e38f | 2018-07-24 15:34:39 -0700 | [diff] [blame] | 109 | ], |
| 110 | |
Tianjie Xu | c1a5e26 | 2019-05-22 14:34:12 -0700 | [diff] [blame] | 111 | static_libs: [ |
| 112 | "libupdater_core", |
| 113 | ], |
| 114 | |
Tao Bao | ef5e38f | 2018-07-24 15:34:39 -0700 | [diff] [blame] | 115 | include_dirs: [ |
| 116 | "external/e2fsprogs/misc", |
| 117 | ], |
| 118 | |
| 119 | export_include_dirs: [ |
| 120 | "include", |
| 121 | ], |
| 122 | } |
Tianjie Xu | c1a5e26 | 2019-05-22 14:34:12 -0700 | [diff] [blame] | 123 | |
| 124 | cc_library_host_static { |
| 125 | name: "libupdater_host", |
| 126 | |
| 127 | defaults: [ |
| 128 | "recovery_defaults", |
| 129 | "libupdater_defaults", |
| 130 | ], |
| 131 | |
| 132 | srcs: [ |
| 133 | "simulator_runtime.cpp", |
| 134 | "target_files.cpp", |
| 135 | ], |
| 136 | |
| 137 | static_libs: [ |
| 138 | "libupdater_core", |
| 139 | "libfstab", |
| 140 | ], |
| 141 | |
Tianjie Xu | 76e165d | 2019-05-30 10:24:47 -0700 | [diff] [blame] | 142 | target: { |
| 143 | darwin: { |
| 144 | enabled: false, |
| 145 | }, |
| 146 | }, |
| 147 | |
Tianjie Xu | c1a5e26 | 2019-05-22 14:34:12 -0700 | [diff] [blame] | 148 | export_include_dirs: [ |
| 149 | "include", |
| 150 | ], |
| 151 | } |