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