rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | local_use_binder = 0 |
| 2 | local_use_hwid_override = 0 |
| 3 | local_use_libcros = 0 |
| 4 | local_use_mtd = 0 |
| 5 | |
| 6 | BUILT_SOURCES = |
| 7 | EXTRA_DIST = |
| 8 | |
| 9 | AM_CPPFLAGS = $(GTEST_CPPFLAGS) $(GMOCK_CPPFLAGS) |
| 10 | AM_CFLAGS = -fno-exceptions \ |
| 11 | -fno-strict-aliasing \ |
| 12 | -Wclobbered \ |
| 13 | -Wempty-body \ |
| 14 | -Wignored-qualifiers \ |
| 15 | -Wmissing-field-initializers \ |
| 16 | -Wsign-compare \ |
| 17 | -Wtype-limits \ |
| 18 | -Wuninitialized \ |
| 19 | -Wa,--noexecstack \ |
| 20 | -Wall \ |
| 21 | -Wextra \ |
| 22 | -Wformat=2 \ |
| 23 | -Wno-psabi \ |
| 24 | -Wno-unused-parameter \ |
| 25 | -ffunction-sections \ |
| 26 | -fstack-protector-strong \ |
| 27 | -fvisibility=hidden \ |
| 28 | -D__STDC_FORMAT_MACROS=1 \ |
| 29 | $(GLIB_CFLAGS) $(DEPS_CFLAGS) \ |
| 30 | -DUSE_BINDER=$(local_use_binder) \ |
| 31 | -DUSE_HWID_OVERRIDE=$(local_use_hwid_override) \ |
| 32 | -DUSE_LIBCROS=$(local_use_libcros) \ |
| 33 | -DUSE_MTD=$(local_use_mtd) \ |
| 34 | -DUSE_OMAHA=0 \ |
| 35 | -D_FILE_OFFSET_BITS=64 \ |
| 36 | -D_POSIX_C_SOURCE=199309L \ |
| 37 | -D_UE_SIDELOAD=1 \ |
| 38 | -DUSE_DBUS=0 |
| 39 | |
| 40 | AM_CXXFLAGS = $(AM_CFLAGS) |
| 41 | |
| 42 | EXTRA_DIST += update_metadata.proto |
| 43 | BUILT_SOURCES += update_metadata.pb.cc \ |
| 44 | update_metadata.pb.h |
| 45 | %.pb.cc %.pb.h: %.proto |
| 46 | $(AM_V_GEN) $(PROTOC) --proto_path=$(top_srcdir) --cpp_out=$(top_srcdir) $< |
| 47 | |
| 48 | noinst_LIBRARIES = libpayload_consumer.a |
| 49 | |
| 50 | sbin_PROGRAMS = update_engine_sideload |
| 51 | |
| 52 | libpayload_consumer_a_SOURCES = \ |
| 53 | common/action_processor.cc \ |
| 54 | common/boot_control_stub.cc \ |
| 55 | common/clock.cc \ |
| 56 | common/constants.cc \ |
| 57 | common/cpu_limiter.cc \ |
| 58 | common/error_code_utils.cc \ |
| 59 | common/file_fetcher.cc \ |
| 60 | common/hash_calculator.cc \ |
| 61 | common/http_common.cc \ |
| 62 | common/http_fetcher.cc \ |
| 63 | common/hwid_override.cc \ |
| 64 | common/multi_range_http_fetcher.cc \ |
| 65 | common/platform_constants_android.cc \ |
| 66 | common/prefs.cc \ |
| 67 | common/subprocess.cc \ |
| 68 | common/terminator.cc \ |
| 69 | common/utils.cc \ |
| 70 | payload_consumer/bzip_extent_writer.cc \ |
| 71 | payload_consumer/cached_file_descriptor.cc \ |
| 72 | payload_consumer/delta_performer.cc \ |
| 73 | payload_consumer/download_action.cc \ |
| 74 | payload_consumer/extent_reader.cc \ |
| 75 | payload_consumer/extent_writer.cc \ |
| 76 | payload_consumer/file_descriptor.cc \ |
| 77 | payload_consumer/file_descriptor_utils.cc \ |
| 78 | payload_consumer/file_writer.cc \ |
| 79 | payload_consumer/filesystem_verifier_action.cc \ |
| 80 | payload_consumer/install_plan.cc \ |
| 81 | payload_consumer/mount_history.cc \ |
| 82 | payload_consumer/payload_constants.cc \ |
| 83 | payload_consumer/payload_metadata.cc \ |
| 84 | payload_consumer/payload_verifier.cc \ |
| 85 | payload_consumer/postinstall_runner_action.cc \ |
| 86 | payload_consumer/xz_extent_writer.cc |
| 87 | |
| 88 | if NAND |
| 89 | update_engine_sideload_LDADD = libpayload_consumer.a -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lcrypto \ |
| 90 | -lcurl -llog -lssl -lprotobuf-lite -lpthread -lbz2 -lgflags -lbase -lchrome -lbrillo -lbrillo_stream \ |
| 91 | -levent -lbspatch -lfstab -lbootctrl -lxz -lpuffpatch -lbrotli -lnandapi |
| 92 | else |
| 93 | update_engine_sideload_LDADD = libpayload_consumer.a -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lcrypto \ |
| 94 | -lcurl -llog -lssl -lprotobuf-lite -lpthread -lbz2 -lgflags -lbase -lchrome -lbrillo -lbrillo_stream \ |
| 95 | -levent -lbspatch -lfstab -lbootctrl -lxz -lpuffpatch -lbrotli |
| 96 | endif |
| 97 | |
| 98 | |
| 99 | update_engine_sideload_SOURCES = \ |
| 100 | update_metadata.pb.cc \ |
| 101 | certificate_checker.cc \ |
| 102 | daemon.cc \ |
| 103 | daemon_state_android.cc \ |
| 104 | boot_control_recovery.cc \ |
| 105 | hardware_android.cc \ |
| 106 | libcurl_http_fetcher.cc \ |
| 107 | metrics_reporter_stub.cc \ |
| 108 | metrics_utils.cc \ |
| 109 | network_selector_stub.cc \ |
| 110 | proxy_resolver.cc \ |
| 111 | sideload_main.cc \ |
| 112 | update_attempter_android.cc \ |
| 113 | update_status_utils.cc \ |
| 114 | utils_android.cc |
| 115 | |
| 116 | update_engine_sideload_CFLAGS = -std=c++14 -g -fPIC -c |
| 117 | |
| 118 | |
| 119 | |
| 120 | |