1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_IS_HOST_MODULE := true 9LOCAL_MULTILIB := $(GYP_HOST_MULTILIB) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/protobuf/src/google/protobuf/compiler/java/java_doc_comment.cc \ 28 third_party/protobuf/src/google/protobuf/stubs/strutil.cc \ 29 third_party/protobuf/src/google/protobuf/stubs/substitute.cc \ 30 third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc \ 31 third_party/protobuf/src/google/protobuf/stubs/structurally_valid.cc \ 32 third_party/protobuf/src/google/protobuf/descriptor.cc \ 33 third_party/protobuf/src/google/protobuf/descriptor.pb.cc \ 34 third_party/protobuf/src/google/protobuf/descriptor_database.cc \ 35 third_party/protobuf/src/google/protobuf/dynamic_message.cc \ 36 third_party/protobuf/src/google/protobuf/extension_set.cc \ 37 third_party/protobuf/src/google/protobuf/extension_set_heavy.cc \ 38 third_party/protobuf/src/google/protobuf/generated_message_reflection.cc \ 39 third_party/protobuf/src/google/protobuf/message.cc \ 40 third_party/protobuf/src/google/protobuf/reflection_ops.cc \ 41 third_party/protobuf/src/google/protobuf/service.cc \ 42 third_party/protobuf/src/google/protobuf/text_format.cc \ 43 third_party/protobuf/src/google/protobuf/wire_format.cc \ 44 third_party/protobuf/src/google/protobuf/io/printer.cc \ 45 third_party/protobuf/src/google/protobuf/io/tokenizer.cc \ 46 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc \ 47 third_party/protobuf/src/google/protobuf/compiler/importer.cc \ 48 third_party/protobuf/src/google/protobuf/compiler/parser.cc \ 49 third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \ 50 third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc \ 51 third_party/protobuf/src/google/protobuf/unknown_field_set.cc \ 52 third_party/protobuf/src/google/protobuf/stubs/common.cc \ 53 third_party/protobuf/src/google/protobuf/stubs/once.cc \ 54 third_party/protobuf/src/google/protobuf/generated_message_util.cc \ 55 third_party/protobuf/src/google/protobuf/message_lite.cc \ 56 third_party/protobuf/src/google/protobuf/repeated_field.cc \ 57 third_party/protobuf/src/google/protobuf/wire_format_lite.cc \ 58 third_party/protobuf/src/google/protobuf/io/coded_stream.cc \ 59 third_party/protobuf/src/google/protobuf/io/zero_copy_stream.cc \ 60 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc 61 62 63# Flags passed to both C and C++ files. 64MY_CFLAGS_Debug := \ 65 -fstack-protector \ 66 --param=ssp-buffer-size=4 \ 67 -pthread \ 68 -fno-strict-aliasing \ 69 -Wno-unused-parameter \ 70 -Wno-missing-field-initializers \ 71 -fvisibility=hidden \ 72 -pipe \ 73 -fPIC \ 74 -Wno-format \ 75 -Wheader-hygiene \ 76 -Wno-char-subscripts \ 77 -Wno-unneeded-internal-declaration \ 78 -Wno-covered-switch-default \ 79 -Wstring-conversion \ 80 -Wno-c++11-narrowing \ 81 -Wno-deprecated-register \ 82 -Wno-unused-local-typedef \ 83 -Os \ 84 -g \ 85 -gdwarf-4 \ 86 -fdata-sections \ 87 -ffunction-sections \ 88 -funwind-tables 89 90MY_DEFS_Debug := \ 91 '-DV8_DEPRECATION_WARNINGS' \ 92 '-D_FILE_OFFSET_BITS=64' \ 93 '-DNO_TCMALLOC' \ 94 '-DDISABLE_NACL' \ 95 '-DCHROMIUM_BUILD' \ 96 '-DUSE_LIBJPEG_TURBO=1' \ 97 '-DENABLE_WEBRTC=1' \ 98 '-DUSE_PROPRIETARY_CODECS' \ 99 '-DENABLE_BROWSER_CDMS' \ 100 '-DENABLE_CONFIGURATION_POLICY' \ 101 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 102 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 103 '-DENABLE_EGLIMAGE=1' \ 104 '-DCLD_VERSION=1' \ 105 '-DENABLE_PRINTING=1' \ 106 '-DENABLE_MANAGED_USERS=1' \ 107 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 108 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 109 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 110 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 111 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 112 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 113 '-DVIDEO_HOLE=1' \ 114 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 115 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 116 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 117 '-DUSE_OPENSSL=1' \ 118 '-DUSE_OPENSSL_CERTS=1' \ 119 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 120 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 121 '-D_DEBUG' 122 123 124# Include paths placed before CFLAGS/CPPFLAGS 125LOCAL_C_INCLUDES_Debug := \ 126 $(gyp_shared_intermediate_dir) \ 127 $(LOCAL_PATH)/third_party/protobuf \ 128 $(LOCAL_PATH)/third_party/protobuf/src 129 130 131# Flags passed to only C++ (and not C) files. 132LOCAL_CPPFLAGS_Debug := \ 133 -fno-exceptions \ 134 -fno-rtti \ 135 -fno-threadsafe-statics \ 136 -fvisibility-inlines-hidden \ 137 -Wno-deprecated \ 138 -std=gnu++11 139 140 141# Flags passed to both C and C++ files. 142MY_CFLAGS_Release := \ 143 -fstack-protector \ 144 --param=ssp-buffer-size=4 \ 145 -pthread \ 146 -fno-strict-aliasing \ 147 -Wno-unused-parameter \ 148 -Wno-missing-field-initializers \ 149 -fvisibility=hidden \ 150 -pipe \ 151 -fPIC \ 152 -Wno-format \ 153 -Wheader-hygiene \ 154 -Wno-char-subscripts \ 155 -Wno-unneeded-internal-declaration \ 156 -Wno-covered-switch-default \ 157 -Wstring-conversion \ 158 -Wno-c++11-narrowing \ 159 -Wno-deprecated-register \ 160 -Wno-unused-local-typedef \ 161 -Os \ 162 -fno-ident \ 163 -fdata-sections \ 164 -ffunction-sections \ 165 -funwind-tables 166 167MY_DEFS_Release := \ 168 '-DV8_DEPRECATION_WARNINGS' \ 169 '-D_FILE_OFFSET_BITS=64' \ 170 '-DNO_TCMALLOC' \ 171 '-DDISABLE_NACL' \ 172 '-DCHROMIUM_BUILD' \ 173 '-DUSE_LIBJPEG_TURBO=1' \ 174 '-DENABLE_WEBRTC=1' \ 175 '-DUSE_PROPRIETARY_CODECS' \ 176 '-DENABLE_BROWSER_CDMS' \ 177 '-DENABLE_CONFIGURATION_POLICY' \ 178 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 179 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 180 '-DENABLE_EGLIMAGE=1' \ 181 '-DCLD_VERSION=1' \ 182 '-DENABLE_PRINTING=1' \ 183 '-DENABLE_MANAGED_USERS=1' \ 184 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 185 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 186 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 187 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 188 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 189 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 190 '-DVIDEO_HOLE=1' \ 191 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 192 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 193 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 194 '-DUSE_OPENSSL=1' \ 195 '-DUSE_OPENSSL_CERTS=1' \ 196 '-DNDEBUG' \ 197 '-DNVALGRIND' \ 198 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 199 200 201# Include paths placed before CFLAGS/CPPFLAGS 202LOCAL_C_INCLUDES_Release := \ 203 $(gyp_shared_intermediate_dir) \ 204 $(LOCAL_PATH)/third_party/protobuf \ 205 $(LOCAL_PATH)/third_party/protobuf/src 206 207 208# Flags passed to only C++ (and not C) files. 209LOCAL_CPPFLAGS_Release := \ 210 -fno-exceptions \ 211 -fno-rtti \ 212 -fno-threadsafe-statics \ 213 -fvisibility-inlines-hidden \ 214 -Wno-deprecated \ 215 -std=gnu++11 216 217 218LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 219# Undefine ANDROID for host modules 220LOCAL_CFLAGS += -UANDROID 221LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 222LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 223LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 224### Rules for final target. 225### Set directly by aosp_build_settings. 226LOCAL_CLANG := true 227 228# Add target alias to "gyp_all_modules" target. 229.PHONY: gyp_all_modules 230gyp_all_modules: third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 231 232# Alias gyp target name. 233.PHONY: protobuf_full_do_not_use 234protobuf_full_do_not_use: third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 235 236include $(BUILD_HOST_STATIC_LIBRARY) 237