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