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 -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/common_audio/resampler/include \ 135 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 136 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 137 $(LOCAL_PATH)/third_party/webrtc/common_video/interface \ 138 $(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \ 139 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 140 $(PWD)/frameworks/wilhelm/include \ 141 $(PWD)/bionic \ 142 $(PWD)/external/stlport/stlport 143 144 145 # Flags passed to only C++ (and not C) files. 146 LOCAL_CPPFLAGS_Debug := \ 147 -fno-rtti \ 148 -fno-threadsafe-statics \ 149 -fvisibility-inlines-hidden \ 150 -Wsign-compare \ 151 -Wno-non-virtual-dtor \ 152 -Wno-sign-promo 153 154 155 LOCAL_FDO_SUPPORT_Debug := false 156 157 # Flags passed to both C and C++ files. 158 MY_CFLAGS_Release := \ 159 -fstack-protector \ 160 --param=ssp-buffer-size=4 \ 161 -Werror \ 162 -fno-exceptions \ 163 -fno-strict-aliasing \ 164 -Wall \ 165 -Wno-unused-parameter \ 166 -Wno-missing-field-initializers \ 167 -fvisibility=hidden \ 168 -pipe \ 169 -fPIC \ 170 -Wno-unused-local-typedefs \ 171 -fno-builtin-cos \ 172 -fno-builtin-sin \ 173 -fno-builtin-cosf \ 174 -fno-builtin-sinf \ 175 -fno-builtin-cos \ 176 -fno-builtin-sin \ 177 -fno-builtin-cosf \ 178 -fno-builtin-sinf \ 179 -m64 \ 180 -march=x86-64 \ 181 -ffunction-sections \ 182 -funwind-tables \ 183 -g \ 184 -fstack-protector \ 185 -fno-short-enums \ 186 -finline-limit=64 \ 187 -Wa,--noexecstack \ 188 -U_FORTIFY_SOURCE \ 189 -Wno-extra \ 190 -Wno-ignored-qualifiers \ 191 -Wno-type-limits \ 192 -Wno-unused-but-set-variable \ 193 -Os \ 194 -fno-ident \ 195 -fdata-sections \ 196 -ffunction-sections \ 197 -fomit-frame-pointer \ 198 -funwind-tables 199 200 MY_DEFS_Release := \ 201 '-DV8_DEPRECATION_WARNINGS' \ 202 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 203 '-D_FILE_OFFSET_BITS=64' \ 204 '-DNO_TCMALLOC' \ 205 '-DDISABLE_NACL' \ 206 '-DCHROMIUM_BUILD' \ 207 '-DUSE_LIBJPEG_TURBO=1' \ 208 '-DENABLE_WEBRTC=1' \ 209 '-DUSE_PROPRIETARY_CODECS' \ 210 '-DENABLE_BROWSER_CDMS' \ 211 '-DENABLE_CONFIGURATION_POLICY' \ 212 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 213 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 214 '-DENABLE_EGLIMAGE=1' \ 215 '-DCLD_VERSION=1' \ 216 '-DENABLE_PRINTING=1' \ 217 '-DENABLE_MANAGED_USERS=1' \ 218 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 219 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 220 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 221 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 222 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 223 '-DVIDEO_HOLE=1' \ 224 '-DWEBRTC_RESTRICT_LOGGING' \ 225 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 226 '-DWEBRTC_CHROMIUM_BUILD' \ 227 '-DLOGGING_INSIDE_WEBRTC' \ 228 '-DWEBRTC_POSIX' \ 229 '-DWEBRTC_LINUX' \ 230 '-DWEBRTC_ANDROID' \ 231 '-DWEBRTC_ANDROID_OPENSLES' \ 232 '-DUSE_OPENSSL=1' \ 233 '-DUSE_OPENSSL_CERTS=1' \ 234 '-D__STDC_CONSTANT_MACROS' \ 235 '-D__STDC_FORMAT_MACROS' \ 236 '-DANDROID' \ 237 '-D__GNU_SOURCE=1' \ 238 '-DUSE_STLPORT=1' \ 239 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 240 '-DCHROME_BUILD_ID=""' \ 241 '-DNDEBUG' \ 242 '-DNVALGRIND' \ 243 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 244 '-D_FORTIFY_SOURCE=2' 245 246 247 # Include paths placed before CFLAGS/CPPFLAGS 248 LOCAL_C_INCLUDES_Release := \ 249 $(gyp_shared_intermediate_dir) \ 250 $(LOCAL_PATH) \ 251 $(LOCAL_PATH)/third_party/webrtc/overrides \ 252 $(LOCAL_PATH)/third_party \ 253 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 254 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 255 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 256 $(LOCAL_PATH)/third_party/webrtc/common_video/interface \ 257 $(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \ 258 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 259 $(PWD)/frameworks/wilhelm/include \ 260 $(PWD)/bionic \ 261 $(PWD)/external/stlport/stlport 262 263 264 # Flags passed to only C++ (and not C) files. 265 LOCAL_CPPFLAGS_Release := \ 266 -fno-rtti \ 267 -fno-threadsafe-statics \ 268 -fvisibility-inlines-hidden \ 269 -Wsign-compare \ 270 -Wno-non-virtual-dtor \ 271 -Wno-sign-promo 272 273 274 LOCAL_FDO_SUPPORT_Release := false 275 276 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 277 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 278 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 279 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 280 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 281 ### Rules for final target. 282 283 LOCAL_LDFLAGS_Debug := \ 284 -Wl,-z,now \ 285 -Wl,-z,relro \ 286 -Wl,--fatal-warnings \ 287 -Wl,-z,noexecstack \ 288 -fPIC \ 289 -m64 \ 290 -fuse-ld=gold \ 291 -nostdlib \ 292 -Wl,--no-undefined \ 293 -Wl,--exclude-libs=ALL \ 294 -Wl,--warn-shared-textrel \ 295 -Wl,-O1 \ 296 -Wl,--as-needed 297 298 299 LOCAL_LDFLAGS_Release := \ 300 -Wl,-z,now \ 301 -Wl,-z,relro \ 302 -Wl,--fatal-warnings \ 303 -Wl,-z,noexecstack \ 304 -fPIC \ 305 -m64 \ 306 -fuse-ld=gold \ 307 -nostdlib \ 308 -Wl,--no-undefined \ 309 -Wl,--exclude-libs=ALL \ 310 -Wl,-O1 \ 311 -Wl,--as-needed \ 312 -Wl,--gc-sections \ 313 -Wl,--warn-shared-textrel 314 315 316 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 317 318 LOCAL_STATIC_LIBRARIES := 319 320 # Enable grouping to fix circular references 321 LOCAL_GROUP_STATIC_LIBRARIES := true 322 323 LOCAL_SHARED_LIBRARIES := \ 324 libstlport \ 325 libdl 326 327 # Add target alias to "gyp_all_modules" target. 328 .PHONY: gyp_all_modules 329 gyp_all_modules: third_party_webrtc_modules_video_processing_gyp 330 331 # Alias gyp target name. 332 .PHONY: video_processing 333 video_processing: third_party_webrtc_modules_video_processing_gyp 334 335 include $(BUILD_STATIC_LIBRARY) 336