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_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/source/talk/media/webrtc/webrtcmediaengine.cc \ 29 third_party/libjingle/source/talk/media/webrtc/webrtcvideoengine.cc \ 30 third_party/libjingle/source/talk/media/webrtc/webrtcvideoengine2.cc \ 31 third_party/libjingle/source/talk/media/webrtc/webrtcvoiceengine.cc 32 33 34 # Flags passed to both C and C++ files. 35 MY_CFLAGS_Debug := \ 36 -fstack-protector \ 37 --param=ssp-buffer-size=4 \ 38 -fno-exceptions \ 39 -fno-strict-aliasing \ 40 -Wno-unused-parameter \ 41 -Wno-missing-field-initializers \ 42 -fvisibility=hidden \ 43 -pipe \ 44 -fPIC \ 45 -Wno-unused-local-typedefs \ 46 -Wno-format \ 47 -m64 \ 48 -march=x86-64 \ 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 -fdata-sections \ 68 -ffunction-sections \ 69 -fomit-frame-pointer \ 70 -funwind-tables 71 72 MY_DEFS_Debug := \ 73 '-DEXPAT_RELATIVE_PATH' \ 74 '-DFEATURE_ENABLE_SSL' \ 75 '-DGTEST_RELATIVE_PATH' \ 76 '-DHAVE_SRTP' \ 77 '-DHAVE_WEBRTC_VIDEO' \ 78 '-DHAVE_WEBRTC_VOICE' \ 79 '-DLOGGING_INSIDE_LIBJINGLE' \ 80 '-DNO_MAIN_THREAD_WRAPPING' \ 81 '-DNO_SOUND_SYSTEM' \ 82 '-DSRTP_RELATIVE_PATH' \ 83 '-DUSE_WEBRTC_DEV_BRANCH' \ 84 '-DENABLE_EXTERNAL_AUTH' \ 85 '-DV8_DEPRECATION_WARNINGS' \ 86 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISABLE_NACL' \ 90 '-DLIBPEERCONNECTION_LIB=1' \ 91 '-DSSL_USE_OPENSSL' \ 92 '-DHAVE_OPENSSL_SSL_H' \ 93 '-DPOSIX' \ 94 '-DCHROMIUM_BUILD' \ 95 '-DUSE_LIBJPEG_TURBO=1' \ 96 '-DENABLE_WEBRTC=1' \ 97 '-DUSE_PROPRIETARY_CODECS' \ 98 '-DENABLE_BROWSER_CDMS' \ 99 '-DENABLE_CONFIGURATION_POLICY' \ 100 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 101 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 102 '-DENABLE_EGLIMAGE=1' \ 103 '-DCLD_VERSION=1' \ 104 '-DENABLE_PRINTING=1' \ 105 '-DENABLE_MANAGED_USERS=1' \ 106 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 107 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 108 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 109 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 110 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 111 '-DVIDEO_HOLE=1' \ 112 '-DPOSIX_AVOID_MMAP' \ 113 '-DWEBRTC_CHROMIUM_BUILD' \ 114 '-DWEBRTC_LINUX' \ 115 '-DWEBRTC_ANDROID' \ 116 '-DWEBRTC_ANDROID_OPENSLES' \ 117 '-DWEBRTC_POSIX' \ 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 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 136 $(LOCAL_PATH)/third_party/libjingle/overrides \ 137 $(LOCAL_PATH)/third_party/libjingle/source \ 138 $(LOCAL_PATH)/third_party/webrtc/overrides \ 139 $(LOCAL_PATH) \ 140 $(LOCAL_PATH)/testing/gtest/include \ 141 $(LOCAL_PATH)/third_party \ 142 $(LOCAL_PATH)/third_party/libyuv/include \ 143 $(LOCAL_PATH)/third_party/usrsctp \ 144 $(LOCAL_PATH)/third_party/webrtc \ 145 $(gyp_shared_intermediate_dir) \ 146 $(PWD)/external/expat/lib \ 147 $(LOCAL_PATH)/third_party/openssl/config/x64 \ 148 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 149 $(LOCAL_PATH)/third_party/webrtc/overrides \ 150 $(LOCAL_PATH)/third_party \ 151 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 152 $(PWD)/frameworks/wilhelm/include \ 153 $(PWD)/bionic \ 154 $(PWD)/external/stlport/stlport 155 156 157 # Flags passed to only C++ (and not C) files. 158 LOCAL_CPPFLAGS_Debug := \ 159 -fno-rtti \ 160 -fno-threadsafe-statics \ 161 -fvisibility-inlines-hidden \ 162 -Wno-deprecated \ 163 -Wno-non-virtual-dtor \ 164 -Wno-sign-promo \ 165 -Wno-non-virtual-dtor 166 167 168 LOCAL_FDO_SUPPORT_Debug := false 169 170 # Flags passed to both C and C++ files. 171 MY_CFLAGS_Release := \ 172 -fstack-protector \ 173 --param=ssp-buffer-size=4 \ 174 -fno-exceptions \ 175 -fno-strict-aliasing \ 176 -Wno-unused-parameter \ 177 -Wno-missing-field-initializers \ 178 -fvisibility=hidden \ 179 -pipe \ 180 -fPIC \ 181 -Wno-unused-local-typedefs \ 182 -Wno-format \ 183 -m64 \ 184 -march=x86-64 \ 185 -ffunction-sections \ 186 -funwind-tables \ 187 -g \ 188 -fstack-protector \ 189 -fno-short-enums \ 190 -finline-limit=64 \ 191 -Wa,--noexecstack \ 192 -U_FORTIFY_SOURCE \ 193 -Wno-extra \ 194 -Wno-ignored-qualifiers \ 195 -Wno-type-limits \ 196 -Wno-unused-but-set-variable \ 197 -Wno-address \ 198 -Wno-format-security \ 199 -Wno-return-type \ 200 -Wno-sequence-point \ 201 -Os \ 202 -fno-ident \ 203 -fdata-sections \ 204 -ffunction-sections \ 205 -fomit-frame-pointer \ 206 -funwind-tables 207 208 MY_DEFS_Release := \ 209 '-DEXPAT_RELATIVE_PATH' \ 210 '-DFEATURE_ENABLE_SSL' \ 211 '-DGTEST_RELATIVE_PATH' \ 212 '-DHAVE_SRTP' \ 213 '-DHAVE_WEBRTC_VIDEO' \ 214 '-DHAVE_WEBRTC_VOICE' \ 215 '-DLOGGING_INSIDE_LIBJINGLE' \ 216 '-DNO_MAIN_THREAD_WRAPPING' \ 217 '-DNO_SOUND_SYSTEM' \ 218 '-DSRTP_RELATIVE_PATH' \ 219 '-DUSE_WEBRTC_DEV_BRANCH' \ 220 '-DENABLE_EXTERNAL_AUTH' \ 221 '-DV8_DEPRECATION_WARNINGS' \ 222 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 223 '-D_FILE_OFFSET_BITS=64' \ 224 '-DNO_TCMALLOC' \ 225 '-DDISABLE_NACL' \ 226 '-DLIBPEERCONNECTION_LIB=1' \ 227 '-DSSL_USE_OPENSSL' \ 228 '-DHAVE_OPENSSL_SSL_H' \ 229 '-DPOSIX' \ 230 '-DCHROMIUM_BUILD' \ 231 '-DUSE_LIBJPEG_TURBO=1' \ 232 '-DENABLE_WEBRTC=1' \ 233 '-DUSE_PROPRIETARY_CODECS' \ 234 '-DENABLE_BROWSER_CDMS' \ 235 '-DENABLE_CONFIGURATION_POLICY' \ 236 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 237 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 238 '-DENABLE_EGLIMAGE=1' \ 239 '-DCLD_VERSION=1' \ 240 '-DENABLE_PRINTING=1' \ 241 '-DENABLE_MANAGED_USERS=1' \ 242 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 243 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 244 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 245 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 246 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 247 '-DVIDEO_HOLE=1' \ 248 '-DPOSIX_AVOID_MMAP' \ 249 '-DWEBRTC_CHROMIUM_BUILD' \ 250 '-DWEBRTC_LINUX' \ 251 '-DWEBRTC_ANDROID' \ 252 '-DWEBRTC_ANDROID_OPENSLES' \ 253 '-DWEBRTC_POSIX' \ 254 '-DFEATURE_ENABLE_VOICEMAIL' \ 255 '-DANDROID' \ 256 '-DUSE_OPENSSL=1' \ 257 '-DUSE_OPENSSL_CERTS=1' \ 258 '-D__GNU_SOURCE=1' \ 259 '-DUSE_STLPORT=1' \ 260 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 261 '-DCHROME_BUILD_ID=""' \ 262 '-DNDEBUG' \ 263 '-DNVALGRIND' \ 264 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 265 266 267 # Include paths placed before CFLAGS/CPPFLAGS 268 LOCAL_C_INCLUDES_Release := \ 269 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 270 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 271 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 272 $(LOCAL_PATH)/third_party/libjingle/overrides \ 273 $(LOCAL_PATH)/third_party/libjingle/source \ 274 $(LOCAL_PATH)/third_party/webrtc/overrides \ 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 $(LOCAL_PATH)/third_party/webrtc \ 281 $(gyp_shared_intermediate_dir) \ 282 $(PWD)/external/expat/lib \ 283 $(LOCAL_PATH)/third_party/openssl/config/x64 \ 284 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 285 $(LOCAL_PATH)/third_party/webrtc/overrides \ 286 $(LOCAL_PATH)/third_party \ 287 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 288 $(PWD)/frameworks/wilhelm/include \ 289 $(PWD)/bionic \ 290 $(PWD)/external/stlport/stlport 291 292 293 # Flags passed to only C++ (and not C) files. 294 LOCAL_CPPFLAGS_Release := \ 295 -fno-rtti \ 296 -fno-threadsafe-statics \ 297 -fvisibility-inlines-hidden \ 298 -Wno-deprecated \ 299 -Wno-non-virtual-dtor \ 300 -Wno-sign-promo \ 301 -Wno-non-virtual-dtor 302 303 304 LOCAL_FDO_SUPPORT_Release := false 305 306 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 307 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 308 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 309 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 310 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 311 ### Rules for final target. 312 313 LOCAL_LDFLAGS_Debug := \ 314 -Wl,-z,now \ 315 -Wl,-z,relro \ 316 -Wl,--fatal-warnings \ 317 -Wl,-z,noexecstack \ 318 -fPIC \ 319 -m64 \ 320 -fuse-ld=gold \ 321 -nostdlib \ 322 -Wl,--no-undefined \ 323 -Wl,--exclude-libs=ALL \ 324 -Wl,--warn-shared-textrel \ 325 -Wl,-O1 \ 326 -Wl,--as-needed 327 328 329 LOCAL_LDFLAGS_Release := \ 330 -Wl,-z,now \ 331 -Wl,-z,relro \ 332 -Wl,--fatal-warnings \ 333 -Wl,-z,noexecstack \ 334 -fPIC \ 335 -m64 \ 336 -fuse-ld=gold \ 337 -nostdlib \ 338 -Wl,--no-undefined \ 339 -Wl,--exclude-libs=ALL \ 340 -Wl,-O1 \ 341 -Wl,--as-needed \ 342 -Wl,--gc-sections \ 343 -Wl,--warn-shared-textrel 344 345 346 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 347 348 LOCAL_STATIC_LIBRARIES := 349 350 # Enable grouping to fix circular references 351 LOCAL_GROUP_STATIC_LIBRARIES := true 352 353 LOCAL_SHARED_LIBRARIES := \ 354 libstlport \ 355 libdl 356 357 # Add target alias to "gyp_all_modules" target. 358 .PHONY: gyp_all_modules 359 gyp_all_modules: third_party_libjingle_libpeerconnection_gyp 360 361 # Alias gyp target name. 362 .PHONY: libpeerconnection 363 libpeerconnection: third_party_libjingle_libpeerconnection_gyp 364 365 include $(BUILD_STATIC_LIBRARY) 366