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_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,third_party_expat_expat_gyp,,,$(GYP_VAR_PREFIX))/expat.stamp 16 17 GYP_GENERATED_OUTPUTS := 18 19 # Make sure our deps and generated files are built first. 20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22 LOCAL_CPP_EXTENSION := .cc 23 LOCAL_GENERATED_SOURCES := 24 25 GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27 LOCAL_SRC_FILES := \ 28 third_party/libjingle/overrides/init_webrtc.cc 29 30 31 # Flags passed to both C and C++ files. 32 MY_CFLAGS_Debug := \ 33 -fstack-protector \ 34 --param=ssp-buffer-size=4 \ 35 \ 36 -fno-exceptions \ 37 -fno-strict-aliasing \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -Wno-unused-local-typedefs \ 44 -Wno-format \ 45 -EL \ 46 -mhard-float \ 47 -ffunction-sections \ 48 -funwind-tables \ 49 -g \ 50 -fstack-protector \ 51 -fno-short-enums \ 52 -finline-limit=64 \ 53 -Wa,--noexecstack \ 54 -U_FORTIFY_SOURCE \ 55 -Wno-extra \ 56 -Wno-ignored-qualifiers \ 57 -Wno-type-limits \ 58 -Wno-unused-but-set-variable \ 59 -Wno-address \ 60 -Wno-format-security \ 61 -Wno-return-type \ 62 -Wno-sequence-point \ 63 -Os \ 64 -g \ 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_LIBJINGLE' \ 78 '-DNO_MAIN_THREAD_WRAPPING' \ 79 '-DNO_SOUND_SYSTEM' \ 80 '-DSRTP_RELATIVE_PATH' \ 81 '-DUSE_WEBRTC_DEV_BRANCH' \ 82 '-DENABLE_EXTERNAL_AUTH' \ 83 '-DV8_DEPRECATION_WARNINGS' \ 84 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 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 '-DCHROMIUM_BUILD' \ 93 '-DUSE_LIBJPEG_TURBO=1' \ 94 '-DENABLE_WEBRTC=1' \ 95 '-DUSE_PROPRIETARY_CODECS' \ 96 '-DENABLE_BROWSER_CDMS' \ 97 '-DENABLE_CONFIGURATION_POLICY' \ 98 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 99 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 100 '-DENABLE_EGLIMAGE=1' \ 101 '-DCLD_VERSION=1' \ 102 '-DENABLE_PRINTING=1' \ 103 '-DENABLE_MANAGED_USERS=1' \ 104 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 105 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 106 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 107 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 108 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 109 '-DVIDEO_HOLE=1' \ 110 '-DPOSIX_AVOID_MMAP' \ 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 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 129 $(LOCAL_PATH)/third_party/libjingle/overrides \ 130 $(LOCAL_PATH)/third_party/libjingle/source \ 131 $(LOCAL_PATH)/third_party/webrtc/overrides \ 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 $(LOCAL_PATH)/third_party/webrtc \ 138 $(gyp_shared_intermediate_dir) \ 139 $(PWD)/external/expat/lib \ 140 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 141 $(PWD)/frameworks/wilhelm/include \ 142 $(PWD)/bionic \ 143 $(PWD)/external/stlport/stlport 144 145 146 # Flags passed to only C++ (and not C) files. 147 LOCAL_CPPFLAGS_Debug := \ 148 -fno-rtti \ 149 -fno-threadsafe-statics \ 150 -fvisibility-inlines-hidden \ 151 -Wno-deprecated \ 152 -Wno-uninitialized \ 153 -Wno-non-virtual-dtor \ 154 -Wno-sign-promo \ 155 -Wno-non-virtual-dtor 156 157 158 LOCAL_FDO_SUPPORT_Debug := false 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-exceptions \ 166 -fno-strict-aliasing \ 167 -Wno-unused-parameter \ 168 -Wno-missing-field-initializers \ 169 -fvisibility=hidden \ 170 -pipe \ 171 -fPIC \ 172 -Wno-unused-local-typedefs \ 173 -Wno-format \ 174 -EL \ 175 -mhard-float \ 176 -ffunction-sections \ 177 -funwind-tables \ 178 -g \ 179 -fstack-protector \ 180 -fno-short-enums \ 181 -finline-limit=64 \ 182 -Wa,--noexecstack \ 183 -U_FORTIFY_SOURCE \ 184 -Wno-extra \ 185 -Wno-ignored-qualifiers \ 186 -Wno-type-limits \ 187 -Wno-unused-but-set-variable \ 188 -Wno-address \ 189 -Wno-format-security \ 190 -Wno-return-type \ 191 -Wno-sequence-point \ 192 -Os \ 193 -fno-ident \ 194 -fdata-sections \ 195 -ffunction-sections \ 196 -fomit-frame-pointer \ 197 -funwind-tables 198 199 MY_DEFS_Release := \ 200 '-DEXPAT_RELATIVE_PATH' \ 201 '-DFEATURE_ENABLE_SSL' \ 202 '-DGTEST_RELATIVE_PATH' \ 203 '-DHAVE_SRTP' \ 204 '-DHAVE_WEBRTC_VIDEO' \ 205 '-DHAVE_WEBRTC_VOICE' \ 206 '-DLOGGING_INSIDE_LIBJINGLE' \ 207 '-DNO_MAIN_THREAD_WRAPPING' \ 208 '-DNO_SOUND_SYSTEM' \ 209 '-DSRTP_RELATIVE_PATH' \ 210 '-DUSE_WEBRTC_DEV_BRANCH' \ 211 '-DENABLE_EXTERNAL_AUTH' \ 212 '-DV8_DEPRECATION_WARNINGS' \ 213 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 214 '-D_FILE_OFFSET_BITS=64' \ 215 '-DNO_TCMALLOC' \ 216 '-DDISABLE_NACL' \ 217 '-DLIBPEERCONNECTION_LIB=1' \ 218 '-DSSL_USE_OPENSSL' \ 219 '-DHAVE_OPENSSL_SSL_H' \ 220 '-DPOSIX' \ 221 '-DCHROMIUM_BUILD' \ 222 '-DUSE_LIBJPEG_TURBO=1' \ 223 '-DENABLE_WEBRTC=1' \ 224 '-DUSE_PROPRIETARY_CODECS' \ 225 '-DENABLE_BROWSER_CDMS' \ 226 '-DENABLE_CONFIGURATION_POLICY' \ 227 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 228 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 229 '-DENABLE_EGLIMAGE=1' \ 230 '-DCLD_VERSION=1' \ 231 '-DENABLE_PRINTING=1' \ 232 '-DENABLE_MANAGED_USERS=1' \ 233 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 234 '-DDATA_REDUCTION_DEV_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 '-DPOSIX_AVOID_MMAP' \ 240 '-DFEATURE_ENABLE_VOICEMAIL' \ 241 '-DANDROID' \ 242 '-DUSE_OPENSSL=1' \ 243 '-DUSE_OPENSSL_CERTS=1' \ 244 '-D__GNU_SOURCE=1' \ 245 '-DUSE_STLPORT=1' \ 246 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 247 '-DCHROME_BUILD_ID=""' \ 248 '-DNDEBUG' \ 249 '-DNVALGRIND' \ 250 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 251 252 253 # Include paths placed before CFLAGS/CPPFLAGS 254 LOCAL_C_INCLUDES_Release := \ 255 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 256 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 257 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 258 $(LOCAL_PATH)/third_party/libjingle/overrides \ 259 $(LOCAL_PATH)/third_party/libjingle/source \ 260 $(LOCAL_PATH)/third_party/webrtc/overrides \ 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 $(LOCAL_PATH)/third_party/webrtc \ 267 $(gyp_shared_intermediate_dir) \ 268 $(PWD)/external/expat/lib \ 269 $(LOCAL_PATH)/third_party/openssl/openssl/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-rtti \ 278 -fno-threadsafe-statics \ 279 -fvisibility-inlines-hidden \ 280 -Wno-deprecated \ 281 -Wno-uninitialized \ 282 -Wno-non-virtual-dtor \ 283 -Wno-sign-promo \ 284 -Wno-non-virtual-dtor 285 286 287 LOCAL_FDO_SUPPORT_Release := false 288 289 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 290 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(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_LDFLAGS_Debug := \ 297 -Wl,-z,now \ 298 -Wl,-z,relro \ 299 -Wl,--fatal-warnings \ 300 -Wl,-z,noexecstack \ 301 -fPIC \ 302 -EL \ 303 -Wl,--no-keep-memory \ 304 -nostdlib \ 305 -Wl,--no-undefined \ 306 -Wl,--exclude-libs=ALL \ 307 -Wl,--warn-shared-textrel \ 308 -Wl,-O1 \ 309 -Wl,--as-needed 310 311 312 LOCAL_LDFLAGS_Release := \ 313 -Wl,-z,now \ 314 -Wl,-z,relro \ 315 -Wl,--fatal-warnings \ 316 -Wl,-z,noexecstack \ 317 -fPIC \ 318 -EL \ 319 -Wl,--no-keep-memory \ 320 -nostdlib \ 321 -Wl,--no-undefined \ 322 -Wl,--exclude-libs=ALL \ 323 -Wl,-O1 \ 324 -Wl,--as-needed \ 325 -Wl,--gc-sections \ 326 -Wl,--warn-shared-textrel 327 328 329 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 330 331 LOCAL_STATIC_LIBRARIES := 332 333 # Enable grouping to fix circular references 334 LOCAL_GROUP_STATIC_LIBRARIES := true 335 336 LOCAL_SHARED_LIBRARIES := \ 337 libstlport \ 338 libdl 339 340 # Add target alias to "gyp_all_modules" target. 341 .PHONY: gyp_all_modules 342 gyp_all_modules: third_party_libjingle_libjingle_webrtc_gyp 343 344 # Alias gyp target name. 345 .PHONY: libjingle_webrtc 346 libjingle_webrtc: third_party_libjingle_libjingle_webrtc_gyp 347 348 include $(BUILD_STATIC_LIBRARY) 349