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