1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := jingle_jingle_glue_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_CPP_EXTENSION := .cc 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 jingle/glue/channel_socket_adapter.cc \ 27 jingle/glue/chrome_async_socket.cc \ 28 jingle/glue/fake_ssl_client_socket.cc \ 29 jingle/glue/proxy_resolving_client_socket.cc \ 30 jingle/glue/pseudotcp_adapter.cc \ 31 jingle/glue/task_pump.cc \ 32 jingle/glue/thread_wrapper.cc \ 33 jingle/glue/utils.cc \ 34 jingle/glue/xmpp_client_socket_factory.cc 35 36 37# Flags passed to both C and C++ files. 38MY_CFLAGS_Debug := \ 39 --param=ssp-buffer-size=4 \ 40 -Werror \ 41 -fno-strict-aliasing \ 42 -Wall \ 43 -Wno-unused-parameter \ 44 -Wno-missing-field-initializers \ 45 -fvisibility=hidden \ 46 -pipe \ 47 -fPIC \ 48 -Wno-unused-local-typedefs \ 49 -msse2 \ 50 -mfpmath=sse \ 51 -mmmx \ 52 -m32 \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -Wno-unused-but-set-variable \ 64 -fno-stack-protector \ 65 -Os \ 66 -g \ 67 -gdwarf-4 \ 68 -fdata-sections \ 69 -ffunction-sections \ 70 -fomit-frame-pointer \ 71 -funwind-tables 72 73MY_DEFS_Debug := \ 74 '-DV8_DEPRECATION_WARNINGS' \ 75 '-D_FILE_OFFSET_BITS=64' \ 76 '-DNO_TCMALLOC' \ 77 '-DDISABLE_NACL' \ 78 '-DCHROMIUM_BUILD' \ 79 '-DUSE_LIBJPEG_TURBO=1' \ 80 '-DENABLE_WEBRTC=1' \ 81 '-DUSE_PROPRIETARY_CODECS' \ 82 '-DENABLE_BROWSER_CDMS' \ 83 '-DENABLE_CONFIGURATION_POLICY' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DENABLE_EGLIMAGE=1' \ 87 '-DCLD_VERSION=1' \ 88 '-DENABLE_PRINTING=1' \ 89 '-DENABLE_MANAGED_USERS=1' \ 90 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 91 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 92 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 93 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 94 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 95 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 96 '-DVIDEO_HOLE=1' \ 97 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 98 '-DFEATURE_ENABLE_SSL' \ 99 '-DFEATURE_ENABLE_VOICEMAIL' \ 100 '-DEXPAT_RELATIVE_PATH' \ 101 '-DGTEST_RELATIVE_PATH' \ 102 '-DNO_MAIN_THREAD_WRAPPING' \ 103 '-DNO_SOUND_SYSTEM' \ 104 '-DANDROID' \ 105 '-DPOSIX' \ 106 '-DWEBRTC_POSIX' \ 107 '-DXML_STATIC' \ 108 '-DUSE_OPENSSL=1' \ 109 '-DUSE_OPENSSL_CERTS=1' \ 110 '-D__STDC_CONSTANT_MACROS' \ 111 '-D__STDC_FORMAT_MACROS' \ 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 122LOCAL_C_INCLUDES_Debug := \ 123 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 124 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 125 $(gyp_shared_intermediate_dir) \ 126 $(LOCAL_PATH) \ 127 $(LOCAL_PATH)/third_party/webrtc/overrides \ 128 $(LOCAL_PATH)/third_party/libjingle/overrides \ 129 $(LOCAL_PATH)/third_party/libjingle/source \ 130 $(LOCAL_PATH)/testing/gtest/include \ 131 $(LOCAL_PATH)/third_party \ 132 $(LOCAL_PATH)/third_party/expat/files/lib \ 133 $(PWD)/frameworks/wilhelm/include \ 134 $(PWD)/bionic \ 135 $(PWD)/external/stlport/stlport 136 137 138# Flags passed to only C++ (and not C) files. 139LOCAL_CPPFLAGS_Debug := \ 140 -fno-exceptions \ 141 -fno-rtti \ 142 -fno-threadsafe-statics \ 143 -fvisibility-inlines-hidden \ 144 -Wsign-compare \ 145 -std=gnu++11 \ 146 -Wno-narrowing \ 147 -Wno-literal-suffix \ 148 -Wno-non-virtual-dtor \ 149 -Wno-sign-promo 150 151 152# Flags passed to both C and C++ files. 153MY_CFLAGS_Release := \ 154 --param=ssp-buffer-size=4 \ 155 -Werror \ 156 -fno-strict-aliasing \ 157 -Wall \ 158 -Wno-unused-parameter \ 159 -Wno-missing-field-initializers \ 160 -fvisibility=hidden \ 161 -pipe \ 162 -fPIC \ 163 -Wno-unused-local-typedefs \ 164 -msse2 \ 165 -mfpmath=sse \ 166 -mmmx \ 167 -m32 \ 168 -ffunction-sections \ 169 -funwind-tables \ 170 -g \ 171 -fno-short-enums \ 172 -finline-limit=64 \ 173 -Wa,--noexecstack \ 174 -U_FORTIFY_SOURCE \ 175 -Wno-extra \ 176 -Wno-ignored-qualifiers \ 177 -Wno-type-limits \ 178 -Wno-unused-but-set-variable \ 179 -fno-stack-protector \ 180 -Os \ 181 -fno-ident \ 182 -fdata-sections \ 183 -ffunction-sections \ 184 -fomit-frame-pointer \ 185 -funwind-tables 186 187MY_DEFS_Release := \ 188 '-DV8_DEPRECATION_WARNINGS' \ 189 '-D_FILE_OFFSET_BITS=64' \ 190 '-DNO_TCMALLOC' \ 191 '-DDISABLE_NACL' \ 192 '-DCHROMIUM_BUILD' \ 193 '-DUSE_LIBJPEG_TURBO=1' \ 194 '-DENABLE_WEBRTC=1' \ 195 '-DUSE_PROPRIETARY_CODECS' \ 196 '-DENABLE_BROWSER_CDMS' \ 197 '-DENABLE_CONFIGURATION_POLICY' \ 198 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 199 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 200 '-DENABLE_EGLIMAGE=1' \ 201 '-DCLD_VERSION=1' \ 202 '-DENABLE_PRINTING=1' \ 203 '-DENABLE_MANAGED_USERS=1' \ 204 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 205 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 206 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 207 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 208 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 209 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 210 '-DVIDEO_HOLE=1' \ 211 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 212 '-DFEATURE_ENABLE_SSL' \ 213 '-DFEATURE_ENABLE_VOICEMAIL' \ 214 '-DEXPAT_RELATIVE_PATH' \ 215 '-DGTEST_RELATIVE_PATH' \ 216 '-DNO_MAIN_THREAD_WRAPPING' \ 217 '-DNO_SOUND_SYSTEM' \ 218 '-DANDROID' \ 219 '-DPOSIX' \ 220 '-DWEBRTC_POSIX' \ 221 '-DXML_STATIC' \ 222 '-DUSE_OPENSSL=1' \ 223 '-DUSE_OPENSSL_CERTS=1' \ 224 '-D__STDC_CONSTANT_MACROS' \ 225 '-D__STDC_FORMAT_MACROS' \ 226 '-D__GNU_SOURCE=1' \ 227 '-DUSE_STLPORT=1' \ 228 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 229 '-DCHROME_BUILD_ID=""' \ 230 '-DNDEBUG' \ 231 '-DNVALGRIND' \ 232 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 233 '-D_FORTIFY_SOURCE=2' 234 235 236# Include paths placed before CFLAGS/CPPFLAGS 237LOCAL_C_INCLUDES_Release := \ 238 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 239 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 240 $(gyp_shared_intermediate_dir) \ 241 $(LOCAL_PATH) \ 242 $(LOCAL_PATH)/third_party/webrtc/overrides \ 243 $(LOCAL_PATH)/third_party/libjingle/overrides \ 244 $(LOCAL_PATH)/third_party/libjingle/source \ 245 $(LOCAL_PATH)/testing/gtest/include \ 246 $(LOCAL_PATH)/third_party \ 247 $(LOCAL_PATH)/third_party/expat/files/lib \ 248 $(PWD)/frameworks/wilhelm/include \ 249 $(PWD)/bionic \ 250 $(PWD)/external/stlport/stlport 251 252 253# Flags passed to only C++ (and not C) files. 254LOCAL_CPPFLAGS_Release := \ 255 -fno-exceptions \ 256 -fno-rtti \ 257 -fno-threadsafe-statics \ 258 -fvisibility-inlines-hidden \ 259 -Wsign-compare \ 260 -std=gnu++11 \ 261 -Wno-narrowing \ 262 -Wno-literal-suffix \ 263 -Wno-non-virtual-dtor \ 264 -Wno-sign-promo 265 266 267LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 268LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 269LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 270LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 271### Rules for final target. 272 273LOCAL_SHARED_LIBRARIES := \ 274 libstlport \ 275 libdl 276 277# Add target alias to "gyp_all_modules" target. 278.PHONY: gyp_all_modules 279gyp_all_modules: jingle_jingle_glue_gyp 280 281# Alias gyp target name. 282.PHONY: jingle_glue 283jingle_glue: jingle_jingle_glue_gyp 284 285include $(BUILD_STATIC_LIBRARY) 286