1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := third_party_protobuf_protobuf_lite_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \ 27 third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc \ 28 third_party/protobuf/src/google/protobuf/unknown_field_set.cc \ 29 third_party/protobuf/src/google/protobuf/stubs/common.cc \ 30 third_party/protobuf/src/google/protobuf/stubs/once.cc \ 31 third_party/protobuf/src/google/protobuf/extension_set.cc \ 32 third_party/protobuf/src/google/protobuf/generated_message_util.cc \ 33 third_party/protobuf/src/google/protobuf/message_lite.cc \ 34 third_party/protobuf/src/google/protobuf/repeated_field.cc \ 35 third_party/protobuf/src/google/protobuf/wire_format_lite.cc \ 36 third_party/protobuf/src/google/protobuf/io/coded_stream.cc \ 37 third_party/protobuf/src/google/protobuf/io/zero_copy_stream.cc \ 38 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc 39 40 41 # Flags passed to both C and C++ files. 42 MY_CFLAGS_Debug := \ 43 --param=ssp-buffer-size=4 \ 44 -fno-strict-aliasing \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -Wno-unused-local-typedefs \ 51 -Wno-format \ 52 -ffunction-sections \ 53 -funwind-tables \ 54 -g \ 55 -fno-short-enums \ 56 -finline-limit=64 \ 57 -Wa,--noexecstack \ 58 -U_FORTIFY_SOURCE \ 59 -Wno-extra \ 60 -Wno-ignored-qualifiers \ 61 -Wno-type-limits \ 62 -Wno-unused-but-set-variable \ 63 -Wno-address \ 64 -Wno-format-security \ 65 -Wno-return-type \ 66 -Wno-sequence-point \ 67 -Os \ 68 -g \ 69 -gdwarf-4 \ 70 -fdata-sections \ 71 -ffunction-sections \ 72 -funwind-tables 73 74 MY_DEFS_Debug := \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DENABLE_WEBRTC=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_BROWSER_CDMS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 92 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 93 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 94 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 95 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 96 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 97 '-DVIDEO_HOLE=1' \ 98 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 99 '-DLIBPROTOBUF_EXPORTS' \ 100 '-DPROTOBUF_USE_DLLS' \ 101 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 102 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 103 '-DUSE_OPENSSL=1' \ 104 '-DUSE_OPENSSL_CERTS=1' \ 105 '-DANDROID' \ 106 '-D__GNU_SOURCE=1' \ 107 '-DUSE_STLPORT=1' \ 108 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 109 '-DCHROME_BUILD_ID=""' \ 110 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 111 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 112 '-D_DEBUG' 113 114 115 # Include paths placed before CFLAGS/CPPFLAGS 116 LOCAL_C_INCLUDES_Debug := \ 117 $(gyp_shared_intermediate_dir) \ 118 $(LOCAL_PATH)/third_party/protobuf \ 119 $(LOCAL_PATH)/third_party/protobuf/src \ 120 $(PWD)/frameworks/wilhelm/include \ 121 $(PWD)/bionic \ 122 $(PWD)/external/stlport/stlport 123 124 125 # Flags passed to only C++ (and not C) files. 126 LOCAL_CPPFLAGS_Debug := \ 127 -fno-exceptions \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wno-deprecated \ 132 -std=gnu++11 \ 133 -Wno-narrowing \ 134 -Wno-literal-suffix \ 135 -Wno-non-virtual-dtor \ 136 -Wno-sign-promo \ 137 -Wno-non-virtual-dtor 138 139 140 # Flags passed to both C and C++ files. 141 MY_CFLAGS_Release := \ 142 --param=ssp-buffer-size=4 \ 143 -fno-strict-aliasing \ 144 -Wno-unused-parameter \ 145 -Wno-missing-field-initializers \ 146 -fvisibility=hidden \ 147 -pipe \ 148 -fPIC \ 149 -Wno-unused-local-typedefs \ 150 -Wno-format \ 151 -ffunction-sections \ 152 -funwind-tables \ 153 -g \ 154 -fno-short-enums \ 155 -finline-limit=64 \ 156 -Wa,--noexecstack \ 157 -U_FORTIFY_SOURCE \ 158 -Wno-extra \ 159 -Wno-ignored-qualifiers \ 160 -Wno-type-limits \ 161 -Wno-unused-but-set-variable \ 162 -Wno-address \ 163 -Wno-format-security \ 164 -Wno-return-type \ 165 -Wno-sequence-point \ 166 -Os \ 167 -fno-ident \ 168 -fdata-sections \ 169 -ffunction-sections \ 170 -funwind-tables 171 172 MY_DEFS_Release := \ 173 '-DV8_DEPRECATION_WARNINGS' \ 174 '-D_FILE_OFFSET_BITS=64' \ 175 '-DNO_TCMALLOC' \ 176 '-DDISABLE_NACL' \ 177 '-DCHROMIUM_BUILD' \ 178 '-DUSE_LIBJPEG_TURBO=1' \ 179 '-DENABLE_WEBRTC=1' \ 180 '-DUSE_PROPRIETARY_CODECS' \ 181 '-DENABLE_BROWSER_CDMS' \ 182 '-DENABLE_CONFIGURATION_POLICY' \ 183 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 184 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 185 '-DENABLE_EGLIMAGE=1' \ 186 '-DCLD_VERSION=1' \ 187 '-DENABLE_PRINTING=1' \ 188 '-DENABLE_MANAGED_USERS=1' \ 189 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 190 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 191 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 192 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 193 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 194 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 195 '-DVIDEO_HOLE=1' \ 196 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 197 '-DLIBPROTOBUF_EXPORTS' \ 198 '-DPROTOBUF_USE_DLLS' \ 199 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 200 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 201 '-DUSE_OPENSSL=1' \ 202 '-DUSE_OPENSSL_CERTS=1' \ 203 '-DANDROID' \ 204 '-D__GNU_SOURCE=1' \ 205 '-DUSE_STLPORT=1' \ 206 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 207 '-DCHROME_BUILD_ID=""' \ 208 '-DNDEBUG' \ 209 '-DNVALGRIND' \ 210 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 211 212 213 # Include paths placed before CFLAGS/CPPFLAGS 214 LOCAL_C_INCLUDES_Release := \ 215 $(gyp_shared_intermediate_dir) \ 216 $(LOCAL_PATH)/third_party/protobuf \ 217 $(LOCAL_PATH)/third_party/protobuf/src \ 218 $(PWD)/frameworks/wilhelm/include \ 219 $(PWD)/bionic \ 220 $(PWD)/external/stlport/stlport 221 222 223 # Flags passed to only C++ (and not C) files. 224 LOCAL_CPPFLAGS_Release := \ 225 -fno-exceptions \ 226 -fno-rtti \ 227 -fno-threadsafe-statics \ 228 -fvisibility-inlines-hidden \ 229 -Wno-deprecated \ 230 -std=gnu++11 \ 231 -Wno-narrowing \ 232 -Wno-literal-suffix \ 233 -Wno-non-virtual-dtor \ 234 -Wno-sign-promo \ 235 -Wno-non-virtual-dtor 236 237 238 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 239 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 240 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 241 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 242 ### Rules for final target. 243 244 LOCAL_SHARED_LIBRARIES := \ 245 libstlport \ 246 libdl 247 248 # Add target alias to "gyp_all_modules" target. 249 .PHONY: gyp_all_modules 250 gyp_all_modules: third_party_protobuf_protobuf_lite_gyp 251 252 # Alias gyp target name. 253 .PHONY: protobuf_lite 254 protobuf_lite: third_party_protobuf_protobuf_lite_gyp 255 256 include $(BUILD_STATIC_LIBRARY) 257