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_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \ 28 third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc \ 29 third_party/protobuf/src/google/protobuf/unknown_field_set.cc \ 30 third_party/protobuf/src/google/protobuf/stubs/common.cc \ 31 third_party/protobuf/src/google/protobuf/stubs/once.cc \ 32 third_party/protobuf/src/google/protobuf/extension_set.cc \ 33 third_party/protobuf/src/google/protobuf/generated_message_util.cc \ 34 third_party/protobuf/src/google/protobuf/message_lite.cc \ 35 third_party/protobuf/src/google/protobuf/repeated_field.cc \ 36 third_party/protobuf/src/google/protobuf/wire_format_lite.cc \ 37 third_party/protobuf/src/google/protobuf/io/coded_stream.cc \ 38 third_party/protobuf/src/google/protobuf/io/zero_copy_stream.cc \ 39 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc 40 41 42 # Flags passed to both C and C++ files. 43 MY_CFLAGS_Debug := \ 44 -fstack-protector \ 45 --param=ssp-buffer-size=4 \ 46 \ 47 -fno-exceptions \ 48 -fno-strict-aliasing \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -Wno-unused-local-typedefs \ 55 -Wno-format \ 56 -EL \ 57 -mhard-float \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Wno-unused-but-set-variable \ 70 -Wno-address \ 71 -Wno-format-security \ 72 -Wno-return-type \ 73 -Wno-sequence-point \ 74 -Os \ 75 -g \ 76 -fdata-sections \ 77 -ffunction-sections \ 78 -fomit-frame-pointer \ 79 -funwind-tables 80 81 MY_DEFS_Debug := \ 82 '-DV8_DEPRECATION_WARNINGS' \ 83 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 84 '-D_FILE_OFFSET_BITS=64' \ 85 '-DNO_TCMALLOC' \ 86 '-DDISABLE_NACL' \ 87 '-DCHROMIUM_BUILD' \ 88 '-DUSE_LIBJPEG_TURBO=1' \ 89 '-DENABLE_WEBRTC=1' \ 90 '-DUSE_PROPRIETARY_CODECS' \ 91 '-DENABLE_BROWSER_CDMS' \ 92 '-DENABLE_CONFIGURATION_POLICY' \ 93 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 94 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 95 '-DENABLE_EGLIMAGE=1' \ 96 '-DCLD_VERSION=1' \ 97 '-DENABLE_PRINTING=1' \ 98 '-DENABLE_MANAGED_USERS=1' \ 99 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 100 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 101 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 102 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 103 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 104 '-DVIDEO_HOLE=1' \ 105 '-DLIBPROTOBUF_EXPORTS' \ 106 '-DPROTOBUF_USE_DLLS' \ 107 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 108 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 109 '-DUSE_OPENSSL=1' \ 110 '-DUSE_OPENSSL_CERTS=1' \ 111 '-DANDROID' \ 112 '-D__GNU_SOURCE=1' \ 113 '-DUSE_STLPORT=1' \ 114 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 115 '-DCHROME_BUILD_ID=""' \ 116 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 117 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 118 '-D_DEBUG' 119 120 121 # Include paths placed before CFLAGS/CPPFLAGS 122 LOCAL_C_INCLUDES_Debug := \ 123 $(gyp_shared_intermediate_dir) \ 124 $(LOCAL_PATH)/third_party/protobuf \ 125 $(LOCAL_PATH)/third_party/protobuf/src \ 126 $(PWD)/frameworks/wilhelm/include \ 127 $(PWD)/bionic \ 128 $(PWD)/external/stlport/stlport 129 130 131 # Flags passed to only C++ (and not C) files. 132 LOCAL_CPPFLAGS_Debug := \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wno-deprecated \ 137 -Wno-uninitialized \ 138 -Wno-non-virtual-dtor \ 139 -Wno-sign-promo \ 140 -Wno-non-virtual-dtor 141 142 143 LOCAL_FDO_SUPPORT_Debug := false 144 145 # Flags passed to both C and C++ files. 146 MY_CFLAGS_Release := \ 147 -fstack-protector \ 148 --param=ssp-buffer-size=4 \ 149 \ 150 -fno-exceptions \ 151 -fno-strict-aliasing \ 152 -Wno-unused-parameter \ 153 -Wno-missing-field-initializers \ 154 -fvisibility=hidden \ 155 -pipe \ 156 -fPIC \ 157 -Wno-unused-local-typedefs \ 158 -Wno-format \ 159 -EL \ 160 -mhard-float \ 161 -ffunction-sections \ 162 -funwind-tables \ 163 -g \ 164 -fstack-protector \ 165 -fno-short-enums \ 166 -finline-limit=64 \ 167 -Wa,--noexecstack \ 168 -U_FORTIFY_SOURCE \ 169 -Wno-extra \ 170 -Wno-ignored-qualifiers \ 171 -Wno-type-limits \ 172 -Wno-unused-but-set-variable \ 173 -Wno-address \ 174 -Wno-format-security \ 175 -Wno-return-type \ 176 -Wno-sequence-point \ 177 -Os \ 178 -fno-ident \ 179 -fdata-sections \ 180 -ffunction-sections \ 181 -fomit-frame-pointer \ 182 -funwind-tables 183 184 MY_DEFS_Release := \ 185 '-DV8_DEPRECATION_WARNINGS' \ 186 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 187 '-D_FILE_OFFSET_BITS=64' \ 188 '-DNO_TCMALLOC' \ 189 '-DDISABLE_NACL' \ 190 '-DCHROMIUM_BUILD' \ 191 '-DUSE_LIBJPEG_TURBO=1' \ 192 '-DENABLE_WEBRTC=1' \ 193 '-DUSE_PROPRIETARY_CODECS' \ 194 '-DENABLE_BROWSER_CDMS' \ 195 '-DENABLE_CONFIGURATION_POLICY' \ 196 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 197 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 198 '-DENABLE_EGLIMAGE=1' \ 199 '-DCLD_VERSION=1' \ 200 '-DENABLE_PRINTING=1' \ 201 '-DENABLE_MANAGED_USERS=1' \ 202 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 203 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 204 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 205 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 206 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 207 '-DVIDEO_HOLE=1' \ 208 '-DLIBPROTOBUF_EXPORTS' \ 209 '-DPROTOBUF_USE_DLLS' \ 210 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 211 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 212 '-DUSE_OPENSSL=1' \ 213 '-DUSE_OPENSSL_CERTS=1' \ 214 '-DANDROID' \ 215 '-D__GNU_SOURCE=1' \ 216 '-DUSE_STLPORT=1' \ 217 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 218 '-DCHROME_BUILD_ID=""' \ 219 '-DNDEBUG' \ 220 '-DNVALGRIND' \ 221 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 222 223 224 # Include paths placed before CFLAGS/CPPFLAGS 225 LOCAL_C_INCLUDES_Release := \ 226 $(gyp_shared_intermediate_dir) \ 227 $(LOCAL_PATH)/third_party/protobuf \ 228 $(LOCAL_PATH)/third_party/protobuf/src \ 229 $(PWD)/frameworks/wilhelm/include \ 230 $(PWD)/bionic \ 231 $(PWD)/external/stlport/stlport 232 233 234 # Flags passed to only C++ (and not C) files. 235 LOCAL_CPPFLAGS_Release := \ 236 -fno-rtti \ 237 -fno-threadsafe-statics \ 238 -fvisibility-inlines-hidden \ 239 -Wno-deprecated \ 240 -Wno-uninitialized \ 241 -Wno-non-virtual-dtor \ 242 -Wno-sign-promo \ 243 -Wno-non-virtual-dtor 244 245 246 LOCAL_FDO_SUPPORT_Release := false 247 248 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 249 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 250 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 251 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 252 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 253 ### Rules for final target. 254 255 LOCAL_LDFLAGS_Debug := \ 256 -Wl,-z,now \ 257 -Wl,-z,relro \ 258 -Wl,--fatal-warnings \ 259 -Wl,-z,noexecstack \ 260 -fPIC \ 261 -EL \ 262 -Wl,--no-keep-memory \ 263 -nostdlib \ 264 -Wl,--no-undefined \ 265 -Wl,--exclude-libs=ALL \ 266 -Wl,--warn-shared-textrel \ 267 -Wl,-O1 \ 268 -Wl,--as-needed 269 270 271 LOCAL_LDFLAGS_Release := \ 272 -Wl,-z,now \ 273 -Wl,-z,relro \ 274 -Wl,--fatal-warnings \ 275 -Wl,-z,noexecstack \ 276 -fPIC \ 277 -EL \ 278 -Wl,--no-keep-memory \ 279 -nostdlib \ 280 -Wl,--no-undefined \ 281 -Wl,--exclude-libs=ALL \ 282 -Wl,-O1 \ 283 -Wl,--as-needed \ 284 -Wl,--gc-sections \ 285 -Wl,--warn-shared-textrel 286 287 288 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 289 290 LOCAL_STATIC_LIBRARIES := 291 292 # Enable grouping to fix circular references 293 LOCAL_GROUP_STATIC_LIBRARIES := true 294 295 LOCAL_SHARED_LIBRARIES := \ 296 libstlport \ 297 libdl 298 299 # Add target alias to "gyp_all_modules" target. 300 .PHONY: gyp_all_modules 301 gyp_all_modules: third_party_protobuf_protobuf_lite_gyp 302 303 # Alias gyp target name. 304 .PHONY: protobuf_lite 305 protobuf_lite: third_party_protobuf_protobuf_lite_gyp 306 307 include $(BUILD_STATIC_LIBRARY) 308