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_libjingle_libjingle_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 $(call intermediates-dir-for,GYP,third_party_webrtc_base_webrtc_base_gyp,,,$(GYP_VAR_PREFIX))/webrtc_base.stamp 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/libjingle/source/talk/p2p/base/asyncstuntcpsocket.cc \ 28 third_party/libjingle/source/talk/p2p/base/basicpacketsocketfactory.cc \ 29 third_party/libjingle/source/talk/p2p/base/dtlstransportchannel.cc \ 30 third_party/libjingle/source/talk/p2p/base/p2ptransport.cc \ 31 third_party/libjingle/source/talk/p2p/base/p2ptransportchannel.cc \ 32 third_party/libjingle/source/talk/p2p/base/parsing.cc \ 33 third_party/libjingle/source/talk/p2p/base/port.cc \ 34 third_party/libjingle/source/talk/p2p/base/portallocator.cc \ 35 third_party/libjingle/source/talk/p2p/base/portallocatorsessionproxy.cc \ 36 third_party/libjingle/source/talk/p2p/base/portproxy.cc \ 37 third_party/libjingle/source/talk/p2p/base/pseudotcp.cc \ 38 third_party/libjingle/source/talk/p2p/base/rawtransport.cc \ 39 third_party/libjingle/source/talk/p2p/base/rawtransportchannel.cc \ 40 third_party/libjingle/source/talk/p2p/base/relayport.cc \ 41 third_party/libjingle/source/talk/p2p/base/session.cc \ 42 third_party/libjingle/source/talk/p2p/base/sessiondescription.cc \ 43 third_party/libjingle/source/talk/p2p/base/sessionmanager.cc \ 44 third_party/libjingle/source/talk/p2p/base/sessionmessages.cc \ 45 third_party/libjingle/source/talk/p2p/base/stun.cc \ 46 third_party/libjingle/source/talk/p2p/base/stunport.cc \ 47 third_party/libjingle/source/talk/p2p/base/stunrequest.cc \ 48 third_party/libjingle/source/talk/p2p/base/tcpport.cc \ 49 third_party/libjingle/source/talk/p2p/base/transport.cc \ 50 third_party/libjingle/source/talk/p2p/base/transportchannel.cc \ 51 third_party/libjingle/source/talk/p2p/base/transportchannelproxy.cc \ 52 third_party/libjingle/source/talk/p2p/base/transportdescription.cc \ 53 third_party/libjingle/source/talk/p2p/base/transportdescriptionfactory.cc \ 54 third_party/libjingle/source/talk/p2p/base/turnport.cc \ 55 third_party/libjingle/source/talk/p2p/client/basicportallocator.cc \ 56 third_party/libjingle/source/talk/p2p/client/httpportallocator.cc \ 57 third_party/libjingle/source/talk/p2p/client/socketmonitor.cc \ 58 third_party/libjingle/source/talk/xmpp/constants.cc \ 59 third_party/libjingle/source/talk/xmpp/jid.cc \ 60 third_party/libjingle/source/talk/xmpp/saslmechanism.cc \ 61 third_party/libjingle/source/talk/xmpp/xmppclient.cc \ 62 third_party/libjingle/source/talk/xmpp/xmppengineimpl.cc \ 63 third_party/libjingle/source/talk/xmpp/xmppengineimpl_iq.cc \ 64 third_party/libjingle/source/talk/xmpp/xmpplogintask.cc \ 65 third_party/libjingle/source/talk/xmpp/xmppstanzaparser.cc \ 66 third_party/libjingle/source/talk/xmpp/xmpptask.cc 67 68 69 # Flags passed to both C and C++ files. 70 MY_CFLAGS_Debug := \ 71 --param=ssp-buffer-size=4 \ 72 -fno-strict-aliasing \ 73 -Wno-unused-parameter \ 74 -Wno-missing-field-initializers \ 75 -fvisibility=hidden \ 76 -pipe \ 77 -fPIC \ 78 -Wno-unused-local-typedefs \ 79 -Wno-format \ 80 -msse2 \ 81 -mfpmath=sse \ 82 -mmmx \ 83 -m32 \ 84 -ffunction-sections \ 85 -funwind-tables \ 86 -g \ 87 -fno-short-enums \ 88 -finline-limit=64 \ 89 -Wa,--noexecstack \ 90 -U_FORTIFY_SOURCE \ 91 -Wno-extra \ 92 -Wno-ignored-qualifiers \ 93 -Wno-type-limits \ 94 -Wno-unused-but-set-variable \ 95 -fno-stack-protector \ 96 -Wno-address \ 97 -Wno-format-security \ 98 -Wno-return-type \ 99 -Wno-sequence-point \ 100 -Os \ 101 -g \ 102 -gdwarf-4 \ 103 -fdata-sections \ 104 -ffunction-sections \ 105 -fomit-frame-pointer \ 106 -funwind-tables 107 108 MY_DEFS_Debug := \ 109 '-DEXPAT_RELATIVE_PATH' \ 110 '-DFEATURE_ENABLE_SSL' \ 111 '-DGTEST_RELATIVE_PATH' \ 112 '-DHAVE_SRTP' \ 113 '-DHAVE_WEBRTC_VIDEO' \ 114 '-DHAVE_WEBRTC_VOICE' \ 115 '-DLOGGING_INSIDE_WEBRTC' \ 116 '-DNO_MAIN_THREAD_WRAPPING' \ 117 '-DNO_SOUND_SYSTEM' \ 118 '-DSRTP_RELATIVE_PATH' \ 119 '-DUSE_WEBRTC_DEV_BRANCH' \ 120 '-DENABLE_EXTERNAL_AUTH' \ 121 '-DWEBRTC_CHROMIUM_BUILD' \ 122 '-DV8_DEPRECATION_WARNINGS' \ 123 '-D_FILE_OFFSET_BITS=64' \ 124 '-DNO_TCMALLOC' \ 125 '-DDISABLE_NACL' \ 126 '-DLIBPEERCONNECTION_LIB=1' \ 127 '-DSSL_USE_OPENSSL' \ 128 '-DHAVE_OPENSSL_SSL_H' \ 129 '-DPOSIX' \ 130 '-DWEBRTC_POSIX' \ 131 '-DCHROMIUM_BUILD' \ 132 '-DUSE_LIBJPEG_TURBO=1' \ 133 '-DENABLE_WEBRTC=1' \ 134 '-DUSE_PROPRIETARY_CODECS' \ 135 '-DENABLE_BROWSER_CDMS' \ 136 '-DENABLE_CONFIGURATION_POLICY' \ 137 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 138 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 139 '-DENABLE_EGLIMAGE=1' \ 140 '-DCLD_VERSION=1' \ 141 '-DENABLE_PRINTING=1' \ 142 '-DENABLE_MANAGED_USERS=1' \ 143 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 144 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 145 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 146 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 147 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 148 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 149 '-DVIDEO_HOLE=1' \ 150 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 151 '-DXML_STATIC' \ 152 '-DWEBRTC_LINUX' \ 153 '-DWEBRTC_ANDROID' \ 154 '-DWEBRTC_ANDROID_OPENSLES' \ 155 '-DFEATURE_ENABLE_VOICEMAIL' \ 156 '-DANDROID' \ 157 '-DUSE_OPENSSL=1' \ 158 '-DUSE_OPENSSL_CERTS=1' \ 159 '-D__GNU_SOURCE=1' \ 160 '-DUSE_STLPORT=1' \ 161 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 162 '-DCHROME_BUILD_ID=""' \ 163 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 164 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 165 '-D_DEBUG' 166 167 168 # Include paths placed before CFLAGS/CPPFLAGS 169 LOCAL_C_INCLUDES_Debug := \ 170 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 171 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 172 $(LOCAL_PATH)/third_party/libjingle/overrides \ 173 $(LOCAL_PATH)/third_party/webrtc/overrides \ 174 $(LOCAL_PATH)/third_party/libjingle/source \ 175 $(LOCAL_PATH) \ 176 $(LOCAL_PATH)/testing/gtest/include \ 177 $(LOCAL_PATH)/third_party \ 178 $(LOCAL_PATH)/third_party/libyuv/include \ 179 $(LOCAL_PATH)/third_party/usrsctp \ 180 $(gyp_shared_intermediate_dir) \ 181 $(LOCAL_PATH)/third_party/expat/files/lib \ 182 $(LOCAL_PATH)/third_party/boringssl/src/include \ 183 $(LOCAL_PATH)/third_party/webrtc/overrides \ 184 $(LOCAL_PATH)/third_party \ 185 $(PWD)/frameworks/wilhelm/include \ 186 $(PWD)/bionic \ 187 $(PWD)/external/stlport/stlport 188 189 190 # Flags passed to only C++ (and not C) files. 191 LOCAL_CPPFLAGS_Debug := \ 192 -fno-exceptions \ 193 -fno-rtti \ 194 -fno-threadsafe-statics \ 195 -fvisibility-inlines-hidden \ 196 -Wno-deprecated \ 197 -std=gnu++11 \ 198 -Wno-narrowing \ 199 -Wno-literal-suffix \ 200 -Wno-non-virtual-dtor \ 201 -Wno-sign-promo \ 202 -Wno-non-virtual-dtor 203 204 205 # Flags passed to both C and C++ files. 206 MY_CFLAGS_Release := \ 207 --param=ssp-buffer-size=4 \ 208 -fno-strict-aliasing \ 209 -Wno-unused-parameter \ 210 -Wno-missing-field-initializers \ 211 -fvisibility=hidden \ 212 -pipe \ 213 -fPIC \ 214 -Wno-unused-local-typedefs \ 215 -Wno-format \ 216 -msse2 \ 217 -mfpmath=sse \ 218 -mmmx \ 219 -m32 \ 220 -ffunction-sections \ 221 -funwind-tables \ 222 -g \ 223 -fno-short-enums \ 224 -finline-limit=64 \ 225 -Wa,--noexecstack \ 226 -U_FORTIFY_SOURCE \ 227 -Wno-extra \ 228 -Wno-ignored-qualifiers \ 229 -Wno-type-limits \ 230 -Wno-unused-but-set-variable \ 231 -fno-stack-protector \ 232 -Wno-address \ 233 -Wno-format-security \ 234 -Wno-return-type \ 235 -Wno-sequence-point \ 236 -Os \ 237 -fno-ident \ 238 -fdata-sections \ 239 -ffunction-sections \ 240 -fomit-frame-pointer \ 241 -funwind-tables 242 243 MY_DEFS_Release := \ 244 '-DEXPAT_RELATIVE_PATH' \ 245 '-DFEATURE_ENABLE_SSL' \ 246 '-DGTEST_RELATIVE_PATH' \ 247 '-DHAVE_SRTP' \ 248 '-DHAVE_WEBRTC_VIDEO' \ 249 '-DHAVE_WEBRTC_VOICE' \ 250 '-DLOGGING_INSIDE_WEBRTC' \ 251 '-DNO_MAIN_THREAD_WRAPPING' \ 252 '-DNO_SOUND_SYSTEM' \ 253 '-DSRTP_RELATIVE_PATH' \ 254 '-DUSE_WEBRTC_DEV_BRANCH' \ 255 '-DENABLE_EXTERNAL_AUTH' \ 256 '-DWEBRTC_CHROMIUM_BUILD' \ 257 '-DV8_DEPRECATION_WARNINGS' \ 258 '-D_FILE_OFFSET_BITS=64' \ 259 '-DNO_TCMALLOC' \ 260 '-DDISABLE_NACL' \ 261 '-DLIBPEERCONNECTION_LIB=1' \ 262 '-DSSL_USE_OPENSSL' \ 263 '-DHAVE_OPENSSL_SSL_H' \ 264 '-DPOSIX' \ 265 '-DWEBRTC_POSIX' \ 266 '-DCHROMIUM_BUILD' \ 267 '-DUSE_LIBJPEG_TURBO=1' \ 268 '-DENABLE_WEBRTC=1' \ 269 '-DUSE_PROPRIETARY_CODECS' \ 270 '-DENABLE_BROWSER_CDMS' \ 271 '-DENABLE_CONFIGURATION_POLICY' \ 272 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 273 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 274 '-DENABLE_EGLIMAGE=1' \ 275 '-DCLD_VERSION=1' \ 276 '-DENABLE_PRINTING=1' \ 277 '-DENABLE_MANAGED_USERS=1' \ 278 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 279 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 280 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 281 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 282 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 283 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 284 '-DVIDEO_HOLE=1' \ 285 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 286 '-DXML_STATIC' \ 287 '-DWEBRTC_LINUX' \ 288 '-DWEBRTC_ANDROID' \ 289 '-DWEBRTC_ANDROID_OPENSLES' \ 290 '-DFEATURE_ENABLE_VOICEMAIL' \ 291 '-DANDROID' \ 292 '-DUSE_OPENSSL=1' \ 293 '-DUSE_OPENSSL_CERTS=1' \ 294 '-D__GNU_SOURCE=1' \ 295 '-DUSE_STLPORT=1' \ 296 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 297 '-DCHROME_BUILD_ID=""' \ 298 '-DNDEBUG' \ 299 '-DNVALGRIND' \ 300 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 301 302 303 # Include paths placed before CFLAGS/CPPFLAGS 304 LOCAL_C_INCLUDES_Release := \ 305 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 306 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 307 $(LOCAL_PATH)/third_party/libjingle/overrides \ 308 $(LOCAL_PATH)/third_party/webrtc/overrides \ 309 $(LOCAL_PATH)/third_party/libjingle/source \ 310 $(LOCAL_PATH) \ 311 $(LOCAL_PATH)/testing/gtest/include \ 312 $(LOCAL_PATH)/third_party \ 313 $(LOCAL_PATH)/third_party/libyuv/include \ 314 $(LOCAL_PATH)/third_party/usrsctp \ 315 $(gyp_shared_intermediate_dir) \ 316 $(LOCAL_PATH)/third_party/expat/files/lib \ 317 $(LOCAL_PATH)/third_party/boringssl/src/include \ 318 $(LOCAL_PATH)/third_party/webrtc/overrides \ 319 $(LOCAL_PATH)/third_party \ 320 $(PWD)/frameworks/wilhelm/include \ 321 $(PWD)/bionic \ 322 $(PWD)/external/stlport/stlport 323 324 325 # Flags passed to only C++ (and not C) files. 326 LOCAL_CPPFLAGS_Release := \ 327 -fno-exceptions \ 328 -fno-rtti \ 329 -fno-threadsafe-statics \ 330 -fvisibility-inlines-hidden \ 331 -Wno-deprecated \ 332 -std=gnu++11 \ 333 -Wno-narrowing \ 334 -Wno-literal-suffix \ 335 -Wno-non-virtual-dtor \ 336 -Wno-sign-promo \ 337 -Wno-non-virtual-dtor 338 339 340 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 341 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 342 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 343 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 344 ### Rules for final target. 345 346 LOCAL_SHARED_LIBRARIES := \ 347 libstlport \ 348 libdl 349 350 # Add target alias to "gyp_all_modules" target. 351 .PHONY: gyp_all_modules 352 gyp_all_modules: third_party_libjingle_libjingle_gyp 353 354 # Alias gyp target name. 355 .PHONY: libjingle 356 libjingle: third_party_libjingle_libjingle_gyp 357 358 include $(BUILD_STATIC_LIBRARY) 359