1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_webrtc_modules_webrtc_utility_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/webrtc/modules/utility/source/audio_frame_operations.cc \ 28 third_party/webrtc/modules/utility/source/coder.cc \ 29 third_party/webrtc/modules/utility/source/file_player_impl.cc \ 30 third_party/webrtc/modules/utility/source/file_recorder_impl.cc \ 31 third_party/webrtc/modules/utility/source/helpers_android.cc \ 32 third_party/webrtc/modules/utility/source/process_thread_impl.cc \ 33 third_party/webrtc/modules/utility/source/rtp_dump_impl.cc \ 34 third_party/webrtc/modules/utility/source/frame_scaler.cc \ 35 third_party/webrtc/modules/utility/source/video_coder.cc \ 36 third_party/webrtc/modules/utility/source/video_frames_queue.cc 37 38 39# Flags passed to both C and C++ files. 40MY_CFLAGS_Debug := \ 41 -fstack-protector \ 42 --param=ssp-buffer-size=4 \ 43 \ 44 -fno-exceptions \ 45 -fno-strict-aliasing \ 46 -Wall \ 47 -Wno-unused-parameter \ 48 -Wno-missing-field-initializers \ 49 -fvisibility=hidden \ 50 -pipe \ 51 -fPIC \ 52 -Wno-unused-local-typedefs \ 53 -mhard-float \ 54 -fno-builtin-cos \ 55 -fno-builtin-sin \ 56 -fno-builtin-cosf \ 57 -fno-builtin-sinf \ 58 -mhard-float \ 59 -fno-builtin-cos \ 60 -fno-builtin-sin \ 61 -fno-builtin-cosf \ 62 -fno-builtin-sinf \ 63 -EL \ 64 -mhard-float \ 65 -ffunction-sections \ 66 -funwind-tables \ 67 -g \ 68 -fstack-protector \ 69 -fno-short-enums \ 70 -finline-limit=64 \ 71 -Wa,--noexecstack \ 72 -U_FORTIFY_SOURCE \ 73 -Wno-extra \ 74 -Wno-ignored-qualifiers \ 75 -Wno-type-limits \ 76 -Wno-unused-but-set-variable \ 77 -Os \ 78 -g \ 79 -fdata-sections \ 80 -ffunction-sections \ 81 -fomit-frame-pointer \ 82 -funwind-tables 83 84MY_DEFS_Debug := \ 85 '-DV8_DEPRECATION_WARNINGS' \ 86 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISABLE_NACL' \ 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="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 '-DWEBRTC_RESTRICT_LOGGING' \ 109 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 110 '-DWEBRTC_CHROMIUM_BUILD' \ 111 '-DLOGGING_INSIDE_WEBRTC' \ 112 '-DMIPS32_LE' \ 113 '-DMIPS_FPU_LE' \ 114 '-DWEBRTC_POSIX' \ 115 '-DWEBRTC_LINUX' \ 116 '-DWEBRTC_ANDROID' \ 117 '-DWEBRTC_ANDROID_OPENSLES' \ 118 '-DUSE_OPENSSL=1' \ 119 '-DUSE_OPENSSL_CERTS=1' \ 120 '-D__STDC_CONSTANT_MACROS' \ 121 '-D__STDC_FORMAT_MACROS' \ 122 '-DANDROID' \ 123 '-D__GNU_SOURCE=1' \ 124 '-DUSE_STLPORT=1' \ 125 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 126 '-DCHROME_BUILD_ID=""' \ 127 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 128 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 129 '-D_DEBUG' 130 131 132# Include paths placed before CFLAGS/CPPFLAGS 133LOCAL_C_INCLUDES_Debug := \ 134 $(gyp_shared_intermediate_dir) \ 135 $(LOCAL_PATH) \ 136 $(LOCAL_PATH)/third_party/webrtc/overrides \ 137 $(LOCAL_PATH)/third_party \ 138 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/main/interface \ 139 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 140 $(LOCAL_PATH)/third_party/webrtc \ 141 $(LOCAL_PATH)/third_party/webrtc/modules/media_file/interface \ 142 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 143 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 144 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 145 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 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. 152LOCAL_CPPFLAGS_Debug := \ 153 -fno-rtti \ 154 -fno-threadsafe-statics \ 155 -fvisibility-inlines-hidden \ 156 -Wsign-compare \ 157 -Wno-uninitialized \ 158 -Wno-non-virtual-dtor \ 159 -Wno-sign-promo 160 161 162LOCAL_FDO_SUPPORT_Debug := false 163 164# Flags passed to both C and C++ files. 165MY_CFLAGS_Release := \ 166 -fstack-protector \ 167 --param=ssp-buffer-size=4 \ 168 \ 169 -fno-exceptions \ 170 -fno-strict-aliasing \ 171 -Wall \ 172 -Wno-unused-parameter \ 173 -Wno-missing-field-initializers \ 174 -fvisibility=hidden \ 175 -pipe \ 176 -fPIC \ 177 -Wno-unused-local-typedefs \ 178 -mhard-float \ 179 -fno-builtin-cos \ 180 -fno-builtin-sin \ 181 -fno-builtin-cosf \ 182 -fno-builtin-sinf \ 183 -mhard-float \ 184 -fno-builtin-cos \ 185 -fno-builtin-sin \ 186 -fno-builtin-cosf \ 187 -fno-builtin-sinf \ 188 -EL \ 189 -mhard-float \ 190 -ffunction-sections \ 191 -funwind-tables \ 192 -g \ 193 -fstack-protector \ 194 -fno-short-enums \ 195 -finline-limit=64 \ 196 -Wa,--noexecstack \ 197 -U_FORTIFY_SOURCE \ 198 -Wno-extra \ 199 -Wno-ignored-qualifiers \ 200 -Wno-type-limits \ 201 -Wno-unused-but-set-variable \ 202 -Os \ 203 -fno-ident \ 204 -fdata-sections \ 205 -ffunction-sections \ 206 -fomit-frame-pointer \ 207 -funwind-tables 208 209MY_DEFS_Release := \ 210 '-DV8_DEPRECATION_WARNINGS' \ 211 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 212 '-D_FILE_OFFSET_BITS=64' \ 213 '-DNO_TCMALLOC' \ 214 '-DDISABLE_NACL' \ 215 '-DCHROMIUM_BUILD' \ 216 '-DUSE_LIBJPEG_TURBO=1' \ 217 '-DENABLE_WEBRTC=1' \ 218 '-DUSE_PROPRIETARY_CODECS' \ 219 '-DENABLE_BROWSER_CDMS' \ 220 '-DENABLE_CONFIGURATION_POLICY' \ 221 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 222 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 223 '-DENABLE_EGLIMAGE=1' \ 224 '-DCLD_VERSION=1' \ 225 '-DENABLE_PRINTING=1' \ 226 '-DENABLE_MANAGED_USERS=1' \ 227 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 228 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 229 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 230 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 231 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 232 '-DVIDEO_HOLE=1' \ 233 '-DWEBRTC_RESTRICT_LOGGING' \ 234 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 235 '-DWEBRTC_CHROMIUM_BUILD' \ 236 '-DLOGGING_INSIDE_WEBRTC' \ 237 '-DMIPS32_LE' \ 238 '-DMIPS_FPU_LE' \ 239 '-DWEBRTC_POSIX' \ 240 '-DWEBRTC_LINUX' \ 241 '-DWEBRTC_ANDROID' \ 242 '-DWEBRTC_ANDROID_OPENSLES' \ 243 '-DUSE_OPENSSL=1' \ 244 '-DUSE_OPENSSL_CERTS=1' \ 245 '-D__STDC_CONSTANT_MACROS' \ 246 '-D__STDC_FORMAT_MACROS' \ 247 '-DANDROID' \ 248 '-D__GNU_SOURCE=1' \ 249 '-DUSE_STLPORT=1' \ 250 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 251 '-DCHROME_BUILD_ID=""' \ 252 '-DNDEBUG' \ 253 '-DNVALGRIND' \ 254 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 255 '-D_FORTIFY_SOURCE=2' 256 257 258# Include paths placed before CFLAGS/CPPFLAGS 259LOCAL_C_INCLUDES_Release := \ 260 $(gyp_shared_intermediate_dir) \ 261 $(LOCAL_PATH) \ 262 $(LOCAL_PATH)/third_party/webrtc/overrides \ 263 $(LOCAL_PATH)/third_party \ 264 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/main/interface \ 265 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 266 $(LOCAL_PATH)/third_party/webrtc \ 267 $(LOCAL_PATH)/third_party/webrtc/modules/media_file/interface \ 268 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 269 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 270 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 271 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 272 $(PWD)/frameworks/wilhelm/include \ 273 $(PWD)/bionic \ 274 $(PWD)/external/stlport/stlport 275 276 277# Flags passed to only C++ (and not C) files. 278LOCAL_CPPFLAGS_Release := \ 279 -fno-rtti \ 280 -fno-threadsafe-statics \ 281 -fvisibility-inlines-hidden \ 282 -Wsign-compare \ 283 -Wno-uninitialized \ 284 -Wno-non-virtual-dtor \ 285 -Wno-sign-promo 286 287 288LOCAL_FDO_SUPPORT_Release := false 289 290LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 291LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 292LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 293LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 294LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 295### Rules for final target. 296 297LOCAL_LDFLAGS_Debug := \ 298 -Wl,-z,now \ 299 -Wl,-z,relro \ 300 -Wl,--fatal-warnings \ 301 -Wl,-z,noexecstack \ 302 -fPIC \ 303 -EL \ 304 -Wl,--no-keep-memory \ 305 -nostdlib \ 306 -Wl,--no-undefined \ 307 -Wl,--exclude-libs=ALL \ 308 -Wl,--warn-shared-textrel \ 309 -Wl,-O1 \ 310 -Wl,--as-needed 311 312 313LOCAL_LDFLAGS_Release := \ 314 -Wl,-z,now \ 315 -Wl,-z,relro \ 316 -Wl,--fatal-warnings \ 317 -Wl,-z,noexecstack \ 318 -fPIC \ 319 -EL \ 320 -Wl,--no-keep-memory \ 321 -nostdlib \ 322 -Wl,--no-undefined \ 323 -Wl,--exclude-libs=ALL \ 324 -Wl,-O1 \ 325 -Wl,--as-needed \ 326 -Wl,--gc-sections \ 327 -Wl,--warn-shared-textrel 328 329 330LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 331 332LOCAL_STATIC_LIBRARIES := 333 334# Enable grouping to fix circular references 335LOCAL_GROUP_STATIC_LIBRARIES := true 336 337LOCAL_SHARED_LIBRARIES := \ 338 libstlport \ 339 libdl 340 341# Add target alias to "gyp_all_modules" target. 342.PHONY: gyp_all_modules 343gyp_all_modules: third_party_webrtc_modules_webrtc_utility_gyp 344 345# Alias gyp target name. 346.PHONY: webrtc_utility 347webrtc_utility: third_party_webrtc_modules_webrtc_utility_gyp 348 349include $(BUILD_STATIC_LIBRARY) 350