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 | |
| 107 | # libupdate_engine (type: static_library) |
| 108 | # ======================================================== |
| 109 | # The main static_library with all the code. |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 110 | ue_libupdate_engine_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 | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 113 | ue_libupdate_engine_exported_static_libraries := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 114 | update_metadata-protos \ |
| 115 | update_engine-dbus-adaptor \ |
| 116 | update_engine-dbus-libcros-client \ |
| 117 | update_engine_client-dbus-proxies \ |
Alex Deymo | eadab7d | 2015-10-09 14:45:02 -0700 | [diff] [blame] | 118 | libxz \ |
David Zeuthen | 753fadc | 2015-09-15 16:34:09 -0400 | [diff] [blame] | 119 | libbz \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 120 | libfs_mgr \ |
| 121 | $(ue_update_metadata_protos_exported_static_libraries) |
| 122 | ue_libupdate_engine_exported_shared_libraries := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 123 | libdbus \ |
| 124 | libcrypto \ |
| 125 | libcurl \ |
| 126 | libmetrics \ |
Alex Deymo | 7eb2305 | 2015-10-09 15:27:59 -0700 | [diff] [blame] | 127 | libshill-client \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 128 | libssl \ |
| 129 | libexpat \ |
Alex Vakulenko | 1bab5a8 | 2015-10-27 11:47:28 -0700 | [diff] [blame] | 130 | libbrillo-policy \ |
Alex Deymo | eadab7d | 2015-10-09 14:45:02 -0700 | [diff] [blame] | 131 | libhardware \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 132 | libcutils \ |
| 133 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 134 | |
| 135 | include $(CLEAR_VARS) |
| 136 | LOCAL_MODULE := libupdate_engine |
| 137 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 138 | LOCAL_CPP_EXTENSION := .cc |
| 139 | LOCAL_RTTI_FLAG := -frtti |
| 140 | LOCAL_CLANG := true |
| 141 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(ue_libupdate_engine_exported_c_includes) |
| 142 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 143 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 144 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 145 | LOCAL_C_INCLUDES := \ |
| 146 | $(ue_common_c_includes) \ |
| 147 | $(ue_libupdate_engine_exported_c_includes) \ |
| 148 | external/e2fsprogs/lib |
| 149 | LOCAL_STATIC_LIBRARIES := \ |
| 150 | update_metadata-protos \ |
| 151 | update_engine-dbus-adaptor \ |
| 152 | update_engine-dbus-libcros-client \ |
| 153 | update_engine_client-dbus-proxies \ |
| 154 | $(ue_libupdate_engine_exported_static_libraries) \ |
| 155 | $(ue_update_metadata_protos_exported_static_libraries) |
| 156 | LOCAL_SHARED_LIBRARIES := \ |
| 157 | $(ue_common_shared_libraries) \ |
| 158 | $(ue_libupdate_engine_exported_shared_libraries) \ |
| 159 | $(ue_update_metadata_protos_exported_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 160 | LOCAL_SRC_FILES := \ |
| 161 | action_processor.cc \ |
| 162 | boot_control_android.cc \ |
David Zeuthen | 6eddf26 | 2015-10-16 15:23:53 -0400 | [diff] [blame] | 163 | boot_control_stub.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 164 | bzip_extent_writer.cc \ |
| 165 | certificate_checker.cc \ |
| 166 | chrome_browser_proxy_resolver.cc \ |
| 167 | clock.cc \ |
| 168 | connection_manager.cc \ |
| 169 | constants.cc \ |
| 170 | daemon.cc \ |
| 171 | dbus_service.cc \ |
| 172 | delta_performer.cc \ |
| 173 | download_action.cc \ |
| 174 | extent_writer.cc \ |
| 175 | file_descriptor.cc \ |
| 176 | file_writer.cc \ |
| 177 | filesystem_verifier_action.cc \ |
| 178 | hardware_android.cc \ |
| 179 | http_common.cc \ |
| 180 | http_fetcher.cc \ |
| 181 | hwid_override.cc \ |
Alex Deymo | 8561665 | 2015-10-15 18:48:31 -0700 | [diff] [blame] | 182 | image_properties_android.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 183 | install_plan.cc \ |
| 184 | libcros_proxy.cc \ |
| 185 | libcurl_http_fetcher.cc \ |
| 186 | metrics.cc \ |
| 187 | multi_range_http_fetcher.cc \ |
| 188 | omaha_hash_calculator.cc \ |
| 189 | omaha_request_action.cc \ |
| 190 | omaha_request_params.cc \ |
| 191 | omaha_response_handler_action.cc \ |
| 192 | p2p_manager.cc \ |
| 193 | payload_constants.cc \ |
| 194 | payload_state.cc \ |
| 195 | payload_verifier.cc \ |
Alex Deymo | ac41a82 | 2015-09-15 20:52:53 -0700 | [diff] [blame] | 196 | platform_constants_android.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 197 | postinstall_runner_action.cc \ |
| 198 | prefs.cc \ |
| 199 | proxy_resolver.cc \ |
| 200 | real_system_state.cc \ |
| 201 | shill_proxy.cc \ |
| 202 | subprocess.cc \ |
| 203 | terminator.cc \ |
| 204 | update_attempter.cc \ |
| 205 | update_manager/boxed_value.cc \ |
| 206 | update_manager/chromeos_policy.cc \ |
| 207 | update_manager/default_policy.cc \ |
| 208 | update_manager/evaluation_context.cc \ |
| 209 | update_manager/policy.cc \ |
| 210 | update_manager/real_config_provider.cc \ |
| 211 | update_manager/real_device_policy_provider.cc \ |
| 212 | update_manager/real_random_provider.cc \ |
| 213 | update_manager/real_shill_provider.cc \ |
| 214 | update_manager/real_system_provider.cc \ |
| 215 | update_manager/real_time_provider.cc \ |
| 216 | update_manager/real_updater_provider.cc \ |
| 217 | update_manager/state_factory.cc \ |
| 218 | update_manager/update_manager.cc \ |
Christopher Wiley | cc8ce0e | 2015-10-01 16:48:47 -0700 | [diff] [blame] | 219 | update_status_utils.cc \ |
Alex Deymo | 2e71f90 | 2015-09-30 01:25:48 -0700 | [diff] [blame] | 220 | utils.cc \ |
| 221 | xz_extent_writer.cc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 222 | include $(BUILD_STATIC_LIBRARY) |
| 223 | |
| 224 | # update_engine (type: executable) |
| 225 | # ======================================================== |
| 226 | # update_engine daemon. |
| 227 | include $(CLEAR_VARS) |
| 228 | LOCAL_MODULE := update_engine |
| 229 | LOCAL_MODULE_CLASS := EXECUTABLES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 230 | LOCAL_CPP_EXTENSION := .cc |
| 231 | LOCAL_RTTI_FLAG := -frtti |
| 232 | LOCAL_CLANG := true |
| 233 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 234 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 235 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 236 | LOCAL_C_INCLUDES := \ |
| 237 | $(ue_common_c_includes) \ |
| 238 | $(ue_libupdate_engine_exported_c_includes) |
| 239 | LOCAL_STATIC_LIBRARIES := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 240 | libupdate_engine \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 241 | $(ue_libupdate_engine_exported_static_libraries) |
| 242 | LOCAL_SHARED_LIBRARIES := \ |
| 243 | $(ue_common_shared_libraries) \ |
| 244 | $(ue_libupdate_engine_exported_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 245 | LOCAL_SRC_FILES := \ |
| 246 | main.cc |
Gilad Arnold | 70141f2 | 2015-09-17 09:06:30 -0700 | [diff] [blame] | 247 | LOCAL_INIT_RC := update_engine.rc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 248 | include $(BUILD_EXECUTABLE) |
| 249 | |
| 250 | # update_engine_client (type: executable) |
| 251 | # ======================================================== |
| 252 | # update_engine console client. |
| 253 | include $(CLEAR_VARS) |
| 254 | LOCAL_MODULE := update_engine_client |
| 255 | LOCAL_MODULE_CLASS := EXECUTABLES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 256 | LOCAL_CPP_EXTENSION := .cc |
| 257 | LOCAL_RTTI_FLAG := -frtti |
| 258 | LOCAL_CLANG := true |
| 259 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 260 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 261 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 262 | LOCAL_C_INCLUDES := \ |
| 263 | $(ue_common_c_includes) \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 264 | $(LOCAL_PATH)/include |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 265 | LOCAL_STATIC_LIBRARIES := update_engine_client-dbus-proxies |
| 266 | LOCAL_SHARED_LIBRARIES := $(ue_common_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 267 | LOCAL_SRC_FILES := \ |
| 268 | update_engine_client.cc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 269 | include $(BUILD_EXECUTABLE) |
| 270 | |
| 271 | # libpayload_generator (type: static_library) |
| 272 | # ======================================================== |
| 273 | # server-side code. This is used for delta_generator and unittests but not |
| 274 | # for any client code. |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 275 | ue_libpayload_generator_exported_c_includes := \ |
| 276 | $(ue_libupdate_engine_exported_c_includes) |
| 277 | ue_libpayload_generator_exported_static_libraries := \ |
| 278 | libupdate_engine \ |
| 279 | update_metadata-protos \ |
| 280 | $(ue_libupdate_engine_exported_static_libraries) \ |
| 281 | $(ue_update_metadata_protos_exported_static_libraries) |
| 282 | ue_libpayload_generator_exported_shared_libraries := \ |
| 283 | libext2fs \ |
| 284 | $(ue_libupdate_engine_exported_shared_libraries) \ |
| 285 | $(ue_update_metadata_protos_exported_shared_libraries) |
| 286 | |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 287 | include $(CLEAR_VARS) |
| 288 | LOCAL_MODULE := libpayload_generator |
| 289 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 290 | LOCAL_CPP_EXTENSION := .cc |
| 291 | LOCAL_RTTI_FLAG := -frtti |
| 292 | LOCAL_CLANG := true |
| 293 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(ue_libpayload_generator_exported_c_includes) |
| 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 | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 302 | update_metadata-protos \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 303 | $(ue_libupdate_engine_exported_static_libraries) \ |
| 304 | $(ue_update_metadata_protos_exported_static_libraries) |
| 305 | LOCAL_SHARED_LIBRARIES := \ |
| 306 | $(ue_common_shared_libraries) \ |
| 307 | $(ue_libpayload_generator_exported_shared_libraries) \ |
| 308 | $(ue_libupdate_engine_exported_shared_libraries) \ |
| 309 | $(ue_update_metadata_protos_exported_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 310 | LOCAL_SRC_FILES := \ |
| 311 | payload_generator/ab_generator.cc \ |
| 312 | payload_generator/annotated_operation.cc \ |
| 313 | payload_generator/blob_file_writer.cc \ |
| 314 | payload_generator/block_mapping.cc \ |
Alex Deymo | 0bc2611 | 2015-10-19 20:54:57 -0700 | [diff] [blame] | 315 | payload_generator/bzip.cc \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 316 | payload_generator/cycle_breaker.cc \ |
| 317 | payload_generator/delta_diff_generator.cc \ |
| 318 | payload_generator/delta_diff_utils.cc \ |
| 319 | payload_generator/ext2_filesystem.cc \ |
| 320 | payload_generator/extent_ranges.cc \ |
| 321 | payload_generator/extent_utils.cc \ |
| 322 | payload_generator/full_update_generator.cc \ |
| 323 | payload_generator/graph_types.cc \ |
| 324 | payload_generator/graph_utils.cc \ |
| 325 | payload_generator/inplace_generator.cc \ |
| 326 | payload_generator/payload_file.cc \ |
| 327 | payload_generator/payload_generation_config.cc \ |
| 328 | payload_generator/payload_signer.cc \ |
| 329 | payload_generator/raw_filesystem.cc \ |
| 330 | payload_generator/tarjan.cc \ |
| 331 | payload_generator/topological_sort.cc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 332 | include $(BUILD_STATIC_LIBRARY) |
| 333 | |
| 334 | # delta_generator (type: executable) |
| 335 | # ======================================================== |
| 336 | # server-side delta generator. |
| 337 | include $(CLEAR_VARS) |
| 338 | LOCAL_MODULE := delta_generator |
| 339 | LOCAL_MODULE_CLASS := EXECUTABLES |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 340 | LOCAL_CPP_EXTENSION := .cc |
| 341 | LOCAL_RTTI_FLAG := -frtti |
| 342 | LOCAL_CLANG := true |
| 343 | LOCAL_CFLAGS := $(ue_common_cflags) |
| 344 | LOCAL_CPPFLAGS := $(ue_common_cppflags) |
| 345 | LOCAL_LDFLAGS := $(ue_common_ldflags) |
| 346 | LOCAL_C_INCLUDES := \ |
| 347 | $(ue_common_c_includes) \ |
| 348 | $(ue_libupdate_engine_exported_c_includes) \ |
| 349 | $(ue_libpayload_generator_exported_c_includes) |
| 350 | LOCAL_STATIC_LIBRARIES := \ |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 351 | libupdate_engine \ |
Alex Deymo | c372ab6 | 2015-10-29 00:43:26 -0700 | [diff] [blame] | 352 | libpayload_generator \ |
| 353 | $(ue_libupdate_engine_exported_static_libraries) \ |
| 354 | $(ue_libpayload_generator_exported_static_libraries) |
| 355 | LOCAL_SHARED_LIBRARIES := \ |
| 356 | $(ue_common_shared_libraries) \ |
| 357 | $(ue_libupdate_engine_exported_shared_libraries) \ |
| 358 | $(ue_libpayload_generator_exported_shared_libraries) |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 359 | LOCAL_SRC_FILES := \ |
| 360 | payload_generator/generate_delta_main.cc |
Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame] | 361 | include $(BUILD_EXECUTABLE) |
| 362 | |
Christopher Wiley | 16daa08 | 2015-10-01 17:18:40 -0700 | [diff] [blame] | 363 | # libupdate_engine_client |
| 364 | # ======================================================== |
| 365 | include $(CLEAR_VARS) |
| 366 | LOCAL_MODULE := libupdate_engine_client |
| 367 | LOCAL_RTTI_FLAG := -frtti |
| 368 | LOCAL_CFLAGS := \ |
| 369 | -Wall \ |
| 370 | -Werror \ |
| 371 | -Wno-unused-parameter |
| 372 | LOCAL_CLANG := true |
| 373 | LOCAL_CPP_EXTENSION := .cc |
| 374 | LOCAL_C_INCLUDES := \ |
| 375 | $(LOCAL_PATH)/client_library/include \ |
| 376 | external/cros/system_api/dbus \ |
| 377 | system \ |
| 378 | external/gtest/include |
| 379 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/client_library/include |
| 380 | LOCAL_SHARED_LIBRARIES := \ |
| 381 | libchrome \ |
| 382 | libchrome-dbus \ |
Alex Vakulenko | 1bab5a8 | 2015-10-27 11:47:28 -0700 | [diff] [blame] | 383 | libbrillo \ |
| 384 | libbrillo-dbus |
Christopher Wiley | 16daa08 | 2015-10-01 17:18:40 -0700 | [diff] [blame] | 385 | LOCAL_STATIC_LIBRARIES := \ |
| 386 | update_engine_client-dbus-proxies |
| 387 | LOCAL_SRC_FILES := \ |
| 388 | client_library/client.cc \ |
| 389 | client_library/client_impl.cc \ |
| 390 | update_status_utils.cc |
| 391 | include $(BUILD_SHARED_LIBRARY) |
| 392 | |
Gaurav Shah | 263614f | 2015-09-24 14:20:38 -0700 | [diff] [blame] | 393 | |
| 394 | # Update payload signing public key. |
| 395 | # ======================================================== |
| 396 | include $(CLEAR_VARS) |
| 397 | LOCAL_MODULE := brillo-update-payload-key |
| 398 | LOCAL_MODULE_CLASS := ETC |
| 399 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/update_engine |
| 400 | LOCAL_MODULE_STEM := update-payload-key.pub.pem |
| 401 | LOCAL_SRC_FILES := update_payload_key/brillo-update-payload-key.pub.pem |
| 402 | LOCAL_BUILT_MODULE_STEM := update_payload_key/brillo-update-payload-key.pub.pem |
| 403 | include $(BUILD_PREBUILT) |