Alex Deymo | aea4c1c | 2015-08-19 20:24:43 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2015 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 | # |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 16 | { |
| 17 | 'target_defaults': { |
| 18 | 'variables': { |
| 19 | 'deps': [ |
Alex Vakulenko | 1bab5a8 | 2015-10-27 11:47:28 -0700 | [diff] [blame] | 20 | 'libbrillo-<(libbase_ver)', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 21 | 'libchrome-<(libbase_ver)', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 22 | ], |
Alex Deymo | 4218b7e | 2015-11-17 21:14:42 -0300 | [diff] [blame] | 23 | # The -DUSE_* flags are passed from platform2.py. We use sane defaults |
| 24 | # here when these USE flags are not defined. You can set the default value |
| 25 | # for the USE flag in the ebuild. |
| 26 | 'USE_dbus%': '1', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 27 | 'USE_hwid_override%': '0', |
Alex Deymo | 787dc41 | 2015-10-29 11:39:20 -0700 | [diff] [blame] | 28 | 'USE_mtd%': '0', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 29 | 'USE_power_management%': '0', |
| 30 | }, |
| 31 | 'cflags': [ |
| 32 | '-g', |
| 33 | '-ffunction-sections', |
| 34 | '-Wall', |
| 35 | '-Wextra', |
| 36 | '-Werror', |
| 37 | '-Wno-unused-parameter', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 38 | ], |
| 39 | 'cflags_cc': [ |
| 40 | '-fno-strict-aliasing', |
Nam T. Nguyen | fc144e6 | 2014-12-03 09:50:49 -0800 | [diff] [blame] | 41 | '-Wnon-virtual-dtor', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 42 | ], |
| 43 | 'ldflags': [ |
| 44 | '-Wl,--gc-sections', |
| 45 | ], |
| 46 | 'defines': [ |
Alex Deymo | 6f20dd4 | 2015-08-18 16:42:46 -0700 | [diff] [blame] | 47 | '_FILE_OFFSET_BITS=64', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 48 | '_POSIX_C_SOURCE=199309L', |
| 49 | 'USE_HWID_OVERRIDE=<(USE_hwid_override)', |
Nam T. Nguyen | f1d582e | 2014-12-08 15:07:17 -0800 | [diff] [blame] | 50 | 'USE_MTD=<(USE_mtd)', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 51 | 'USE_POWER_MANAGEMENT=<(USE_power_management)', |
| 52 | ], |
Alex Deymo | a7a34d8 | 2015-08-24 20:47:01 -0700 | [diff] [blame] | 53 | 'include_dirs': [ |
| 54 | # We need this include dir because we include all the local code as |
| 55 | # "update_engine/...". |
| 56 | '<(platform2_root)/../aosp/system', |
Christopher Wiley | cc8ce0e | 2015-10-01 16:48:47 -0700 | [diff] [blame] | 57 | '<(platform2_root)/../aosp/system/update_engine/client_library/include', |
Alex Deymo | a7a34d8 | 2015-08-24 20:47:01 -0700 | [diff] [blame] | 58 | ], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 59 | }, |
| 60 | 'targets': [ |
| 61 | # Protobufs. |
| 62 | { |
| 63 | 'target_name': 'update_metadata-protos', |
| 64 | 'type': 'static_library', |
| 65 | 'variables': { |
| 66 | 'proto_in_dir': '.', |
| 67 | 'proto_out_dir': 'include/update_engine', |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 68 | 'exported_deps': [ |
Alex Deymo | b8f16a1 | 2014-06-10 18:59:22 -0700 | [diff] [blame] | 69 | 'protobuf-lite', |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 70 | ], |
| 71 | 'deps': ['<@(exported_deps)'], |
| 72 | }, |
| 73 | 'all_dependent_settings': { |
| 74 | 'variables': { |
| 75 | 'deps': [ |
| 76 | '<@(exported_deps)', |
| 77 | ], |
| 78 | }, |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 79 | }, |
| 80 | 'sources': [ |
| 81 | 'update_metadata.proto' |
| 82 | ], |
Alex Deymo | a7a34d8 | 2015-08-24 20:47:01 -0700 | [diff] [blame] | 83 | 'includes': ['../../../platform2/common-mk/protoc.gypi'], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 84 | }, |
Alex Deymo | b7ca096 | 2014-10-01 17:58:07 -0700 | [diff] [blame] | 85 | # Chrome D-Bus bindings. |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 86 | { |
Alex Deymo | b7ca096 | 2014-10-01 17:58:07 -0700 | [diff] [blame] | 87 | 'target_name': 'update_engine-dbus-adaptor', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 88 | 'type': 'none', |
| 89 | 'variables': { |
Alex Deymo | 6f20dd4 | 2015-08-18 16:42:46 -0700 | [diff] [blame] | 90 | 'dbus_adaptors_out_dir': 'include/dbus_bindings', |
Alex Deymo | 8a7d0ca | 2015-08-25 17:30:27 -0700 | [diff] [blame] | 91 | 'dbus_xml_extension': 'dbus-xml', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 92 | }, |
| 93 | 'sources': [ |
Alex Deymo | 8a7d0ca | 2015-08-25 17:30:27 -0700 | [diff] [blame] | 94 | 'dbus_bindings/org.chromium.UpdateEngineInterface.dbus-xml', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 95 | ], |
Alex Deymo | a7a34d8 | 2015-08-24 20:47:01 -0700 | [diff] [blame] | 96 | 'includes': ['../../../platform2/common-mk/generate-dbus-adaptors.gypi'], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 97 | }, |
Alex Deymo | f7feb23 | 2015-08-14 10:54:02 -0700 | [diff] [blame] | 98 | { |
Alex Deymo | b8803bb | 2015-08-19 23:14:49 -0700 | [diff] [blame] | 99 | 'target_name': 'update_engine-other-dbus-proxies', |
Alex Deymo | f7feb23 | 2015-08-14 10:54:02 -0700 | [diff] [blame] | 100 | 'type': 'none', |
| 101 | 'actions': [ |
| 102 | { |
Alex Deymo | b8803bb | 2015-08-19 23:14:49 -0700 | [diff] [blame] | 103 | 'action_name': 'update_engine-dbus-libcros-client', |
| 104 | 'variables': { |
| 105 | 'mock_output_file': 'include/libcros/dbus-proxy-mocks.h', |
| 106 | 'proxy_output_file': 'include/libcros/dbus-proxies.h' |
| 107 | }, |
| 108 | 'sources': [ |
Alex Deymo | 6f20dd4 | 2015-08-18 16:42:46 -0700 | [diff] [blame] | 109 | 'dbus_bindings/org.chromium.LibCrosService.dbus-xml', |
Alex Deymo | f7feb23 | 2015-08-14 10:54:02 -0700 | [diff] [blame] | 110 | ], |
Alex Deymo | a7a34d8 | 2015-08-24 20:47:01 -0700 | [diff] [blame] | 111 | 'includes': ['../../../platform2/common-mk/generate-dbus-proxies.gypi'], |
Alex Deymo | f7feb23 | 2015-08-14 10:54:02 -0700 | [diff] [blame] | 112 | }, |
| 113 | ], |
| 114 | }, |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 115 | # The payload application component and common dependencies. |
| 116 | { |
| 117 | 'target_name': 'libpayload_consumer', |
| 118 | 'type': 'static_library', |
| 119 | 'dependencies': [ |
| 120 | 'update_metadata-protos', |
| 121 | 'update_engine-other-dbus-proxies', |
| 122 | ], |
| 123 | #TODO(deymo): Remove unused dependencies once we stop including files |
| 124 | # from the root directory. |
| 125 | 'variables': { |
| 126 | 'exported_deps': [ |
| 127 | 'libcrypto', |
| 128 | 'libcurl', |
| 129 | 'libdebugd-client', |
| 130 | 'libsession_manager-client', |
| 131 | 'libmetrics-<(libbase_ver)', |
| 132 | 'libpower_manager-client', |
| 133 | 'libupdate_engine-client', |
| 134 | 'libshill-client', |
| 135 | 'libssl', |
| 136 | 'expat', |
| 137 | 'xz-embedded', |
| 138 | ], |
| 139 | 'deps': ['<@(exported_deps)'], |
| 140 | }, |
| 141 | 'all_dependent_settings': { |
| 142 | 'variables': { |
| 143 | 'deps': [ |
| 144 | '<@(exported_deps)', |
| 145 | ], |
| 146 | }, |
| 147 | }, |
| 148 | 'link_settings': { |
| 149 | 'variables': { |
| 150 | 'deps': [ |
| 151 | '<@(exported_deps)', |
| 152 | ], |
| 153 | }, |
| 154 | 'libraries': [ |
| 155 | '-lbz2', |
| 156 | '-lpolicy-<(libbase_ver)', |
| 157 | '-lrootdev', |
| 158 | '-lrt', |
| 159 | '-lvboot_host', |
| 160 | ], |
| 161 | }, |
| 162 | 'sources': [ |
| 163 | 'common/action_processor.cc', |
| 164 | 'common/boot_control_chromeos.cc', |
| 165 | 'common/boot_control_stub.cc', |
| 166 | 'common/certificate_checker.cc', |
| 167 | 'common/clock.cc', |
| 168 | 'common/constants.cc', |
| 169 | 'common/hardware_chromeos.cc', |
| 170 | 'common/hash_calculator.cc', |
| 171 | 'common/http_common.cc', |
| 172 | 'common/http_fetcher.cc', |
| 173 | 'common/hwid_override.cc', |
| 174 | 'common/libcurl_http_fetcher.cc', |
| 175 | 'common/multi_range_http_fetcher.cc', |
| 176 | 'common/platform_constants_chromeos.cc', |
| 177 | 'common/prefs.cc', |
| 178 | 'common/subprocess.cc', |
| 179 | 'common/terminator.cc', |
| 180 | 'common/utils.cc', |
| 181 | 'payload_consumer/bzip_extent_writer.cc', |
| 182 | 'payload_consumer/delta_performer.cc', |
| 183 | 'payload_consumer/download_action.cc', |
| 184 | 'payload_consumer/extent_writer.cc', |
| 185 | 'payload_consumer/file_descriptor.cc', |
| 186 | 'payload_consumer/file_writer.cc', |
| 187 | 'payload_consumer/filesystem_verifier_action.cc', |
| 188 | 'payload_consumer/install_plan.cc', |
| 189 | 'payload_consumer/payload_constants.cc', |
| 190 | 'payload_consumer/payload_verifier.cc', |
| 191 | 'payload_consumer/postinstall_runner_action.cc', |
| 192 | 'payload_consumer/xz_extent_writer.cc', |
| 193 | ], |
| 194 | 'conditions': [ |
| 195 | ['USE_mtd == 1', { |
| 196 | 'sources': [ |
| 197 | 'payload_consumer/mtd_file_descriptor.cc', |
| 198 | ], |
| 199 | 'link_settings': { |
| 200 | 'libraries': [ |
| 201 | '-lmtdutils', |
| 202 | ], |
| 203 | }, |
| 204 | }], |
| 205 | ], |
| 206 | }, |
| 207 | # The main daemon static_library with all the code used to check for updates |
| 208 | # with Omaha and expose a DBus daemon. |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 209 | { |
| 210 | 'target_name': 'libupdate_engine', |
| 211 | 'type': 'static_library', |
| 212 | 'dependencies': [ |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 213 | 'libpayload_consumer', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 214 | 'update_metadata-protos', |
Alex Deymo | 3053450 | 2015-07-20 15:06:33 -0700 | [diff] [blame] | 215 | 'update_engine-dbus-adaptor', |
Alex Deymo | b8803bb | 2015-08-19 23:14:49 -0700 | [diff] [blame] | 216 | 'update_engine-other-dbus-proxies', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 217 | ], |
| 218 | 'variables': { |
| 219 | 'exported_deps': [ |
| 220 | 'dbus-1', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 221 | 'libcrypto', |
| 222 | 'libcurl', |
Alex Deymo | d6deb1d | 2015-08-28 15:54:37 -0700 | [diff] [blame] | 223 | 'libdebugd-client', |
| 224 | 'libsession_manager-client', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 225 | 'libmetrics-<(libbase_ver)', |
Alex Deymo | d6deb1d | 2015-08-28 15:54:37 -0700 | [diff] [blame] | 226 | 'libpower_manager-client', |
| 227 | 'libupdate_engine-client', |
| 228 | 'libshill-client', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 229 | 'libssl', |
Alex Deymo | d6deb1d | 2015-08-28 15:54:37 -0700 | [diff] [blame] | 230 | 'expat', |
Alex Deymo | 2e71f90 | 2015-09-30 01:25:48 -0700 | [diff] [blame] | 231 | 'xz-embedded', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 232 | ], |
| 233 | 'deps': ['<@(exported_deps)'], |
| 234 | }, |
| 235 | 'all_dependent_settings': { |
| 236 | 'variables': { |
| 237 | 'deps': [ |
| 238 | '<@(exported_deps)', |
| 239 | ], |
| 240 | }, |
| 241 | }, |
| 242 | 'link_settings': { |
| 243 | 'variables': { |
| 244 | 'deps': [ |
| 245 | '<@(exported_deps)', |
| 246 | ], |
| 247 | }, |
| 248 | 'libraries': [ |
| 249 | '-lbz2', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 250 | '-lpolicy-<(libbase_ver)', |
| 251 | '-lrootdev', |
| 252 | '-lrt', |
| 253 | '-lvboot_host', |
| 254 | ], |
| 255 | }, |
| 256 | 'sources': [ |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 257 | 'chrome_browser_proxy_resolver.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 258 | 'connection_manager.cc', |
Alex Deymo | b7ca096 | 2014-10-01 17:58:07 -0700 | [diff] [blame] | 259 | 'daemon.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 260 | 'dbus_service.cc', |
Alex Deymo | 8561665 | 2015-10-15 18:48:31 -0700 | [diff] [blame] | 261 | 'image_properties_chromeos.cc', |
Alex Deymo | 3053450 | 2015-07-20 15:06:33 -0700 | [diff] [blame] | 262 | 'libcros_proxy.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 263 | 'metrics.cc', |
Alex Deymo | 38429cf | 2015-11-11 18:27:22 -0800 | [diff] [blame] | 264 | 'metrics_utils.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 265 | 'omaha_request_action.cc', |
| 266 | 'omaha_request_params.cc', |
| 267 | 'omaha_response_handler_action.cc', |
| 268 | 'p2p_manager.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 269 | 'payload_state.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 270 | 'proxy_resolver.cc', |
| 271 | 'real_system_state.cc', |
Alex Deymo | 3053450 | 2015-07-20 15:06:33 -0700 | [diff] [blame] | 272 | 'shill_proxy.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 273 | 'update_attempter.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 274 | 'update_manager/boxed_value.cc', |
| 275 | 'update_manager/chromeos_policy.cc', |
Gilad Arnold | a23e408 | 2014-07-17 11:40:43 -0700 | [diff] [blame] | 276 | 'update_manager/default_policy.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 277 | 'update_manager/evaluation_context.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 278 | 'update_manager/policy.cc', |
| 279 | 'update_manager/real_config_provider.cc', |
| 280 | 'update_manager/real_device_policy_provider.cc', |
| 281 | 'update_manager/real_random_provider.cc', |
| 282 | 'update_manager/real_shill_provider.cc', |
| 283 | 'update_manager/real_system_provider.cc', |
| 284 | 'update_manager/real_time_provider.cc', |
| 285 | 'update_manager/real_updater_provider.cc', |
| 286 | 'update_manager/state_factory.cc', |
| 287 | 'update_manager/update_manager.cc', |
Christopher Wiley | cc8ce0e | 2015-10-01 16:48:47 -0700 | [diff] [blame] | 288 | 'update_status_utils.cc', |
Nam T. Nguyen | f1d582e | 2014-12-08 15:07:17 -0800 | [diff] [blame] | 289 | ], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 290 | }, |
| 291 | # update_engine daemon. |
| 292 | { |
| 293 | 'target_name': 'update_engine', |
| 294 | 'type': 'executable', |
Alex Deymo | 44666f9 | 2014-07-22 20:29:24 -0700 | [diff] [blame] | 295 | 'dependencies': [ |
| 296 | 'libupdate_engine', |
Alex Deymo | 44666f9 | 2014-07-22 20:29:24 -0700 | [diff] [blame] | 297 | ], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 298 | 'sources': [ |
| 299 | 'main.cc', |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 300 | ], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 301 | }, |
| 302 | # update_engine console client. |
| 303 | { |
| 304 | 'target_name': 'update_engine_client', |
| 305 | 'type': 'executable', |
Alex Deymo | 44666f9 | 2014-07-22 20:29:24 -0700 | [diff] [blame] | 306 | 'variables': { |
| 307 | 'exported_deps': [ |
Alex Deymo | d6deb1d | 2015-08-28 15:54:37 -0700 | [diff] [blame] | 308 | 'libupdate_engine-client', |
Alex Deymo | 44666f9 | 2014-07-22 20:29:24 -0700 | [diff] [blame] | 309 | ], |
| 310 | 'deps': ['<@(exported_deps)'], |
| 311 | }, |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 312 | 'sources': [ |
| 313 | 'update_engine_client.cc', |
Alex Deymo | 72aa002 | 2015-06-19 21:16:49 -0700 | [diff] [blame] | 314 | ], |
Alex Deymo | d2956cc | 2015-08-17 15:39:40 -0700 | [diff] [blame] | 315 | }, |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 316 | # server-side code. This is used for delta_generator and unittests but not |
| 317 | # for any client code. |
| 318 | { |
| 319 | 'target_name': 'libpayload_generator', |
| 320 | 'type': 'static_library', |
| 321 | 'dependencies': [ |
Alex Deymo | d6deb1d | 2015-08-28 15:54:37 -0700 | [diff] [blame] | 322 | 'libupdate_engine', |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 323 | 'update_metadata-protos', |
| 324 | ], |
Alex Deymo | 5d52780 | 2014-07-18 14:24:13 -0700 | [diff] [blame] | 325 | 'variables': { |
| 326 | 'exported_deps': [ |
| 327 | 'ext2fs', |
| 328 | ], |
| 329 | 'deps': ['<@(exported_deps)'], |
| 330 | }, |
| 331 | 'all_dependent_settings': { |
| 332 | 'variables': { |
| 333 | 'deps': [ |
| 334 | '<@(exported_deps)', |
| 335 | ], |
| 336 | }, |
| 337 | }, |
| 338 | 'link_settings': { |
| 339 | 'variables': { |
| 340 | 'deps': [ |
| 341 | '<@(exported_deps)', |
| 342 | ], |
| 343 | }, |
| 344 | }, |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 345 | 'sources': [ |
Alex Deymo | 1415857 | 2015-06-13 03:37:08 -0700 | [diff] [blame] | 346 | 'payload_generator/ab_generator.cc', |
Alex Deymo | 477aec2 | 2015-03-24 23:40:48 -0700 | [diff] [blame] | 347 | 'payload_generator/annotated_operation.cc', |
Sen Jiang | 8cc502d | 2015-08-10 10:04:54 -0700 | [diff] [blame] | 348 | 'payload_generator/blob_file_writer.cc', |
Alex Deymo | f006135 | 2015-07-01 14:59:15 -0700 | [diff] [blame] | 349 | 'payload_generator/block_mapping.cc', |
Alex Deymo | 0bc2611 | 2015-10-19 20:54:57 -0700 | [diff] [blame] | 350 | 'payload_generator/bzip.cc', |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 351 | 'payload_generator/cycle_breaker.cc', |
| 352 | 'payload_generator/delta_diff_generator.cc', |
Alex Deymo | 1415857 | 2015-06-13 03:37:08 -0700 | [diff] [blame] | 353 | 'payload_generator/delta_diff_utils.cc', |
Alex Deymo | 2b19cfb | 2015-03-26 00:35:07 -0700 | [diff] [blame] | 354 | 'payload_generator/ext2_filesystem.cc', |
Alex Deymo | 1beda78 | 2015-06-07 23:01:25 +0200 | [diff] [blame] | 355 | 'payload_generator/extent_ranges.cc', |
Alex Deymo | 5c6c655 | 2015-06-03 19:06:50 +0200 | [diff] [blame] | 356 | 'payload_generator/extent_utils.cc', |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 357 | 'payload_generator/full_update_generator.cc', |
Alex Deymo | 9b244df | 2015-03-11 21:51:18 -0700 | [diff] [blame] | 358 | 'payload_generator/graph_types.cc', |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 359 | 'payload_generator/graph_utils.cc', |
Allie Wood | cd514b5 | 2015-02-19 13:56:07 -0800 | [diff] [blame] | 360 | 'payload_generator/inplace_generator.cc', |
Alex Deymo | 1415857 | 2015-06-13 03:37:08 -0700 | [diff] [blame] | 361 | 'payload_generator/payload_file.cc', |
Alex Deymo | f1cbe17 | 2015-03-05 15:58:37 -0800 | [diff] [blame] | 362 | 'payload_generator/payload_generation_config.cc', |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 363 | 'payload_generator/payload_signer.cc', |
Alex Deymo | 2b19cfb | 2015-03-26 00:35:07 -0700 | [diff] [blame] | 364 | 'payload_generator/raw_filesystem.cc', |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 365 | 'payload_generator/tarjan.cc', |
| 366 | 'payload_generator/topological_sort.cc', |
| 367 | ], |
| 368 | }, |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 369 | # server-side delta generator. |
| 370 | { |
| 371 | 'target_name': 'delta_generator', |
| 372 | 'type': 'executable', |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 373 | 'dependencies': [ |
| 374 | 'libupdate_engine', |
| 375 | 'libpayload_generator', |
| 376 | ], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 377 | 'link_settings': { |
| 378 | 'ldflags!': [ |
| 379 | '-pie', |
| 380 | ], |
| 381 | }, |
| 382 | 'sources': [ |
| 383 | 'payload_generator/generate_delta_main.cc', |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 384 | ], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 385 | }, |
| 386 | ], |
| 387 | 'conditions': [ |
| 388 | ['USE_test == 1', { |
| 389 | 'targets': [ |
| 390 | # Public keys used for unit testing. |
| 391 | { |
| 392 | 'target_name': 'update_engine-testkeys', |
| 393 | 'type': 'none', |
| 394 | 'variables': { |
| 395 | 'openssl_pem_in_dir': '.', |
| 396 | 'openssl_pem_out_dir': 'include/update_engine', |
| 397 | }, |
| 398 | 'sources': [ |
| 399 | 'unittest_key.pem', |
| 400 | 'unittest_key2.pem', |
| 401 | ], |
Alex Deymo | a7a34d8 | 2015-08-24 20:47:01 -0700 | [diff] [blame] | 402 | 'includes': ['../../../platform2/common-mk/openssl_pem.gypi'], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 403 | }, |
Alex Deymo | 04ef207 | 2015-08-13 08:19:16 -0700 | [diff] [blame] | 404 | # Unpacks sample images used for testing. |
Alex Deymo | 2b19cfb | 2015-03-26 00:35:07 -0700 | [diff] [blame] | 405 | { |
| 406 | 'target_name': 'update_engine-test_images', |
| 407 | 'type': 'none', |
| 408 | 'variables': { |
| 409 | 'image_out_dir': '.', |
| 410 | }, |
| 411 | 'sources': [ |
Alex Deymo | 04ef207 | 2015-08-13 08:19:16 -0700 | [diff] [blame] | 412 | 'sample_images/sample_images.tar.bz2', |
Alex Deymo | 2b19cfb | 2015-03-26 00:35:07 -0700 | [diff] [blame] | 413 | ], |
Alex Deymo | 04ef207 | 2015-08-13 08:19:16 -0700 | [diff] [blame] | 414 | 'includes': ['tar_bunzip2.gypi'], |
Alex Deymo | 2b19cfb | 2015-03-26 00:35:07 -0700 | [diff] [blame] | 415 | }, |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 416 | # Test HTTP Server. |
| 417 | { |
| 418 | 'target_name': 'test_http_server', |
| 419 | 'type': 'executable', |
| 420 | 'dependencies': ['libupdate_engine'], |
| 421 | 'sources': [ |
| 422 | 'test_http_server.cc', |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 423 | ], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 424 | }, |
| 425 | # Main unittest file. |
| 426 | { |
| 427 | 'target_name': 'update_engine_unittests', |
| 428 | 'type': 'executable', |
Alex Deymo | a7a34d8 | 2015-08-24 20:47:01 -0700 | [diff] [blame] | 429 | 'includes': ['../../../platform2/common-mk/common_test.gypi'], |
Alex Deymo | 509dd53 | 2015-06-10 14:11:05 -0700 | [diff] [blame] | 430 | 'variables': { |
| 431 | 'deps': [ |
Alex Vakulenko | 1bab5a8 | 2015-10-27 11:47:28 -0700 | [diff] [blame] | 432 | 'libbrillo-test-<(libbase_ver)', |
Alex Deymo | 509dd53 | 2015-06-10 14:11:05 -0700 | [diff] [blame] | 433 | 'libchrome-test-<(libbase_ver)', |
Alex Deymo | d6deb1d | 2015-08-28 15:54:37 -0700 | [diff] [blame] | 434 | 'libdebugd-client-test', |
| 435 | 'libpower_manager-client-test', |
| 436 | 'libsession_manager-client-test', |
| 437 | 'libshill-client-test', |
Alex Deymo | 509dd53 | 2015-06-10 14:11:05 -0700 | [diff] [blame] | 438 | ], |
| 439 | }, |
Alex Deymo | 7504e5f | 2014-07-15 17:58:51 -0700 | [diff] [blame] | 440 | 'dependencies': [ |
| 441 | 'libupdate_engine', |
| 442 | 'libpayload_generator', |
| 443 | ], |
Alex Deymo | a7a34d8 | 2015-08-24 20:47:01 -0700 | [diff] [blame] | 444 | 'includes': ['../../../platform2/common-mk/common_test.gypi'], |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 445 | 'sources': [ |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 446 | 'chrome_browser_proxy_resolver_unittest.cc', |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 447 | 'common/action_pipe_unittest.cc', |
| 448 | 'common/action_processor_unittest.cc', |
| 449 | 'common/action_unittest.cc', |
| 450 | 'common/boot_control_chromeos_unittest.cc', |
| 451 | 'common/certificate_checker_unittest.cc', |
| 452 | 'common/fake_prefs.cc', |
| 453 | 'common/hash_calculator_unittest.cc', |
| 454 | 'common/http_fetcher_unittest.cc', |
| 455 | 'common/hwid_override_unittest.cc', |
| 456 | 'common/mock_http_fetcher.cc', |
| 457 | 'common/prefs_unittest.cc', |
| 458 | 'common/subprocess_unittest.cc', |
| 459 | 'common/terminator_unittest.cc', |
| 460 | 'common/test_utils.cc', |
| 461 | 'common/utils_unittest.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 462 | 'connection_manager_unittest.cc', |
Alex Deymo | b7ca096 | 2014-10-01 17:58:07 -0700 | [diff] [blame] | 463 | 'dbus_service_unittest.cc', |
Alex Deymo | 3053450 | 2015-07-20 15:06:33 -0700 | [diff] [blame] | 464 | 'fake_shill_proxy.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 465 | 'fake_system_state.cc', |
Alex Deymo | 38429cf | 2015-11-11 18:27:22 -0800 | [diff] [blame] | 466 | 'metrics_utils_unittest.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 467 | 'omaha_request_action_unittest.cc', |
| 468 | 'omaha_request_params_unittest.cc', |
| 469 | 'omaha_response_handler_action_unittest.cc', |
| 470 | 'p2p_manager_unittest.cc', |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 471 | 'payload_consumer/bzip_extent_writer_unittest.cc', |
| 472 | 'payload_consumer/delta_performer_integration_test.cc', |
| 473 | 'payload_consumer/delta_performer_unittest.cc', |
| 474 | 'payload_consumer/download_action_unittest.cc', |
| 475 | 'payload_consumer/extent_writer_unittest.cc', |
| 476 | 'payload_consumer/file_writer_unittest.cc', |
| 477 | 'payload_consumer/filesystem_verifier_action_unittest.cc', |
| 478 | 'payload_consumer/postinstall_runner_action_unittest.cc', |
| 479 | 'payload_consumer/xz_extent_writer_unittest.cc', |
Alex Deymo | 1415857 | 2015-06-13 03:37:08 -0700 | [diff] [blame] | 480 | 'payload_generator/ab_generator_unittest.cc', |
Sen Jiang | 8cc502d | 2015-08-10 10:04:54 -0700 | [diff] [blame] | 481 | 'payload_generator/blob_file_writer_unittest.cc', |
Alex Deymo | f006135 | 2015-07-01 14:59:15 -0700 | [diff] [blame] | 482 | 'payload_generator/block_mapping_unittest.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 483 | 'payload_generator/cycle_breaker_unittest.cc', |
Alex Deymo | 1415857 | 2015-06-13 03:37:08 -0700 | [diff] [blame] | 484 | 'payload_generator/delta_diff_utils_unittest.cc', |
Alex Deymo | 2b19cfb | 2015-03-26 00:35:07 -0700 | [diff] [blame] | 485 | 'payload_generator/ext2_filesystem_unittest.cc', |
Alex Deymo | 1beda78 | 2015-06-07 23:01:25 +0200 | [diff] [blame] | 486 | 'payload_generator/extent_ranges_unittest.cc', |
Alex Deymo | 5c6c655 | 2015-06-03 19:06:50 +0200 | [diff] [blame] | 487 | 'payload_generator/extent_utils_unittest.cc', |
Alex Deymo | 2b19cfb | 2015-03-26 00:35:07 -0700 | [diff] [blame] | 488 | 'payload_generator/fake_filesystem.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 489 | 'payload_generator/full_update_generator_unittest.cc', |
| 490 | 'payload_generator/graph_utils_unittest.cc', |
Allie Wood | cd514b5 | 2015-02-19 13:56:07 -0800 | [diff] [blame] | 491 | 'payload_generator/inplace_generator_unittest.cc', |
Alex Deymo | 1415857 | 2015-06-13 03:37:08 -0700 | [diff] [blame] | 492 | 'payload_generator/payload_file_unittest.cc', |
Sen Jiang | 05feee0 | 2015-11-11 15:59:49 -0800 | [diff] [blame] | 493 | 'payload_generator/payload_generation_config_unittest.cc', |
Alex Deymo | 39910dc | 2015-11-09 17:04:30 -0800 | [diff] [blame] | 494 | 'payload_generator/payload_signer_unittest.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 495 | 'payload_generator/tarjan_unittest.cc', |
| 496 | 'payload_generator/topological_sort_unittest.cc', |
Alex Deymo | 0bc2611 | 2015-10-19 20:54:57 -0700 | [diff] [blame] | 497 | 'payload_generator/zip_unittest.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 498 | 'payload_state_unittest.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 499 | 'update_attempter_unittest.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 500 | 'update_manager/boxed_value_unittest.cc', |
| 501 | 'update_manager/chromeos_policy_unittest.cc', |
| 502 | 'update_manager/evaluation_context_unittest.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 503 | 'update_manager/generic_variables_unittest.cc', |
| 504 | 'update_manager/prng_unittest.cc', |
| 505 | 'update_manager/real_config_provider_unittest.cc', |
| 506 | 'update_manager/real_device_policy_provider_unittest.cc', |
| 507 | 'update_manager/real_random_provider_unittest.cc', |
| 508 | 'update_manager/real_shill_provider_unittest.cc', |
| 509 | 'update_manager/real_system_provider_unittest.cc', |
| 510 | 'update_manager/real_time_provider_unittest.cc', |
| 511 | 'update_manager/real_updater_provider_unittest.cc', |
| 512 | 'update_manager/umtest_utils.cc', |
| 513 | 'update_manager/update_manager_unittest.cc', |
| 514 | 'update_manager/variable_unittest.cc', |
Alex Deymo | 719bfff | 2014-07-11 12:12:32 -0700 | [diff] [blame] | 515 | # Main entry point for runnning tests. |
| 516 | 'testrunner.cc', |
| 517 | ], |
| 518 | }, |
| 519 | ], |
| 520 | }], |
| 521 | ], |
| 522 | } |