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