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