Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -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 | # |
| 16 | |
| 17 | LOCAL_PATH := $(my-dir) |
| 18 | |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 19 | ue_common_cflags := \ |
| 20 | -DUSE_HWID_OVERRIDE=0 \ |
| 21 | -DUSE_MTD=0 \ |
| 22 | -DUSE_POWER_MANAGEMENT=0 \ |
| 23 | -D_FILE_OFFSET_BITS=64 \ |
| 24 | -D_POSIX_C_SOURCE=199309L \ |
| 25 | -Wa,--noexecstack \ |
| 26 | -Wall \ |
| 27 | -Werror \ |
| 28 | -Wextra \ |
| 29 | -Wformat=2 \ |
| 30 | -Wno-psabi \ |
| 31 | -Wno-unused-parameter \ |
| 32 | -ffunction-sections \ |
| 33 | -fstack-protector-strong \ |
| 34 | -fvisibility=hidden |
| 35 | ue_common_cppflags := \ |
| 36 | -Wnon-virtual-dtor \ |
| 37 | -fno-strict-aliasing \ |
| 38 | -std=gnu++11 |
| 39 | ue_common_ldflags := \ |
| 40 | -Wl,--gc-sections |
| 41 | ue_common_c_includes := \ |
| 42 | $(LOCAL_PATH)/client_library/include \ |
| 43 | external/gtest/include \ |
| 44 | system |
| 45 | ue_common_shared_libraries := \ |
| 46 | libbrillo \ |
| 47 | libbrillo-dbus \ |
| 48 | libbrillo-http \ |
| 49 | libbrillo-stream \ |
| 50 | libchrome \ |
| 51 | libchrome-dbus |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 52 | |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 53 | |
| 54 | # update_engine_client-dbus-proxies (from generate-dbus-proxies.gypi) |
| 55 | # ======================================================== |
| 56 | include $(CLEAR_VARS) |
| 57 | LOCAL_MODULE := update_engine_client-dbus-proxies |
| 58 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 59 | LOCAL_SRC_FILES := \ |
| 60 | dbus_bindings/dbus-service-config.json \ |
| 61 | dbus_bindings/org.chromium.UpdateEngineInterface.dbus-xml |
| 62 | LOCAL_DBUS_PROXY_PREFIX := update_engine |
| 63 | include $(BUILD_STATIC_LIBRARY) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 64 | |
| 65 | # update_metadata-protos (type: static_library) |
| 66 | # ======================================================== |
| 67 | # Protobufs. |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 68 | ue_update_metadata_protos_exported_static_libraries := \ |
| 69 | update_metadata-protos |
| 70 | ue_update_metadata_protos_exported_shared_libraries := \ |
| 71 | libprotobuf-cpp-lite-rtti |
| 72 | |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 73 | include $(CLEAR_VARS) |
| 74 | LOCAL_MODULE := update_metadata-protos |
| 75 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 76 | generated_sources_dir := $(call local-generated-sources-dir) |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 77 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(generated_sources_dir)/proto/system |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 78 | LOCAL_SRC_FILES := \ |
| 79 | update_metadata.proto |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 80 | include $(BUILD_STATIC_LIBRARY) |
| 81 | |
| 82 | # update_engine-dbus-adaptor (from generate-dbus-adaptors.gypi) |
| 83 | # ======================================================== |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 84 | # Chrome D-Bus bindings. |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 85 | include $(CLEAR_VARS) |
| 86 | LOCAL_MODULE := update_engine-dbus-adaptor |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 87 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 88 | LOCAL_SRC_FILES := \ |
| 89 | dbus_bindings/org.chromium.UpdateEngineInterface.dbus-xml |
| 90 | include $(BUILD_STATIC_LIBRARY) |
| 91 | |
| 92 | # update_engine-dbus-libcros-client (from generate-dbus-proxies.gypi) |
| 93 | # ======================================================== |
| 94 | include $(CLEAR_VARS) |
| 95 | LOCAL_MODULE := update_engine-dbus-libcros-client |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 96 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 97 | LOCAL_SRC_FILES := \ |
| 98 | dbus_bindings/org.chromium.LibCrosService.dbus-xml |
| 99 | LOCAL_DBUS_PROXY_PREFIX := libcros |
| 100 | include $(BUILD_STATIC_LIBRARY) |
| 101 | |
| 102 | # libupdate_engine (type: static_library) |
| 103 | # ======================================================== |
| 104 | # The main static_library with all the code. |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 105 | ue_libupdate_engine_exported_c_includes := \ |
Alex Deymo | 7eb2305 | 2015-10-09 15:27:59 -0700 | [diff] [blame] | 106 | $(LOCAL_PATH)/include \ |
| 107 | external/cros/system_api/dbus |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 108 | ue_libupdate_engine_exported_static_libraries := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 109 | update_metadata-protos \ |
| 110 | update_engine-dbus-adaptor \ |
| 111 | update_engine-dbus-libcros-client \ |
| 112 | update_engine_client-dbus-proxies \ |
Alex Deymo | eadab7d | 2015-10-09 14:45:02 -0700 | [diff] [blame] | 113 | libxz \ |
David Zeuthen | 753fadc | 2015-09-15 16:34:09 -0400 | [diff] [blame] | 114 | libbz \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 115 | libfs_mgr \ |
| 116 | $(ue_update_metadata_protos_exported_static_libraries) |
| 117 | ue_libupdate_engine_exported_shared_libraries := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 118 | libdbus \ |
| 119 | libcrypto \ |
| 120 | libcurl \ |
| 121 | libmetrics \ |
Alex Deymo | 7eb2305 | 2015-10-09 15:27:59 -0700 | [diff] [blame] | 122 | libshill-client \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 123 | libssl \ |
| 124 | libexpat \ |
Alex Vakulenko | 1bab5a8 | 2015-10-27 11:47:28 -0700 | [diff] [blame] | 125 | libbrillo-policy \ |
Alex Deymo | eadab7d | 2015-10-09 14:45:02 -0700 | [diff] [blame] | 126 | libhardware \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 127 | libcutils \ |
| 128 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 129 | |
| 130 | include $(CLEAR_VARS) |
| 131 | LOCAL_MODULE := libupdate_engine |
| 132 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 133 | LOCAL_CPP_EXTENSION := .cc |
| 134 | LOCAL_RTTI_FLAG := -frtti |
| 135 | LOCAL_CLANG := true |
| 136 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(ue_libupdate_engine_exported_c_includes) |
| 137 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 138 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 139 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 140 | LOCAL_C_INCLUDES := \ |
| 141 | $(ue_common_c_includes) \ |
| 142 | $(ue_libupdate_engine_exported_c_includes) \ |
| 143 | external/e2fsprogs/lib |
| 144 | LOCAL_STATIC_LIBRARIES := \ |
| 145 | update_metadata-protos \ |
| 146 | update_engine-dbus-adaptor \ |
| 147 | update_engine-dbus-libcros-client \ |
| 148 | update_engine_client-dbus-proxies \ |
| 149 | $(ue_libupdate_engine_exported_static_libraries) \ |
| 150 | $(ue_update_metadata_protos_exported_static_libraries) |
| 151 | LOCAL_SHARED_LIBRARIES := \ |
| 152 | $(ue_common_shared_libraries) \ |
| 153 | $(ue_libupdate_engine_exported_shared_libraries) \ |
| 154 | $(ue_update_metadata_protos_exported_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 155 | LOCAL_SRC_FILES := \ |
| 156 | action_processor.cc \ |
| 157 | boot_control_android.cc \ |
David Zeuthen | 6eddf26 | 2015-10-16 15:23:53 -0400 | [diff] [blame] | 158 | boot_control_stub.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 159 | bzip_extent_writer.cc \ |
| 160 | certificate_checker.cc \ |
| 161 | chrome_browser_proxy_resolver.cc \ |
| 162 | clock.cc \ |
| 163 | connection_manager.cc \ |
| 164 | constants.cc \ |
| 165 | daemon.cc \ |
| 166 | dbus_service.cc \ |
| 167 | delta_performer.cc \ |
| 168 | download_action.cc \ |
| 169 | extent_writer.cc \ |
| 170 | file_descriptor.cc \ |
| 171 | file_writer.cc \ |
| 172 | filesystem_verifier_action.cc \ |
| 173 | hardware_android.cc \ |
| 174 | http_common.cc \ |
| 175 | http_fetcher.cc \ |
| 176 | hwid_override.cc \ |
Alex Deymo | 8561665 | 2015-10-15 18:48:31 -0700 | [diff] [blame] | 177 | image_properties_android.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 178 | install_plan.cc \ |
| 179 | libcros_proxy.cc \ |
| 180 | libcurl_http_fetcher.cc \ |
| 181 | metrics.cc \ |
| 182 | multi_range_http_fetcher.cc \ |
| 183 | omaha_hash_calculator.cc \ |
| 184 | omaha_request_action.cc \ |
| 185 | omaha_request_params.cc \ |
| 186 | omaha_response_handler_action.cc \ |
| 187 | p2p_manager.cc \ |
| 188 | payload_constants.cc \ |
| 189 | payload_state.cc \ |
| 190 | payload_verifier.cc \ |
Alex Deymo | ac41a82 | 2015-09-15 20:52:53 -0700 | [diff] [blame] | 191 | platform_constants_android.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 192 | postinstall_runner_action.cc \ |
| 193 | prefs.cc \ |
| 194 | proxy_resolver.cc \ |
| 195 | real_system_state.cc \ |
| 196 | shill_proxy.cc \ |
| 197 | subprocess.cc \ |
| 198 | terminator.cc \ |
| 199 | update_attempter.cc \ |
| 200 | update_manager/boxed_value.cc \ |
| 201 | update_manager/chromeos_policy.cc \ |
| 202 | update_manager/default_policy.cc \ |
| 203 | update_manager/evaluation_context.cc \ |
| 204 | update_manager/policy.cc \ |
| 205 | update_manager/real_config_provider.cc \ |
| 206 | update_manager/real_device_policy_provider.cc \ |
| 207 | update_manager/real_random_provider.cc \ |
| 208 | update_manager/real_shill_provider.cc \ |
| 209 | update_manager/real_system_provider.cc \ |
| 210 | update_manager/real_time_provider.cc \ |
| 211 | update_manager/real_updater_provider.cc \ |
| 212 | update_manager/state_factory.cc \ |
| 213 | update_manager/update_manager.cc \ |
Christopher Wiley | cc8ce0e | 2015-10-01 16:48:47 -0700 | [diff] [blame] | 214 | update_status_utils.cc \ |
Alex Deymo | 2e71f90 | 2015-09-30 01:25:48 -0700 | [diff] [blame] | 215 | utils.cc \ |
| 216 | xz_extent_writer.cc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 217 | include $(BUILD_STATIC_LIBRARY) |
| 218 | |
| 219 | # update_engine (type: executable) |
| 220 | # ======================================================== |
| 221 | # update_engine daemon. |
| 222 | include $(CLEAR_VARS) |
| 223 | LOCAL_MODULE := update_engine |
| 224 | LOCAL_MODULE_CLASS := EXECUTABLES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 225 | LOCAL_CPP_EXTENSION := .cc |
| 226 | LOCAL_RTTI_FLAG := -frtti |
| 227 | LOCAL_CLANG := true |
| 228 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 229 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 230 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 231 | LOCAL_C_INCLUDES := \ |
| 232 | $(ue_common_c_includes) \ |
| 233 | $(ue_libupdate_engine_exported_c_includes) |
| 234 | LOCAL_STATIC_LIBRARIES := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 235 | libupdate_engine \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 236 | $(ue_libupdate_engine_exported_static_libraries) |
| 237 | LOCAL_SHARED_LIBRARIES := \ |
| 238 | $(ue_common_shared_libraries) \ |
| 239 | $(ue_libupdate_engine_exported_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 240 | LOCAL_SRC_FILES := \ |
| 241 | main.cc |
Gilad Arnold | 70141f2 | 2015-09-17 09:06:30 -0700 | [diff] [blame] | 242 | LOCAL_INIT_RC := update_engine.rc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 243 | include $(BUILD_EXECUTABLE) |
| 244 | |
| 245 | # update_engine_client (type: executable) |
| 246 | # ======================================================== |
| 247 | # update_engine console client. |
| 248 | include $(CLEAR_VARS) |
| 249 | LOCAL_MODULE := update_engine_client |
| 250 | LOCAL_MODULE_CLASS := EXECUTABLES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 251 | LOCAL_CPP_EXTENSION := .cc |
| 252 | LOCAL_RTTI_FLAG := -frtti |
| 253 | LOCAL_CLANG := true |
| 254 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 255 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 256 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 257 | LOCAL_C_INCLUDES := \ |
| 258 | $(ue_common_c_includes) \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 259 | $(LOCAL_PATH)/include |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 260 | LOCAL_STATIC_LIBRARIES := update_engine_client-dbus-proxies |
| 261 | LOCAL_SHARED_LIBRARIES := $(ue_common_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 262 | LOCAL_SRC_FILES := \ |
| 263 | update_engine_client.cc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 264 | include $(BUILD_EXECUTABLE) |
| 265 | |
| 266 | # libpayload_generator (type: static_library) |
| 267 | # ======================================================== |
| 268 | # server-side code. This is used for delta_generator and unittests but not |
| 269 | # for any client code. |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 270 | ue_libpayload_generator_exported_c_includes := \ |
| 271 | $(ue_libupdate_engine_exported_c_includes) |
| 272 | ue_libpayload_generator_exported_static_libraries := \ |
| 273 | libupdate_engine \ |
| 274 | update_metadata-protos \ |
| 275 | $(ue_libupdate_engine_exported_static_libraries) \ |
| 276 | $(ue_update_metadata_protos_exported_static_libraries) |
| 277 | ue_libpayload_generator_exported_shared_libraries := \ |
| 278 | libext2fs \ |
| 279 | $(ue_libupdate_engine_exported_shared_libraries) \ |
| 280 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 281 | |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 282 | include $(CLEAR_VARS) |
| 283 | LOCAL_MODULE := libpayload_generator |
| 284 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 285 | LOCAL_CPP_EXTENSION := .cc |
| 286 | LOCAL_RTTI_FLAG := -frtti |
| 287 | LOCAL_CLANG := true |
| 288 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(ue_libpayload_generator_exported_c_includes) |
| 289 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 290 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 291 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 292 | LOCAL_C_INCLUDES := \ |
| 293 | $(ue_common_c_includes) \ |
| 294 | $(ue_libupdate_engine_exported_c_includes) |
| 295 | LOCAL_STATIC_LIBRARIES := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 296 | libupdate_engine \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 297 | update_metadata-protos \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 298 | $(ue_libupdate_engine_exported_static_libraries) \ |
| 299 | $(ue_update_metadata_protos_exported_static_libraries) |
| 300 | LOCAL_SHARED_LIBRARIES := \ |
| 301 | $(ue_common_shared_libraries) \ |
| 302 | $(ue_libpayload_generator_exported_shared_libraries) \ |
| 303 | $(ue_libupdate_engine_exported_shared_libraries) \ |
| 304 | $(ue_update_metadata_protos_exported_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 305 | LOCAL_SRC_FILES := \ |
| 306 | payload_generator/ab_generator.cc \ |
| 307 | payload_generator/annotated_operation.cc \ |
| 308 | payload_generator/blob_file_writer.cc \ |
| 309 | payload_generator/block_mapping.cc \ |
Alex Deymo | 0bc2611 | 2015-10-19 20:54:57 -0700 | [diff] [blame] | 310 | payload_generator/bzip.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 311 | payload_generator/cycle_breaker.cc \ |
| 312 | payload_generator/delta_diff_generator.cc \ |
| 313 | payload_generator/delta_diff_utils.cc \ |
| 314 | payload_generator/ext2_filesystem.cc \ |
| 315 | payload_generator/extent_ranges.cc \ |
| 316 | payload_generator/extent_utils.cc \ |
| 317 | payload_generator/full_update_generator.cc \ |
| 318 | payload_generator/graph_types.cc \ |
| 319 | payload_generator/graph_utils.cc \ |
| 320 | payload_generator/inplace_generator.cc \ |
| 321 | payload_generator/payload_file.cc \ |
| 322 | payload_generator/payload_generation_config.cc \ |
| 323 | payload_generator/payload_signer.cc \ |
| 324 | payload_generator/raw_filesystem.cc \ |
| 325 | payload_generator/tarjan.cc \ |
| 326 | payload_generator/topological_sort.cc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 327 | include $(BUILD_STATIC_LIBRARY) |
| 328 | |
| 329 | # delta_generator (type: executable) |
| 330 | # ======================================================== |
| 331 | # server-side delta generator. |
| 332 | include $(CLEAR_VARS) |
| 333 | LOCAL_MODULE := delta_generator |
| 334 | LOCAL_MODULE_CLASS := EXECUTABLES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 335 | LOCAL_CPP_EXTENSION := .cc |
| 336 | LOCAL_RTTI_FLAG := -frtti |
| 337 | LOCAL_CLANG := true |
| 338 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 339 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 340 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 341 | LOCAL_C_INCLUDES := \ |
| 342 | $(ue_common_c_includes) \ |
| 343 | $(ue_libupdate_engine_exported_c_includes) \ |
| 344 | $(ue_libpayload_generator_exported_c_includes) |
| 345 | LOCAL_STATIC_LIBRARIES := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 346 | libupdate_engine \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame^] | 347 | libpayload_generator \ |
| 348 | $(ue_libupdate_engine_exported_static_libraries) \ |
| 349 | $(ue_libpayload_generator_exported_static_libraries) |
| 350 | LOCAL_SHARED_LIBRARIES := \ |
| 351 | $(ue_common_shared_libraries) \ |
| 352 | $(ue_libupdate_engine_exported_shared_libraries) \ |
| 353 | $(ue_libpayload_generator_exported_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 354 | LOCAL_SRC_FILES := \ |
| 355 | payload_generator/generate_delta_main.cc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 356 | include $(BUILD_EXECUTABLE) |
| 357 | |
Christopher Wiley | 16daa08 | 2015-10-01 17:18:40 -0700 | [diff] [blame] | 358 | # libupdate_engine_client |
| 359 | # ======================================================== |
| 360 | include $(CLEAR_VARS) |
| 361 | LOCAL_MODULE := libupdate_engine_client |
| 362 | LOCAL_RTTI_FLAG := -frtti |
| 363 | LOCAL_CFLAGS := \ |
| 364 | -Wall \ |
| 365 | -Werror \ |
| 366 | -Wno-unused-parameter |
| 367 | LOCAL_CLANG := true |
| 368 | LOCAL_CPP_EXTENSION := .cc |
| 369 | LOCAL_C_INCLUDES := \ |
| 370 | $(LOCAL_PATH)/client_library/include \ |
| 371 | external/cros/system_api/dbus \ |
| 372 | system \ |
| 373 | external/gtest/include |
| 374 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/client_library/include |
| 375 | LOCAL_SHARED_LIBRARIES := \ |
| 376 | libchrome \ |
| 377 | libchrome-dbus \ |
Alex Vakulenko | 1bab5a8 | 2015-10-27 11:47:28 -0700 | [diff] [blame] | 378 | libbrillo \ |
| 379 | libbrillo-dbus |
Christopher Wiley | 16daa08 | 2015-10-01 17:18:40 -0700 | [diff] [blame] | 380 | LOCAL_STATIC_LIBRARIES := \ |
| 381 | update_engine_client-dbus-proxies |
| 382 | LOCAL_SRC_FILES := \ |
| 383 | client_library/client.cc \ |
| 384 | client_library/client_impl.cc \ |
| 385 | update_status_utils.cc |
| 386 | include $(BUILD_SHARED_LIBRARY) |
| 387 | |
Gaurav Shah | 263614f | 2015-09-24 14:20:38 -0700 | [diff] [blame] | 388 | |
| 389 | # Update payload signing public key. |
| 390 | # ======================================================== |
| 391 | include $(CLEAR_VARS) |
| 392 | LOCAL_MODULE := brillo-update-payload-key |
| 393 | LOCAL_MODULE_CLASS := ETC |
| 394 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/update_engine |
| 395 | LOCAL_MODULE_STEM := update-payload-key.pub.pem |
| 396 | LOCAL_SRC_FILES := update_payload_key/brillo-update-payload-key.pub.pem |
| 397 | LOCAL_BUILT_MODULE_STEM := update_payload_key/brillo-update-payload-key.pub.pem |
| 398 | include $(BUILD_PREBUILT) |