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 := jingle_jingle_glue_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 jingle/glue/channel_socket_adapter.cc \ 28 jingle/glue/chrome_async_socket.cc \ 29 jingle/glue/fake_ssl_client_socket.cc \ 30 jingle/glue/proxy_resolving_client_socket.cc \ 31 jingle/glue/pseudotcp_adapter.cc \ 32 jingle/glue/task_pump.cc \ 33 jingle/glue/thread_wrapper.cc \ 34 jingle/glue/utils.cc \ 35 jingle/glue/xmpp_client_socket_factory.cc 36 37 38 # Flags passed to both C and C++ files. 39 MY_CFLAGS_Debug := \ 40 -fstack-protector \ 41 --param=ssp-buffer-size=4 \ 42 -Werror \ 43 -fno-exceptions \ 44 -fno-strict-aliasing \ 45 -Wall \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -Wno-unused-local-typedefs \ 52 -fno-tree-sra \ 53 -fno-partial-inlining \ 54 -fno-early-inlining \ 55 -fno-tree-copy-prop \ 56 -fno-tree-loop-optimize \ 57 -fno-move-loop-invariants \ 58 -fno-caller-saves \ 59 -Wno-psabi \ 60 -ffunction-sections \ 61 -funwind-tables \ 62 -g \ 63 -fstack-protector \ 64 -fno-short-enums \ 65 -finline-limit=64 \ 66 -Wa,--noexecstack \ 67 -U_FORTIFY_SOURCE \ 68 -Wno-extra \ 69 -Wno-ignored-qualifiers \ 70 -Wno-type-limits \ 71 -Wno-unused-but-set-variable \ 72 -Os \ 73 -g \ 74 -fdata-sections \ 75 -ffunction-sections \ 76 -fomit-frame-pointer \ 77 -funwind-tables 78 79 MY_DEFS_Debug := \ 80 '-DV8_DEPRECATION_WARNINGS' \ 81 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 82 '-D_FILE_OFFSET_BITS=64' \ 83 '-DNO_TCMALLOC' \ 84 '-DDISABLE_NACL' \ 85 '-DCHROMIUM_BUILD' \ 86 '-DUSE_LIBJPEG_TURBO=1' \ 87 '-DENABLE_WEBRTC=1' \ 88 '-DUSE_PROPRIETARY_CODECS' \ 89 '-DENABLE_BROWSER_CDMS' \ 90 '-DENABLE_CONFIGURATION_POLICY' \ 91 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 92 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 93 '-DENABLE_EGLIMAGE=1' \ 94 '-DCLD_VERSION=1' \ 95 '-DENABLE_PRINTING=1' \ 96 '-DENABLE_MANAGED_USERS=1' \ 97 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 98 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 99 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 100 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 101 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 102 '-DVIDEO_HOLE=1' \ 103 '-DPOSIX_AVOID_MMAP' \ 104 '-DFEATURE_ENABLE_SSL' \ 105 '-DFEATURE_ENABLE_VOICEMAIL' \ 106 '-DEXPAT_RELATIVE_PATH' \ 107 '-DGTEST_RELATIVE_PATH' \ 108 '-DNO_MAIN_THREAD_WRAPPING' \ 109 '-DNO_SOUND_SYSTEM' \ 110 '-DANDROID' \ 111 '-DPOSIX' \ 112 '-DUSE_OPENSSL=1' \ 113 '-DUSE_OPENSSL_CERTS=1' \ 114 '-D__STDC_CONSTANT_MACROS' \ 115 '-D__STDC_FORMAT_MACROS' \ 116 '-D__GNU_SOURCE=1' \ 117 '-DUSE_STLPORT=1' \ 118 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 119 '-DCHROME_BUILD_ID=""' \ 120 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 121 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 122 '-D_DEBUG' 123 124 125 # Include paths placed before CFLAGS/CPPFLAGS 126 LOCAL_C_INCLUDES_Debug := \ 127 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 128 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 129 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 130 $(gyp_shared_intermediate_dir) \ 131 $(LOCAL_PATH) \ 132 $(LOCAL_PATH)/third_party/libjingle/overrides \ 133 $(LOCAL_PATH)/third_party/libjingle/source \ 134 $(LOCAL_PATH)/third_party/webrtc/overrides \ 135 $(LOCAL_PATH)/testing/gtest/include \ 136 $(LOCAL_PATH)/third_party \ 137 $(LOCAL_PATH)/third_party/webrtc \ 138 $(PWD)/external/expat/lib \ 139 $(PWD)/frameworks/wilhelm/include \ 140 $(PWD)/bionic \ 141 $(PWD)/external/stlport/stlport 142 143 144 # Flags passed to only C++ (and not C) files. 145 LOCAL_CPPFLAGS_Debug := \ 146 -fno-rtti \ 147 -fno-threadsafe-statics \ 148 -fvisibility-inlines-hidden \ 149 -Wsign-compare \ 150 -Wno-abi \ 151 -Wno-non-virtual-dtor \ 152 -Wno-sign-promo 153 154 155 LOCAL_FDO_SUPPORT_Debug := false 156 157 # Flags passed to both C and C++ files. 158 MY_CFLAGS_Release := \ 159 -fstack-protector \ 160 --param=ssp-buffer-size=4 \ 161 -Werror \ 162 -fno-exceptions \ 163 -fno-strict-aliasing \ 164 -Wall \ 165 -Wno-unused-parameter \ 166 -Wno-missing-field-initializers \ 167 -fvisibility=hidden \ 168 -pipe \ 169 -fPIC \ 170 -Wno-unused-local-typedefs \ 171 -fno-tree-sra \ 172 -fno-partial-inlining \ 173 -fno-early-inlining \ 174 -fno-tree-copy-prop \ 175 -fno-tree-loop-optimize \ 176 -fno-move-loop-invariants \ 177 -fno-caller-saves \ 178 -Wno-psabi \ 179 -ffunction-sections \ 180 -funwind-tables \ 181 -g \ 182 -fstack-protector \ 183 -fno-short-enums \ 184 -finline-limit=64 \ 185 -Wa,--noexecstack \ 186 -U_FORTIFY_SOURCE \ 187 -Wno-extra \ 188 -Wno-ignored-qualifiers \ 189 -Wno-type-limits \ 190 -Wno-unused-but-set-variable \ 191 -Os \ 192 -fno-ident \ 193 -fdata-sections \ 194 -ffunction-sections \ 195 -fomit-frame-pointer \ 196 -funwind-tables 197 198 MY_DEFS_Release := \ 199 '-DV8_DEPRECATION_WARNINGS' \ 200 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 201 '-D_FILE_OFFSET_BITS=64' \ 202 '-DNO_TCMALLOC' \ 203 '-DDISABLE_NACL' \ 204 '-DCHROMIUM_BUILD' \ 205 '-DUSE_LIBJPEG_TURBO=1' \ 206 '-DENABLE_WEBRTC=1' \ 207 '-DUSE_PROPRIETARY_CODECS' \ 208 '-DENABLE_BROWSER_CDMS' \ 209 '-DENABLE_CONFIGURATION_POLICY' \ 210 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 211 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 212 '-DENABLE_EGLIMAGE=1' \ 213 '-DCLD_VERSION=1' \ 214 '-DENABLE_PRINTING=1' \ 215 '-DENABLE_MANAGED_USERS=1' \ 216 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 217 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 218 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 219 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 220 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 221 '-DVIDEO_HOLE=1' \ 222 '-DPOSIX_AVOID_MMAP' \ 223 '-DFEATURE_ENABLE_SSL' \ 224 '-DFEATURE_ENABLE_VOICEMAIL' \ 225 '-DEXPAT_RELATIVE_PATH' \ 226 '-DGTEST_RELATIVE_PATH' \ 227 '-DNO_MAIN_THREAD_WRAPPING' \ 228 '-DNO_SOUND_SYSTEM' \ 229 '-DANDROID' \ 230 '-DPOSIX' \ 231 '-DUSE_OPENSSL=1' \ 232 '-DUSE_OPENSSL_CERTS=1' \ 233 '-D__STDC_CONSTANT_MACROS' \ 234 '-D__STDC_FORMAT_MACROS' \ 235 '-D__GNU_SOURCE=1' \ 236 '-DUSE_STLPORT=1' \ 237 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 238 '-DCHROME_BUILD_ID=""' \ 239 '-DNDEBUG' \ 240 '-DNVALGRIND' \ 241 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 242 '-D_FORTIFY_SOURCE=2' 243 244 245 # Include paths placed before CFLAGS/CPPFLAGS 246 LOCAL_C_INCLUDES_Release := \ 247 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 248 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 249 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 250 $(gyp_shared_intermediate_dir) \ 251 $(LOCAL_PATH) \ 252 $(LOCAL_PATH)/third_party/libjingle/overrides \ 253 $(LOCAL_PATH)/third_party/libjingle/source \ 254 $(LOCAL_PATH)/third_party/webrtc/overrides \ 255 $(LOCAL_PATH)/testing/gtest/include \ 256 $(LOCAL_PATH)/third_party \ 257 $(LOCAL_PATH)/third_party/webrtc \ 258 $(PWD)/external/expat/lib \ 259 $(PWD)/frameworks/wilhelm/include \ 260 $(PWD)/bionic \ 261 $(PWD)/external/stlport/stlport 262 263 264 # Flags passed to only C++ (and not C) files. 265 LOCAL_CPPFLAGS_Release := \ 266 -fno-rtti \ 267 -fno-threadsafe-statics \ 268 -fvisibility-inlines-hidden \ 269 -Wsign-compare \ 270 -Wno-abi \ 271 -Wno-non-virtual-dtor \ 272 -Wno-sign-promo 273 274 275 LOCAL_FDO_SUPPORT_Release := false 276 277 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 278 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 279 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 280 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 281 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 282 ### Rules for final target. 283 284 LOCAL_LDFLAGS_Debug := \ 285 -Wl,-z,now \ 286 -Wl,-z,relro \ 287 -Wl,--fatal-warnings \ 288 -Wl,-z,noexecstack \ 289 -fPIC \ 290 -Wl,-z,relro \ 291 -Wl,-z,now \ 292 -fuse-ld=gold \ 293 -nostdlib \ 294 -Wl,--no-undefined \ 295 -Wl,--exclude-libs=ALL \ 296 -Wl,--icf=safe \ 297 -Wl,--warn-shared-textrel \ 298 -Wl,-O1 \ 299 -Wl,--as-needed 300 301 302 LOCAL_LDFLAGS_Release := \ 303 -Wl,-z,now \ 304 -Wl,-z,relro \ 305 -Wl,--fatal-warnings \ 306 -Wl,-z,noexecstack \ 307 -fPIC \ 308 -Wl,-z,relro \ 309 -Wl,-z,now \ 310 -fuse-ld=gold \ 311 -nostdlib \ 312 -Wl,--no-undefined \ 313 -Wl,--exclude-libs=ALL \ 314 -Wl,--icf=safe \ 315 -Wl,-O1 \ 316 -Wl,--as-needed \ 317 -Wl,--gc-sections \ 318 -Wl,--warn-shared-textrel 319 320 321 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 322 323 LOCAL_STATIC_LIBRARIES := 324 325 # Enable grouping to fix circular references 326 LOCAL_GROUP_STATIC_LIBRARIES := true 327 328 LOCAL_SHARED_LIBRARIES := \ 329 libstlport \ 330 libdl 331 332 # Add target alias to "gyp_all_modules" target. 333 .PHONY: gyp_all_modules 334 gyp_all_modules: jingle_jingle_glue_gyp 335 336 # Alias gyp target name. 337 .PHONY: jingle_glue 338 jingle_glue: jingle_jingle_glue_gyp 339 340 include $(BUILD_STATIC_LIBRARY) 341