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_coding_utility_video_coding_utility_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_coding/utility/frame_dropper.cc \ 27 third_party/webrtc/modules/video_coding/utility/quality_scaler.cc 28 29 30# Flags passed to both C and C++ files. 31MY_CFLAGS_Debug := \ 32 --param=ssp-buffer-size=4 \ 33 -Werror \ 34 -fno-strict-aliasing \ 35 -Wall \ 36 -Wno-unused-parameter \ 37 -Wno-missing-field-initializers \ 38 -fvisibility=hidden \ 39 -pipe \ 40 -fPIC \ 41 -Wno-unused-local-typedefs \ 42 -fno-builtin-cos \ 43 -fno-builtin-sin \ 44 -fno-builtin-cosf \ 45 -fno-builtin-sinf \ 46 -msse2 \ 47 -mfpmath=sse \ 48 -mmmx \ 49 -m32 \ 50 -ffunction-sections \ 51 -funwind-tables \ 52 -g \ 53 -fno-short-enums \ 54 -finline-limit=64 \ 55 -Wa,--noexecstack \ 56 -U_FORTIFY_SOURCE \ 57 -Wno-extra \ 58 -Wno-ignored-qualifiers \ 59 -Wno-type-limits \ 60 -Wno-unused-but-set-variable \ 61 -fno-stack-protector \ 62 -Os \ 63 -g \ 64 -gdwarf-4 \ 65 -fdata-sections \ 66 -ffunction-sections \ 67 -fomit-frame-pointer \ 68 -funwind-tables 69 70MY_DEFS_Debug := \ 71 '-DV8_DEPRECATION_WARNINGS' \ 72 '-D_FILE_OFFSET_BITS=64' \ 73 '-DNO_TCMALLOC' \ 74 '-DDISABLE_NACL' \ 75 '-DCHROMIUM_BUILD' \ 76 '-DUSE_LIBJPEG_TURBO=1' \ 77 '-DENABLE_WEBRTC=1' \ 78 '-DUSE_PROPRIETARY_CODECS' \ 79 '-DENABLE_BROWSER_CDMS' \ 80 '-DENABLE_CONFIGURATION_POLICY' \ 81 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 82 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 83 '-DENABLE_EGLIMAGE=1' \ 84 '-DCLD_VERSION=1' \ 85 '-DENABLE_PRINTING=1' \ 86 '-DENABLE_MANAGED_USERS=1' \ 87 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 88 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 89 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 90 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 91 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 92 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 93 '-DVIDEO_HOLE=1' \ 94 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 95 '-DWEBRTC_RESTRICT_LOGGING' \ 96 '-DEXPAT_RELATIVE_PATH' \ 97 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 98 '-DWEBRTC_CHROMIUM_BUILD' \ 99 '-DLOGGING_INSIDE_WEBRTC' \ 100 '-DWEBRTC_POSIX' \ 101 '-DWEBRTC_LINUX' \ 102 '-DWEBRTC_ANDROID' \ 103 '-DWEBRTC_ANDROID_OPENSLES' \ 104 '-DUSE_OPENSSL=1' \ 105 '-DUSE_OPENSSL_CERTS=1' \ 106 '-D__STDC_CONSTANT_MACROS' \ 107 '-D__STDC_FORMAT_MACROS' \ 108 '-DANDROID' \ 109 '-D__GNU_SOURCE=1' \ 110 '-DUSE_STLPORT=1' \ 111 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 112 '-DCHROME_BUILD_ID=""' \ 113 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 114 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 115 '-D_DEBUG' 116 117 118# Include paths placed before CFLAGS/CPPFLAGS 119LOCAL_C_INCLUDES_Debug := \ 120 $(gyp_shared_intermediate_dir) \ 121 $(LOCAL_PATH) \ 122 $(LOCAL_PATH)/third_party/webrtc/overrides \ 123 $(LOCAL_PATH)/third_party \ 124 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 125 $(PWD)/frameworks/wilhelm/include \ 126 $(PWD)/bionic \ 127 $(PWD)/external/stlport/stlport 128 129 130# Flags passed to only C++ (and not C) files. 131LOCAL_CPPFLAGS_Debug := \ 132 -fno-exceptions \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wsign-compare \ 137 -std=gnu++11 \ 138 -Wno-narrowing \ 139 -Wno-literal-suffix \ 140 -Wno-non-virtual-dtor \ 141 -Wno-sign-promo 142 143 144# Flags passed to both C and C++ files. 145MY_CFLAGS_Release := \ 146 --param=ssp-buffer-size=4 \ 147 -Werror \ 148 -fno-strict-aliasing \ 149 -Wall \ 150 -Wno-unused-parameter \ 151 -Wno-missing-field-initializers \ 152 -fvisibility=hidden \ 153 -pipe \ 154 -fPIC \ 155 -Wno-unused-local-typedefs \ 156 -fno-builtin-cos \ 157 -fno-builtin-sin \ 158 -fno-builtin-cosf \ 159 -fno-builtin-sinf \ 160 -msse2 \ 161 -mfpmath=sse \ 162 -mmmx \ 163 -m32 \ 164 -ffunction-sections \ 165 -funwind-tables \ 166 -g \ 167 -fno-short-enums \ 168 -finline-limit=64 \ 169 -Wa,--noexecstack \ 170 -U_FORTIFY_SOURCE \ 171 -Wno-extra \ 172 -Wno-ignored-qualifiers \ 173 -Wno-type-limits \ 174 -Wno-unused-but-set-variable \ 175 -fno-stack-protector \ 176 -Os \ 177 -fno-ident \ 178 -fdata-sections \ 179 -ffunction-sections \ 180 -fomit-frame-pointer \ 181 -funwind-tables 182 183MY_DEFS_Release := \ 184 '-DV8_DEPRECATION_WARNINGS' \ 185 '-D_FILE_OFFSET_BITS=64' \ 186 '-DNO_TCMALLOC' \ 187 '-DDISABLE_NACL' \ 188 '-DCHROMIUM_BUILD' \ 189 '-DUSE_LIBJPEG_TURBO=1' \ 190 '-DENABLE_WEBRTC=1' \ 191 '-DUSE_PROPRIETARY_CODECS' \ 192 '-DENABLE_BROWSER_CDMS' \ 193 '-DENABLE_CONFIGURATION_POLICY' \ 194 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 195 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 196 '-DENABLE_EGLIMAGE=1' \ 197 '-DCLD_VERSION=1' \ 198 '-DENABLE_PRINTING=1' \ 199 '-DENABLE_MANAGED_USERS=1' \ 200 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 201 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 202 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 203 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 204 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 205 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 206 '-DVIDEO_HOLE=1' \ 207 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 208 '-DWEBRTC_RESTRICT_LOGGING' \ 209 '-DEXPAT_RELATIVE_PATH' \ 210 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 211 '-DWEBRTC_CHROMIUM_BUILD' \ 212 '-DLOGGING_INSIDE_WEBRTC' \ 213 '-DWEBRTC_POSIX' \ 214 '-DWEBRTC_LINUX' \ 215 '-DWEBRTC_ANDROID' \ 216 '-DWEBRTC_ANDROID_OPENSLES' \ 217 '-DUSE_OPENSSL=1' \ 218 '-DUSE_OPENSSL_CERTS=1' \ 219 '-D__STDC_CONSTANT_MACROS' \ 220 '-D__STDC_FORMAT_MACROS' \ 221 '-DANDROID' \ 222 '-D__GNU_SOURCE=1' \ 223 '-DUSE_STLPORT=1' \ 224 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 225 '-DCHROME_BUILD_ID=""' \ 226 '-DNDEBUG' \ 227 '-DNVALGRIND' \ 228 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 229 '-D_FORTIFY_SOURCE=2' 230 231 232# Include paths placed before CFLAGS/CPPFLAGS 233LOCAL_C_INCLUDES_Release := \ 234 $(gyp_shared_intermediate_dir) \ 235 $(LOCAL_PATH) \ 236 $(LOCAL_PATH)/third_party/webrtc/overrides \ 237 $(LOCAL_PATH)/third_party \ 238 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 239 $(PWD)/frameworks/wilhelm/include \ 240 $(PWD)/bionic \ 241 $(PWD)/external/stlport/stlport 242 243 244# Flags passed to only C++ (and not C) files. 245LOCAL_CPPFLAGS_Release := \ 246 -fno-exceptions \ 247 -fno-rtti \ 248 -fno-threadsafe-statics \ 249 -fvisibility-inlines-hidden \ 250 -Wsign-compare \ 251 -std=gnu++11 \ 252 -Wno-narrowing \ 253 -Wno-literal-suffix \ 254 -Wno-non-virtual-dtor \ 255 -Wno-sign-promo 256 257 258LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 259LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 260LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 261LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 262### Rules for final target. 263 264LOCAL_SHARED_LIBRARIES := \ 265 libstlport \ 266 libdl 267 268# Add target alias to "gyp_all_modules" target. 269.PHONY: gyp_all_modules 270gyp_all_modules: third_party_webrtc_modules_video_coding_utility_video_coding_utility_gyp 271 272# Alias gyp target name. 273.PHONY: video_coding_utility 274video_coding_utility: third_party_webrtc_modules_video_coding_utility_video_coding_utility_gyp 275 276include $(BUILD_STATIC_LIBRARY) 277