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 -fstack-protector \ 44 --param=ssp-buffer-size=4 \ 45 -fno-strict-aliasing \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -Wno-unused-local-typedefs \ 52 -Wno-format \ 53 -fno-tree-sra \ 54 -fno-caller-saves \ 55 -Wno-psabi \ 56 -fno-partial-inlining \ 57 -fno-early-inlining \ 58 -fno-tree-copy-prop \ 59 -fno-tree-loop-optimize \ 60 -fno-move-loop-invariants \ 61 -ffunction-sections \ 62 -funwind-tables \ 63 -g \ 64 -fstack-protector \ 65 -fno-short-enums \ 66 -finline-limit=64 \ 67 -Wa,--noexecstack \ 68 -U_FORTIFY_SOURCE \ 69 -Wno-extra \ 70 -Wno-ignored-qualifiers \ 71 -Wno-type-limits \ 72 -Wno-unused-but-set-variable \ 73 -Wno-address \ 74 -Wno-format-security \ 75 -Wno-return-type \ 76 -Wno-sequence-point \ 77 -Os \ 78 -g \ 79 -gdwarf-4 \ 80 -fdata-sections \ 81 -ffunction-sections \ 82 -fomit-frame-pointer \ 83 -funwind-tables 84 85 MY_DEFS_Debug := \ 86 '-DV8_DEPRECATION_WARNINGS' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISABLE_NACL' \ 90 '-DCHROMIUM_BUILD' \ 91 '-DUSE_LIBJPEG_TURBO=1' \ 92 '-DENABLE_WEBRTC=1' \ 93 '-DUSE_PROPRIETARY_CODECS' \ 94 '-DENABLE_BROWSER_CDMS' \ 95 '-DENABLE_CONFIGURATION_POLICY' \ 96 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 97 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 98 '-DENABLE_EGLIMAGE=1' \ 99 '-DCLD_VERSION=1' \ 100 '-DENABLE_PRINTING=1' \ 101 '-DENABLE_MANAGED_USERS=1' \ 102 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 103 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 104 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 105 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 106 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 107 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 108 '-DVIDEO_HOLE=1' \ 109 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 110 '-DLIBPROTOBUF_EXPORTS' \ 111 '-DPROTOBUF_USE_DLLS' \ 112 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 113 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 114 '-DUSE_OPENSSL=1' \ 115 '-DUSE_OPENSSL_CERTS=1' \ 116 '-DANDROID' \ 117 '-D__GNU_SOURCE=1' \ 118 '-DUSE_STLPORT=1' \ 119 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 120 '-DCHROME_BUILD_ID=""' \ 121 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 122 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 123 '-D_DEBUG' 124 125 126 # Include paths placed before CFLAGS/CPPFLAGS 127 LOCAL_C_INCLUDES_Debug := \ 128 $(gyp_shared_intermediate_dir) \ 129 $(LOCAL_PATH)/third_party/protobuf \ 130 $(LOCAL_PATH)/third_party/protobuf/src \ 131 $(PWD)/frameworks/wilhelm/include \ 132 $(PWD)/bionic \ 133 $(PWD)/external/stlport/stlport 134 135 136 # Flags passed to only C++ (and not C) files. 137 LOCAL_CPPFLAGS_Debug := \ 138 -fno-exceptions \ 139 -fno-rtti \ 140 -fno-threadsafe-statics \ 141 -fvisibility-inlines-hidden \ 142 -Wno-deprecated \ 143 -Wno-abi \ 144 -std=gnu++11 \ 145 -Wno-narrowing \ 146 -Wno-literal-suffix \ 147 -Wno-non-virtual-dtor \ 148 -Wno-sign-promo \ 149 -Wno-non-virtual-dtor 150 151 152 # Flags passed to both C and C++ files. 153 MY_CFLAGS_Release := \ 154 -fstack-protector \ 155 --param=ssp-buffer-size=4 \ 156 -fno-strict-aliasing \ 157 -Wno-unused-parameter \ 158 -Wno-missing-field-initializers \ 159 -fvisibility=hidden \ 160 -pipe \ 161 -fPIC \ 162 -Wno-unused-local-typedefs \ 163 -Wno-format \ 164 -fno-tree-sra \ 165 -fno-caller-saves \ 166 -Wno-psabi \ 167 -fno-partial-inlining \ 168 -fno-early-inlining \ 169 -fno-tree-copy-prop \ 170 -fno-tree-loop-optimize \ 171 -fno-move-loop-invariants \ 172 -ffunction-sections \ 173 -funwind-tables \ 174 -g \ 175 -fstack-protector \ 176 -fno-short-enums \ 177 -finline-limit=64 \ 178 -Wa,--noexecstack \ 179 -U_FORTIFY_SOURCE \ 180 -Wno-extra \ 181 -Wno-ignored-qualifiers \ 182 -Wno-type-limits \ 183 -Wno-unused-but-set-variable \ 184 -Wno-address \ 185 -Wno-format-security \ 186 -Wno-return-type \ 187 -Wno-sequence-point \ 188 -Os \ 189 -fno-ident \ 190 -fdata-sections \ 191 -ffunction-sections \ 192 -fomit-frame-pointer \ 193 -funwind-tables 194 195 MY_DEFS_Release := \ 196 '-DV8_DEPRECATION_WARNINGS' \ 197 '-D_FILE_OFFSET_BITS=64' \ 198 '-DNO_TCMALLOC' \ 199 '-DDISABLE_NACL' \ 200 '-DCHROMIUM_BUILD' \ 201 '-DUSE_LIBJPEG_TURBO=1' \ 202 '-DENABLE_WEBRTC=1' \ 203 '-DUSE_PROPRIETARY_CODECS' \ 204 '-DENABLE_BROWSER_CDMS' \ 205 '-DENABLE_CONFIGURATION_POLICY' \ 206 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 207 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 208 '-DENABLE_EGLIMAGE=1' \ 209 '-DCLD_VERSION=1' \ 210 '-DENABLE_PRINTING=1' \ 211 '-DENABLE_MANAGED_USERS=1' \ 212 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 213 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 214 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 215 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 216 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 217 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 218 '-DVIDEO_HOLE=1' \ 219 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 220 '-DLIBPROTOBUF_EXPORTS' \ 221 '-DPROTOBUF_USE_DLLS' \ 222 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 223 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 224 '-DUSE_OPENSSL=1' \ 225 '-DUSE_OPENSSL_CERTS=1' \ 226 '-DANDROID' \ 227 '-D__GNU_SOURCE=1' \ 228 '-DUSE_STLPORT=1' \ 229 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 230 '-DCHROME_BUILD_ID=""' \ 231 '-DNDEBUG' \ 232 '-DNVALGRIND' \ 233 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 234 235 236 # Include paths placed before CFLAGS/CPPFLAGS 237 LOCAL_C_INCLUDES_Release := \ 238 $(gyp_shared_intermediate_dir) \ 239 $(LOCAL_PATH)/third_party/protobuf \ 240 $(LOCAL_PATH)/third_party/protobuf/src \ 241 $(PWD)/frameworks/wilhelm/include \ 242 $(PWD)/bionic \ 243 $(PWD)/external/stlport/stlport 244 245 246 # Flags passed to only C++ (and not C) files. 247 LOCAL_CPPFLAGS_Release := \ 248 -fno-exceptions \ 249 -fno-rtti \ 250 -fno-threadsafe-statics \ 251 -fvisibility-inlines-hidden \ 252 -Wno-deprecated \ 253 -Wno-abi \ 254 -std=gnu++11 \ 255 -Wno-narrowing \ 256 -Wno-literal-suffix \ 257 -Wno-non-virtual-dtor \ 258 -Wno-sign-promo \ 259 -Wno-non-virtual-dtor 260 261 262 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 263 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 264 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 265 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 266 ### Rules for final target. 267 268 LOCAL_SHARED_LIBRARIES := \ 269 libstlport \ 270 libdl 271 272 # Add target alias to "gyp_all_modules" target. 273 .PHONY: gyp_all_modules 274 gyp_all_modules: third_party_protobuf_protobuf_lite_gyp 275 276 # Alias gyp target name. 277 .PHONY: protobuf_lite 278 protobuf_lite: third_party_protobuf_protobuf_lite_gyp 279 280 include $(BUILD_STATIC_LIBRARY) 281