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_video_processing_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_CPP_EXTENSION := .cc 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 third_party/webrtc/modules/video_processing/main/source/brighten.cc \ 27 third_party/webrtc/modules/video_processing/main/source/brightness_detection.cc \ 28 third_party/webrtc/modules/video_processing/main/source/color_enhancement.cc \ 29 third_party/webrtc/modules/video_processing/main/source/content_analysis.cc \ 30 third_party/webrtc/modules/video_processing/main/source/deflickering.cc \ 31 third_party/webrtc/modules/video_processing/main/source/frame_preprocessor.cc \ 32 third_party/webrtc/modules/video_processing/main/source/spatial_resampler.cc \ 33 third_party/webrtc/modules/video_processing/main/source/video_decimator.cc \ 34 third_party/webrtc/modules/video_processing/main/source/video_processing_impl.cc 35 36 37# Flags passed to both C and C++ files. 38MY_CFLAGS_Debug := \ 39 -fstack-protector \ 40 --param=ssp-buffer-size=4 \ 41 \ 42 -fno-strict-aliasing \ 43 -Wall \ 44 -Wno-unused-parameter \ 45 -Wno-missing-field-initializers \ 46 -fvisibility=hidden \ 47 -pipe \ 48 -fPIC \ 49 -Wno-unused-local-typedefs \ 50 -fno-builtin-cos \ 51 -fno-builtin-sin \ 52 -fno-builtin-cosf \ 53 -fno-builtin-sinf \ 54 -fno-builtin-cos \ 55 -fno-builtin-sin \ 56 -fno-builtin-cosf \ 57 -fno-builtin-sinf \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Wno-unused-but-set-variable \ 70 -Os \ 71 -g \ 72 -gdwarf-4 \ 73 -fdata-sections \ 74 -ffunction-sections \ 75 -fomit-frame-pointer \ 76 -funwind-tables 77 78MY_DEFS_Debug := \ 79 '-DV8_DEPRECATION_WARNINGS' \ 80 '-D_FILE_OFFSET_BITS=64' \ 81 '-DNO_TCMALLOC' \ 82 '-DDISABLE_NACL' \ 83 '-DCHROMIUM_BUILD' \ 84 '-DUSE_LIBJPEG_TURBO=1' \ 85 '-DENABLE_WEBRTC=1' \ 86 '-DUSE_PROPRIETARY_CODECS' \ 87 '-DENABLE_BROWSER_CDMS' \ 88 '-DENABLE_CONFIGURATION_POLICY' \ 89 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 90 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 91 '-DENABLE_EGLIMAGE=1' \ 92 '-DCLD_VERSION=1' \ 93 '-DENABLE_PRINTING=1' \ 94 '-DENABLE_MANAGED_USERS=1' \ 95 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 96 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 97 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 98 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 99 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 100 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 101 '-DVIDEO_HOLE=1' \ 102 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 103 '-DWEBRTC_RESTRICT_LOGGING' \ 104 '-DEXPAT_RELATIVE_PATH' \ 105 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 106 '-DWEBRTC_CHROMIUM_BUILD' \ 107 '-DLOGGING_INSIDE_WEBRTC' \ 108 '-DWEBRTC_POSIX' \ 109 '-DWEBRTC_LINUX' \ 110 '-DWEBRTC_ANDROID' \ 111 '-DWEBRTC_ANDROID_OPENSLES' \ 112 '-DUSE_OPENSSL=1' \ 113 '-DUSE_OPENSSL_CERTS=1' \ 114 '-D__STDC_CONSTANT_MACROS' \ 115 '-D__STDC_FORMAT_MACROS' \ 116 '-DANDROID' \ 117 '-D__GNU_SOURCE=1' \ 118 '-DUSE_STLPORT=1' \ 119 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 120 '-DCHROME_BUILD_ID=""' \ 121 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 122 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 123 '-D_DEBUG' 124 125 126# Include paths placed before CFLAGS/CPPFLAGS 127LOCAL_C_INCLUDES_Debug := \ 128 $(gyp_shared_intermediate_dir) \ 129 $(LOCAL_PATH) \ 130 $(LOCAL_PATH)/third_party/webrtc/overrides \ 131 $(LOCAL_PATH)/third_party \ 132 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 133 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 134 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 135 $(LOCAL_PATH)/third_party/webrtc/common_video/interface \ 136 $(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \ 137 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 138 $(PWD)/frameworks/wilhelm/include \ 139 $(PWD)/bionic \ 140 $(PWD)/external/stlport/stlport 141 142 143# Flags passed to only C++ (and not C) files. 144LOCAL_CPPFLAGS_Debug := \ 145 -fno-exceptions \ 146 -fno-rtti \ 147 -fno-threadsafe-statics \ 148 -fvisibility-inlines-hidden \ 149 -Wsign-compare \ 150 -Wno-uninitialized \ 151 -std=gnu++11 \ 152 -Wno-narrowing \ 153 -Wno-literal-suffix \ 154 -Wno-non-virtual-dtor \ 155 -Wno-sign-promo 156 157 158# Flags passed to both C and C++ files. 159MY_CFLAGS_Release := \ 160 -fstack-protector \ 161 --param=ssp-buffer-size=4 \ 162 \ 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 -ffunction-sections \ 180 -funwind-tables \ 181 -g \ 182 -fstack-protector \ 183 -fno-short-enums \ 184 -finline-limit=64 \ 185 -Wa,--noexecstack \ 186 -U_FORTIFY_SOURCE \ 187 -Wno-extra \ 188 -Wno-ignored-qualifiers \ 189 -Wno-type-limits \ 190 -Wno-unused-but-set-variable \ 191 -Os \ 192 -fno-ident \ 193 -fdata-sections \ 194 -ffunction-sections \ 195 -fomit-frame-pointer \ 196 -funwind-tables 197 198MY_DEFS_Release := \ 199 '-DV8_DEPRECATION_WARNINGS' \ 200 '-D_FILE_OFFSET_BITS=64' \ 201 '-DNO_TCMALLOC' \ 202 '-DDISABLE_NACL' \ 203 '-DCHROMIUM_BUILD' \ 204 '-DUSE_LIBJPEG_TURBO=1' \ 205 '-DENABLE_WEBRTC=1' \ 206 '-DUSE_PROPRIETARY_CODECS' \ 207 '-DENABLE_BROWSER_CDMS' \ 208 '-DENABLE_CONFIGURATION_POLICY' \ 209 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 210 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 211 '-DENABLE_EGLIMAGE=1' \ 212 '-DCLD_VERSION=1' \ 213 '-DENABLE_PRINTING=1' \ 214 '-DENABLE_MANAGED_USERS=1' \ 215 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 216 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 217 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 218 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 219 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 220 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 221 '-DVIDEO_HOLE=1' \ 222 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 223 '-DWEBRTC_RESTRICT_LOGGING' \ 224 '-DEXPAT_RELATIVE_PATH' \ 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 248LOCAL_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. 265LOCAL_CPPFLAGS_Release := \ 266 -fno-exceptions \ 267 -fno-rtti \ 268 -fno-threadsafe-statics \ 269 -fvisibility-inlines-hidden \ 270 -Wsign-compare \ 271 -Wno-uninitialized \ 272 -std=gnu++11 \ 273 -Wno-narrowing \ 274 -Wno-literal-suffix \ 275 -Wno-non-virtual-dtor \ 276 -Wno-sign-promo 277 278 279LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 280LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 281LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 282LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 283### Rules for final target. 284 285LOCAL_SHARED_LIBRARIES := \ 286 libstlport \ 287 libdl 288 289# Add target alias to "gyp_all_modules" target. 290.PHONY: gyp_all_modules 291gyp_all_modules: third_party_webrtc_modules_video_processing_gyp 292 293# Alias gyp target name. 294.PHONY: video_processing 295video_processing: third_party_webrtc_modules_video_processing_gyp 296 297include $(BUILD_STATIC_LIBRARY) 298