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_video_processing_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/video_processing/main/source/brighten.cc \ 28 third_party/webrtc/modules/video_processing/main/source/brightness_detection.cc \ 29 third_party/webrtc/modules/video_processing/main/source/color_enhancement.cc \ 30 third_party/webrtc/modules/video_processing/main/source/content_analysis.cc \ 31 third_party/webrtc/modules/video_processing/main/source/deflickering.cc \ 32 third_party/webrtc/modules/video_processing/main/source/denoising.cc \ 33 third_party/webrtc/modules/video_processing/main/source/frame_preprocessor.cc \ 34 third_party/webrtc/modules/video_processing/main/source/spatial_resampler.cc \ 35 third_party/webrtc/modules/video_processing/main/source/video_decimator.cc \ 36 third_party/webrtc/modules/video_processing/main/source/video_processing_impl.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 -fno-tree-sra \ 62 -fno-partial-inlining \ 63 -fno-early-inlining \ 64 -fno-tree-copy-prop \ 65 -fno-tree-loop-optimize \ 66 -fno-move-loop-invariants \ 67 -fno-caller-saves \ 68 -Wno-psabi \ 69 -ffunction-sections \ 70 -funwind-tables \ 71 -g \ 72 -fstack-protector \ 73 -fno-short-enums \ 74 -finline-limit=64 \ 75 -Wa,--noexecstack \ 76 -U_FORTIFY_SOURCE \ 77 -Wno-extra \ 78 -Wno-ignored-qualifiers \ 79 -Wno-type-limits \ 80 -Wno-unused-but-set-variable \ 81 -Os \ 82 -g \ 83 -fdata-sections \ 84 -ffunction-sections \ 85 -fomit-frame-pointer \ 86 -funwind-tables 87 88 MY_DEFS_Debug := \ 89 '-DV8_DEPRECATION_WARNINGS' \ 90 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 91 '-D_FILE_OFFSET_BITS=64' \ 92 '-DNO_TCMALLOC' \ 93 '-DDISABLE_NACL' \ 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 '-DWEBRTC_RESTRICT_LOGGING' \ 113 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 114 '-DWEBRTC_CHROMIUM_BUILD' \ 115 '-DLOGGING_INSIDE_WEBRTC' \ 116 '-DWEBRTC_ARCH_ARM' \ 117 '-DWEBRTC_ARCH_ARM_V7' \ 118 '-DWEBRTC_DETECT_ARM_NEON' \ 119 '-DWEBRTC_POSIX' \ 120 '-DWEBRTC_LINUX' \ 121 '-DWEBRTC_ANDROID' \ 122 '-DWEBRTC_ANDROID_OPENSLES' \ 123 '-DUSE_OPENSSL=1' \ 124 '-DUSE_OPENSSL_CERTS=1' \ 125 '-D__STDC_CONSTANT_MACROS' \ 126 '-D__STDC_FORMAT_MACROS' \ 127 '-DANDROID' \ 128 '-D__GNU_SOURCE=1' \ 129 '-DUSE_STLPORT=1' \ 130 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 131 '-DCHROME_BUILD_ID=""' \ 132 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 133 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 134 '-D_DEBUG' 135 136 137 # Include paths placed before CFLAGS/CPPFLAGS 138 LOCAL_C_INCLUDES_Debug := \ 139 $(gyp_shared_intermediate_dir) \ 140 $(LOCAL_PATH) \ 141 $(LOCAL_PATH)/third_party/webrtc/overrides \ 142 $(LOCAL_PATH)/third_party \ 143 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 144 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 145 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 146 $(LOCAL_PATH)/third_party/webrtc/common_video/interface \ 147 $(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \ 148 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 149 $(PWD)/frameworks/wilhelm/include \ 150 $(PWD)/bionic \ 151 $(PWD)/external/stlport/stlport 152 153 154 # Flags passed to only C++ (and not C) files. 155 LOCAL_CPPFLAGS_Debug := \ 156 -fno-rtti \ 157 -fno-threadsafe-statics \ 158 -fvisibility-inlines-hidden \ 159 -Wsign-compare \ 160 -Wno-abi \ 161 -Wno-non-virtual-dtor \ 162 -Wno-sign-promo 163 164 165 LOCAL_FDO_SUPPORT_Debug := false 166 167 # Flags passed to both C and C++ files. 168 MY_CFLAGS_Release := \ 169 -fstack-protector \ 170 --param=ssp-buffer-size=4 \ 171 -Werror \ 172 -fno-exceptions \ 173 -fno-strict-aliasing \ 174 -Wall \ 175 -Wno-unused-parameter \ 176 -Wno-missing-field-initializers \ 177 -fvisibility=hidden \ 178 -pipe \ 179 -fPIC \ 180 -Wno-unused-local-typedefs \ 181 -fno-builtin-cos \ 182 -fno-builtin-sin \ 183 -fno-builtin-cosf \ 184 -fno-builtin-sinf \ 185 -fno-builtin-cos \ 186 -fno-builtin-sin \ 187 -fno-builtin-cosf \ 188 -fno-builtin-sinf \ 189 -fno-tree-sra \ 190 -fno-partial-inlining \ 191 -fno-early-inlining \ 192 -fno-tree-copy-prop \ 193 -fno-tree-loop-optimize \ 194 -fno-move-loop-invariants \ 195 -fno-caller-saves \ 196 -Wno-psabi \ 197 -ffunction-sections \ 198 -funwind-tables \ 199 -g \ 200 -fstack-protector \ 201 -fno-short-enums \ 202 -finline-limit=64 \ 203 -Wa,--noexecstack \ 204 -U_FORTIFY_SOURCE \ 205 -Wno-extra \ 206 -Wno-ignored-qualifiers \ 207 -Wno-type-limits \ 208 -Wno-unused-but-set-variable \ 209 -Os \ 210 -fno-ident \ 211 -fdata-sections \ 212 -ffunction-sections \ 213 -fomit-frame-pointer \ 214 -funwind-tables 215 216 MY_DEFS_Release := \ 217 '-DV8_DEPRECATION_WARNINGS' \ 218 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 219 '-D_FILE_OFFSET_BITS=64' \ 220 '-DNO_TCMALLOC' \ 221 '-DDISABLE_NACL' \ 222 '-DCHROMIUM_BUILD' \ 223 '-DUSE_LIBJPEG_TURBO=1' \ 224 '-DENABLE_WEBRTC=1' \ 225 '-DUSE_PROPRIETARY_CODECS' \ 226 '-DENABLE_BROWSER_CDMS' \ 227 '-DENABLE_CONFIGURATION_POLICY' \ 228 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 229 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 230 '-DENABLE_EGLIMAGE=1' \ 231 '-DCLD_VERSION=1' \ 232 '-DENABLE_PRINTING=1' \ 233 '-DENABLE_MANAGED_USERS=1' \ 234 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 235 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 236 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 237 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 238 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 239 '-DVIDEO_HOLE=1' \ 240 '-DWEBRTC_RESTRICT_LOGGING' \ 241 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 242 '-DWEBRTC_CHROMIUM_BUILD' \ 243 '-DLOGGING_INSIDE_WEBRTC' \ 244 '-DWEBRTC_ARCH_ARM' \ 245 '-DWEBRTC_ARCH_ARM_V7' \ 246 '-DWEBRTC_DETECT_ARM_NEON' \ 247 '-DWEBRTC_POSIX' \ 248 '-DWEBRTC_LINUX' \ 249 '-DWEBRTC_ANDROID' \ 250 '-DWEBRTC_ANDROID_OPENSLES' \ 251 '-DUSE_OPENSSL=1' \ 252 '-DUSE_OPENSSL_CERTS=1' \ 253 '-D__STDC_CONSTANT_MACROS' \ 254 '-D__STDC_FORMAT_MACROS' \ 255 '-DANDROID' \ 256 '-D__GNU_SOURCE=1' \ 257 '-DUSE_STLPORT=1' \ 258 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 259 '-DCHROME_BUILD_ID=""' \ 260 '-DNDEBUG' \ 261 '-DNVALGRIND' \ 262 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 263 '-D_FORTIFY_SOURCE=2' 264 265 266 # Include paths placed before CFLAGS/CPPFLAGS 267 LOCAL_C_INCLUDES_Release := \ 268 $(gyp_shared_intermediate_dir) \ 269 $(LOCAL_PATH) \ 270 $(LOCAL_PATH)/third_party/webrtc/overrides \ 271 $(LOCAL_PATH)/third_party \ 272 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 273 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 274 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 275 $(LOCAL_PATH)/third_party/webrtc/common_video/interface \ 276 $(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \ 277 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 278 $(PWD)/frameworks/wilhelm/include \ 279 $(PWD)/bionic \ 280 $(PWD)/external/stlport/stlport 281 282 283 # Flags passed to only C++ (and not C) files. 284 LOCAL_CPPFLAGS_Release := \ 285 -fno-rtti \ 286 -fno-threadsafe-statics \ 287 -fvisibility-inlines-hidden \ 288 -Wsign-compare \ 289 -Wno-abi \ 290 -Wno-non-virtual-dtor \ 291 -Wno-sign-promo 292 293 294 LOCAL_FDO_SUPPORT_Release := false 295 296 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 297 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 298 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 299 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 300 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 301 ### Rules for final target. 302 303 LOCAL_LDFLAGS_Debug := \ 304 -Wl,-z,now \ 305 -Wl,-z,relro \ 306 -Wl,--fatal-warnings \ 307 -Wl,-z,noexecstack \ 308 -fPIC \ 309 -Wl,-z,relro \ 310 -Wl,-z,now \ 311 -fuse-ld=gold \ 312 -nostdlib \ 313 -Wl,--no-undefined \ 314 -Wl,--exclude-libs=ALL \ 315 -Wl,--icf=safe \ 316 -Wl,--warn-shared-textrel \ 317 -Wl,-O1 \ 318 -Wl,--as-needed 319 320 321 LOCAL_LDFLAGS_Release := \ 322 -Wl,-z,now \ 323 -Wl,-z,relro \ 324 -Wl,--fatal-warnings \ 325 -Wl,-z,noexecstack \ 326 -fPIC \ 327 -Wl,-z,relro \ 328 -Wl,-z,now \ 329 -fuse-ld=gold \ 330 -nostdlib \ 331 -Wl,--no-undefined \ 332 -Wl,--exclude-libs=ALL \ 333 -Wl,--icf=safe \ 334 -Wl,-O1 \ 335 -Wl,--as-needed \ 336 -Wl,--gc-sections \ 337 -Wl,--warn-shared-textrel 338 339 340 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 341 342 LOCAL_STATIC_LIBRARIES := 343 344 # Enable grouping to fix circular references 345 LOCAL_GROUP_STATIC_LIBRARIES := true 346 347 LOCAL_SHARED_LIBRARIES := \ 348 libstlport \ 349 libdl 350 351 # Add target alias to "gyp_all_modules" target. 352 .PHONY: gyp_all_modules 353 gyp_all_modules: third_party_webrtc_modules_video_processing_gyp 354 355 # Alias gyp target name. 356 .PHONY: video_processing 357 video_processing: third_party_webrtc_modules_video_processing_gyp 358 359 include $(BUILD_STATIC_LIBRARY) 360