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