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 \ 34 -fno-strict-aliasing \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-unused-local-typedefs \ 41 -Wno-format \ 42 -ffunction-sections \ 43 -funwind-tables \ 44 -g \ 45 -fstack-protector \ 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 -fomit-frame-pointer \ 64 -funwind-tables 65 66 MY_DEFS_Debug := \ 67 '-DEXPAT_RELATIVE_PATH' \ 68 '-DFEATURE_ENABLE_SSL' \ 69 '-DGTEST_RELATIVE_PATH' \ 70 '-DHAVE_SRTP' \ 71 '-DHAVE_WEBRTC_VIDEO' \ 72 '-DHAVE_WEBRTC_VOICE' \ 73 '-DLOGGING_INSIDE_WEBRTC' \ 74 '-DNO_MAIN_THREAD_WRAPPING' \ 75 '-DNO_SOUND_SYSTEM' \ 76 '-DSRTP_RELATIVE_PATH' \ 77 '-DUSE_WEBRTC_DEV_BRANCH' \ 78 '-DENABLE_EXTERNAL_AUTH' \ 79 '-DWEBRTC_CHROMIUM_BUILD' \ 80 '-DV8_DEPRECATION_WARNINGS' \ 81 '-D_FILE_OFFSET_BITS=64' \ 82 '-DNO_TCMALLOC' \ 83 '-DDISABLE_NACL' \ 84 '-DLIBPEERCONNECTION_LIB=1' \ 85 '-DSSL_USE_OPENSSL' \ 86 '-DHAVE_OPENSSL_SSL_H' \ 87 '-DPOSIX' \ 88 '-DWEBRTC_POSIX' \ 89 '-DCHROMIUM_BUILD' \ 90 '-DUSE_LIBJPEG_TURBO=1' \ 91 '-DENABLE_WEBRTC=1' \ 92 '-DUSE_PROPRIETARY_CODECS' \ 93 '-DENABLE_BROWSER_CDMS' \ 94 '-DENABLE_CONFIGURATION_POLICY' \ 95 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 96 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 97 '-DENABLE_EGLIMAGE=1' \ 98 '-DCLD_VERSION=1' \ 99 '-DENABLE_PRINTING=1' \ 100 '-DENABLE_MANAGED_USERS=1' \ 101 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 102 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 103 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 104 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 105 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 106 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 107 '-DVIDEO_HOLE=1' \ 108 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 109 '-DPOSIX_AVOID_MMAP' \ 110 '-DXML_STATIC' \ 111 '-DFEATURE_ENABLE_VOICEMAIL' \ 112 '-DANDROID' \ 113 '-DUSE_OPENSSL=1' \ 114 '-DUSE_OPENSSL_CERTS=1' \ 115 '-D__GNU_SOURCE=1' \ 116 '-DUSE_STLPORT=1' \ 117 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 118 '-DCHROME_BUILD_ID=""' \ 119 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 120 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 121 '-D_DEBUG' 122 123 124 # Include paths placed before CFLAGS/CPPFLAGS 125 LOCAL_C_INCLUDES_Debug := \ 126 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 127 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 128 $(LOCAL_PATH)/third_party/libjingle/overrides \ 129 $(LOCAL_PATH)/third_party/webrtc/overrides \ 130 $(LOCAL_PATH)/third_party/libjingle/source \ 131 $(LOCAL_PATH) \ 132 $(LOCAL_PATH)/testing/gtest/include \ 133 $(LOCAL_PATH)/third_party \ 134 $(LOCAL_PATH)/third_party/libyuv/include \ 135 $(LOCAL_PATH)/third_party/usrsctp \ 136 $(gyp_shared_intermediate_dir) \ 137 $(LOCAL_PATH)/third_party/expat/files/lib \ 138 $(LOCAL_PATH)/third_party/boringssl/src/include \ 139 $(PWD)/frameworks/wilhelm/include \ 140 $(PWD)/bionic \ 141 $(PWD)/external/stlport/stlport 142 143 144 # Flags passed to only C++ (and not C) files. 145 LOCAL_CPPFLAGS_Debug := \ 146 -fno-exceptions \ 147 -fno-rtti \ 148 -fno-threadsafe-statics \ 149 -fvisibility-inlines-hidden \ 150 -Wno-deprecated \ 151 -Wno-uninitialized \ 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 \ 165 -fno-strict-aliasing \ 166 -Wno-unused-parameter \ 167 -Wno-missing-field-initializers \ 168 -fvisibility=hidden \ 169 -pipe \ 170 -fPIC \ 171 -Wno-unused-local-typedefs \ 172 -Wno-format \ 173 -ffunction-sections \ 174 -funwind-tables \ 175 -g \ 176 -fstack-protector \ 177 -fno-short-enums \ 178 -finline-limit=64 \ 179 -Wa,--noexecstack \ 180 -U_FORTIFY_SOURCE \ 181 -Wno-extra \ 182 -Wno-ignored-qualifiers \ 183 -Wno-type-limits \ 184 -Wno-unused-but-set-variable \ 185 -Wno-address \ 186 -Wno-format-security \ 187 -Wno-return-type \ 188 -Wno-sequence-point \ 189 -Os \ 190 -fno-ident \ 191 -fdata-sections \ 192 -ffunction-sections \ 193 -fomit-frame-pointer \ 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 '-DFEATURE_ENABLE_VOICEMAIL' \ 242 '-DANDROID' \ 243 '-DUSE_OPENSSL=1' \ 244 '-DUSE_OPENSSL_CERTS=1' \ 245 '-D__GNU_SOURCE=1' \ 246 '-DUSE_STLPORT=1' \ 247 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 248 '-DCHROME_BUILD_ID=""' \ 249 '-DNDEBUG' \ 250 '-DNVALGRIND' \ 251 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 252 253 254 # Include paths placed before CFLAGS/CPPFLAGS 255 LOCAL_C_INCLUDES_Release := \ 256 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 257 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 258 $(LOCAL_PATH)/third_party/libjingle/overrides \ 259 $(LOCAL_PATH)/third_party/webrtc/overrides \ 260 $(LOCAL_PATH)/third_party/libjingle/source \ 261 $(LOCAL_PATH) \ 262 $(LOCAL_PATH)/testing/gtest/include \ 263 $(LOCAL_PATH)/third_party \ 264 $(LOCAL_PATH)/third_party/libyuv/include \ 265 $(LOCAL_PATH)/third_party/usrsctp \ 266 $(gyp_shared_intermediate_dir) \ 267 $(LOCAL_PATH)/third_party/expat/files/lib \ 268 $(LOCAL_PATH)/third_party/boringssl/src/include \ 269 $(PWD)/frameworks/wilhelm/include \ 270 $(PWD)/bionic \ 271 $(PWD)/external/stlport/stlport 272 273 274 # Flags passed to only C++ (and not C) files. 275 LOCAL_CPPFLAGS_Release := \ 276 -fno-exceptions \ 277 -fno-rtti \ 278 -fno-threadsafe-statics \ 279 -fvisibility-inlines-hidden \ 280 -Wno-deprecated \ 281 -Wno-uninitialized \ 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