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 -fstack-protector \ 72 --param=ssp-buffer-size=4 \ 73 \ 74 -fno-strict-aliasing \ 75 -Wno-unused-parameter \ 76 -Wno-missing-field-initializers \ 77 -fvisibility=hidden \ 78 -pipe \ 79 -fPIC \ 80 -Wno-unused-local-typedefs \ 81 -Wno-format \ 82 -ffunction-sections \ 83 -funwind-tables \ 84 -g \ 85 -fstack-protector \ 86 -fno-short-enums \ 87 -finline-limit=64 \ 88 -Wa,--noexecstack \ 89 -U_FORTIFY_SOURCE \ 90 -Wno-extra \ 91 -Wno-ignored-qualifiers \ 92 -Wno-type-limits \ 93 -Wno-unused-but-set-variable \ 94 -Wno-address \ 95 -Wno-format-security \ 96 -Wno-return-type \ 97 -Wno-sequence-point \ 98 -Os \ 99 -g \ 100 -gdwarf-4 \ 101 -fdata-sections \ 102 -ffunction-sections \ 103 -fomit-frame-pointer \ 104 -funwind-tables 105 106 MY_DEFS_Debug := \ 107 '-DEXPAT_RELATIVE_PATH' \ 108 '-DFEATURE_ENABLE_SSL' \ 109 '-DGTEST_RELATIVE_PATH' \ 110 '-DHAVE_SRTP' \ 111 '-DHAVE_WEBRTC_VIDEO' \ 112 '-DHAVE_WEBRTC_VOICE' \ 113 '-DLOGGING_INSIDE_WEBRTC' \ 114 '-DNO_MAIN_THREAD_WRAPPING' \ 115 '-DNO_SOUND_SYSTEM' \ 116 '-DSRTP_RELATIVE_PATH' \ 117 '-DUSE_WEBRTC_DEV_BRANCH' \ 118 '-DENABLE_EXTERNAL_AUTH' \ 119 '-DWEBRTC_CHROMIUM_BUILD' \ 120 '-DV8_DEPRECATION_WARNINGS' \ 121 '-D_FILE_OFFSET_BITS=64' \ 122 '-DNO_TCMALLOC' \ 123 '-DDISABLE_NACL' \ 124 '-DLIBPEERCONNECTION_LIB=1' \ 125 '-DSSL_USE_OPENSSL' \ 126 '-DHAVE_OPENSSL_SSL_H' \ 127 '-DPOSIX' \ 128 '-DWEBRTC_POSIX' \ 129 '-DCHROMIUM_BUILD' \ 130 '-DUSE_LIBJPEG_TURBO=1' \ 131 '-DENABLE_WEBRTC=1' \ 132 '-DUSE_PROPRIETARY_CODECS' \ 133 '-DENABLE_BROWSER_CDMS' \ 134 '-DENABLE_CONFIGURATION_POLICY' \ 135 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 136 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 137 '-DENABLE_EGLIMAGE=1' \ 138 '-DCLD_VERSION=1' \ 139 '-DENABLE_PRINTING=1' \ 140 '-DENABLE_MANAGED_USERS=1' \ 141 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 142 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 143 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 144 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 145 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 146 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 147 '-DVIDEO_HOLE=1' \ 148 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 149 '-DPOSIX_AVOID_MMAP' \ 150 '-DXML_STATIC' \ 151 '-DWEBRTC_LINUX' \ 152 '-DWEBRTC_ANDROID' \ 153 '-DWEBRTC_ANDROID_OPENSLES' \ 154 '-DFEATURE_ENABLE_VOICEMAIL' \ 155 '-DANDROID' \ 156 '-DUSE_OPENSSL=1' \ 157 '-DUSE_OPENSSL_CERTS=1' \ 158 '-D__GNU_SOURCE=1' \ 159 '-DUSE_STLPORT=1' \ 160 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 161 '-DCHROME_BUILD_ID=""' \ 162 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 163 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 164 '-D_DEBUG' 165 166 167 # Include paths placed before CFLAGS/CPPFLAGS 168 LOCAL_C_INCLUDES_Debug := \ 169 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 170 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 171 $(LOCAL_PATH)/third_party/libjingle/overrides \ 172 $(LOCAL_PATH)/third_party/webrtc/overrides \ 173 $(LOCAL_PATH)/third_party/libjingle/source \ 174 $(LOCAL_PATH) \ 175 $(LOCAL_PATH)/testing/gtest/include \ 176 $(LOCAL_PATH)/third_party \ 177 $(LOCAL_PATH)/third_party/libyuv/include \ 178 $(LOCAL_PATH)/third_party/usrsctp \ 179 $(gyp_shared_intermediate_dir) \ 180 $(LOCAL_PATH)/third_party/expat/files/lib \ 181 $(LOCAL_PATH)/third_party/boringssl/src/include \ 182 $(LOCAL_PATH)/third_party/webrtc/overrides \ 183 $(LOCAL_PATH)/third_party \ 184 $(PWD)/frameworks/wilhelm/include \ 185 $(PWD)/bionic \ 186 $(PWD)/external/stlport/stlport 187 188 189 # Flags passed to only C++ (and not C) files. 190 LOCAL_CPPFLAGS_Debug := \ 191 -fno-exceptions \ 192 -fno-rtti \ 193 -fno-threadsafe-statics \ 194 -fvisibility-inlines-hidden \ 195 -Wno-deprecated \ 196 -Wno-uninitialized \ 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 -fstack-protector \ 208 --param=ssp-buffer-size=4 \ 209 \ 210 -fno-strict-aliasing \ 211 -Wno-unused-parameter \ 212 -Wno-missing-field-initializers \ 213 -fvisibility=hidden \ 214 -pipe \ 215 -fPIC \ 216 -Wno-unused-local-typedefs \ 217 -Wno-format \ 218 -ffunction-sections \ 219 -funwind-tables \ 220 -g \ 221 -fstack-protector \ 222 -fno-short-enums \ 223 -finline-limit=64 \ 224 -Wa,--noexecstack \ 225 -U_FORTIFY_SOURCE \ 226 -Wno-extra \ 227 -Wno-ignored-qualifiers \ 228 -Wno-type-limits \ 229 -Wno-unused-but-set-variable \ 230 -Wno-address \ 231 -Wno-format-security \ 232 -Wno-return-type \ 233 -Wno-sequence-point \ 234 -Os \ 235 -fno-ident \ 236 -fdata-sections \ 237 -ffunction-sections \ 238 -fomit-frame-pointer \ 239 -funwind-tables 240 241 MY_DEFS_Release := \ 242 '-DEXPAT_RELATIVE_PATH' \ 243 '-DFEATURE_ENABLE_SSL' \ 244 '-DGTEST_RELATIVE_PATH' \ 245 '-DHAVE_SRTP' \ 246 '-DHAVE_WEBRTC_VIDEO' \ 247 '-DHAVE_WEBRTC_VOICE' \ 248 '-DLOGGING_INSIDE_WEBRTC' \ 249 '-DNO_MAIN_THREAD_WRAPPING' \ 250 '-DNO_SOUND_SYSTEM' \ 251 '-DSRTP_RELATIVE_PATH' \ 252 '-DUSE_WEBRTC_DEV_BRANCH' \ 253 '-DENABLE_EXTERNAL_AUTH' \ 254 '-DWEBRTC_CHROMIUM_BUILD' \ 255 '-DV8_DEPRECATION_WARNINGS' \ 256 '-D_FILE_OFFSET_BITS=64' \ 257 '-DNO_TCMALLOC' \ 258 '-DDISABLE_NACL' \ 259 '-DLIBPEERCONNECTION_LIB=1' \ 260 '-DSSL_USE_OPENSSL' \ 261 '-DHAVE_OPENSSL_SSL_H' \ 262 '-DPOSIX' \ 263 '-DWEBRTC_POSIX' \ 264 '-DCHROMIUM_BUILD' \ 265 '-DUSE_LIBJPEG_TURBO=1' \ 266 '-DENABLE_WEBRTC=1' \ 267 '-DUSE_PROPRIETARY_CODECS' \ 268 '-DENABLE_BROWSER_CDMS' \ 269 '-DENABLE_CONFIGURATION_POLICY' \ 270 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 271 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 272 '-DENABLE_EGLIMAGE=1' \ 273 '-DCLD_VERSION=1' \ 274 '-DENABLE_PRINTING=1' \ 275 '-DENABLE_MANAGED_USERS=1' \ 276 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 277 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 278 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 279 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 280 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 281 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 282 '-DVIDEO_HOLE=1' \ 283 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 284 '-DPOSIX_AVOID_MMAP' \ 285 '-DXML_STATIC' \ 286 '-DWEBRTC_LINUX' \ 287 '-DWEBRTC_ANDROID' \ 288 '-DWEBRTC_ANDROID_OPENSLES' \ 289 '-DFEATURE_ENABLE_VOICEMAIL' \ 290 '-DANDROID' \ 291 '-DUSE_OPENSSL=1' \ 292 '-DUSE_OPENSSL_CERTS=1' \ 293 '-D__GNU_SOURCE=1' \ 294 '-DUSE_STLPORT=1' \ 295 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 296 '-DCHROME_BUILD_ID=""' \ 297 '-DNDEBUG' \ 298 '-DNVALGRIND' \ 299 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 300 301 302 # Include paths placed before CFLAGS/CPPFLAGS 303 LOCAL_C_INCLUDES_Release := \ 304 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 305 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 306 $(LOCAL_PATH)/third_party/libjingle/overrides \ 307 $(LOCAL_PATH)/third_party/webrtc/overrides \ 308 $(LOCAL_PATH)/third_party/libjingle/source \ 309 $(LOCAL_PATH) \ 310 $(LOCAL_PATH)/testing/gtest/include \ 311 $(LOCAL_PATH)/third_party \ 312 $(LOCAL_PATH)/third_party/libyuv/include \ 313 $(LOCAL_PATH)/third_party/usrsctp \ 314 $(gyp_shared_intermediate_dir) \ 315 $(LOCAL_PATH)/third_party/expat/files/lib \ 316 $(LOCAL_PATH)/third_party/boringssl/src/include \ 317 $(LOCAL_PATH)/third_party/webrtc/overrides \ 318 $(LOCAL_PATH)/third_party \ 319 $(PWD)/frameworks/wilhelm/include \ 320 $(PWD)/bionic \ 321 $(PWD)/external/stlport/stlport 322 323 324 # Flags passed to only C++ (and not C) files. 325 LOCAL_CPPFLAGS_Release := \ 326 -fno-exceptions \ 327 -fno-rtti \ 328 -fno-threadsafe-statics \ 329 -fvisibility-inlines-hidden \ 330 -Wno-deprecated \ 331 -Wno-uninitialized \ 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