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