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