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