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