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