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_libyuv_libyuv_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_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. 60 MY_CFLAGS_Debug := \ 61 --param=ssp-buffer-size=4 \ 62 -fno-strict-aliasing \ 63 -Wno-unused-parameter \ 64 -Wno-missing-field-initializers \ 65 -fvisibility=hidden \ 66 -pipe \ 67 -fPIC \ 68 -Wno-unused-local-typedefs \ 69 -Wno-format \ 70 -msse2 \ 71 -mfpmath=sse \ 72 -mmmx \ 73 -m32 \ 74 -ffunction-sections \ 75 -funwind-tables \ 76 -g \ 77 -fno-short-enums \ 78 -finline-limit=64 \ 79 -Wa,--noexecstack \ 80 -U_FORTIFY_SOURCE \ 81 -Wno-extra \ 82 -Wno-ignored-qualifiers \ 83 -Wno-type-limits \ 84 -Wno-unused-but-set-variable \ 85 -fno-stack-protector \ 86 -Wno-address \ 87 -Wno-format-security \ 88 -Wno-return-type \ 89 -Wno-sequence-point \ 90 -Os \ 91 -g \ 92 -gdwarf-4 \ 93 -fdata-sections \ 94 -ffunction-sections \ 95 -fomit-frame-pointer \ 96 -funwind-tables 97 98 MY_DEFS_Debug := \ 99 '-DV8_DEPRECATION_WARNINGS' \ 100 '-D_FILE_OFFSET_BITS=64' \ 101 '-DNO_TCMALLOC' \ 102 '-DDISABLE_NACL' \ 103 '-DCHROMIUM_BUILD' \ 104 '-DUSE_LIBJPEG_TURBO=1' \ 105 '-DENABLE_WEBRTC=1' \ 106 '-DUSE_PROPRIETARY_CODECS' \ 107 '-DENABLE_BROWSER_CDMS' \ 108 '-DENABLE_CONFIGURATION_POLICY' \ 109 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 110 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 111 '-DENABLE_EGLIMAGE=1' \ 112 '-DCLD_VERSION=1' \ 113 '-DENABLE_PRINTING=1' \ 114 '-DENABLE_MANAGED_USERS=1' \ 115 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 116 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 117 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 118 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 119 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 120 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 121 '-DVIDEO_HOLE=1' \ 122 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 123 '-DHAVE_JPEG' \ 124 '-DUSE_OPENSSL=1' \ 125 '-DUSE_OPENSSL_CERTS=1' \ 126 '-DANDROID' \ 127 '-D__GNU_SOURCE=1' \ 128 '-DUSE_STLPORT=1' \ 129 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 130 '-DCHROME_BUILD_ID=""' \ 131 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 132 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 133 '-D_DEBUG' 134 135 136 # Include paths placed before CFLAGS/CPPFLAGS 137 LOCAL_C_INCLUDES_Debug := \ 138 $(gyp_shared_intermediate_dir) \ 139 $(LOCAL_PATH)/third_party/libyuv/include \ 140 $(LOCAL_PATH)/third_party/libyuv \ 141 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 142 $(PWD)/frameworks/wilhelm/include \ 143 $(PWD)/bionic \ 144 $(PWD)/external/stlport/stlport 145 146 147 # Flags passed to only C++ (and not C) files. 148 LOCAL_CPPFLAGS_Debug := \ 149 -fno-exceptions \ 150 -fno-rtti \ 151 -fno-threadsafe-statics \ 152 -fvisibility-inlines-hidden \ 153 -Wno-deprecated \ 154 -std=gnu++11 \ 155 -Wno-narrowing \ 156 -Wno-literal-suffix \ 157 -Wno-non-virtual-dtor \ 158 -Wno-sign-promo \ 159 -Wno-non-virtual-dtor 160 161 162 # Flags passed to both C and C++ files. 163 MY_CFLAGS_Release := \ 164 --param=ssp-buffer-size=4 \ 165 -fno-strict-aliasing \ 166 -Wno-unused-parameter \ 167 -Wno-missing-field-initializers \ 168 -fvisibility=hidden \ 169 -pipe \ 170 -fPIC \ 171 -Wno-unused-local-typedefs \ 172 -Wno-format \ 173 -msse2 \ 174 -mfpmath=sse \ 175 -mmmx \ 176 -m32 \ 177 -ffunction-sections \ 178 -funwind-tables \ 179 -g \ 180 -fno-short-enums \ 181 -finline-limit=64 \ 182 -Wa,--noexecstack \ 183 -U_FORTIFY_SOURCE \ 184 -Wno-extra \ 185 -Wno-ignored-qualifiers \ 186 -Wno-type-limits \ 187 -Wno-unused-but-set-variable \ 188 -fno-stack-protector \ 189 -Wno-address \ 190 -Wno-format-security \ 191 -Wno-return-type \ 192 -Wno-sequence-point \ 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 '-D_FILE_OFFSET_BITS=64' \ 203 '-DNO_TCMALLOC' \ 204 '-DDISABLE_NACL' \ 205 '-DCHROMIUM_BUILD' \ 206 '-DUSE_LIBJPEG_TURBO=1' \ 207 '-DENABLE_WEBRTC=1' \ 208 '-DUSE_PROPRIETARY_CODECS' \ 209 '-DENABLE_BROWSER_CDMS' \ 210 '-DENABLE_CONFIGURATION_POLICY' \ 211 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 212 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 213 '-DENABLE_EGLIMAGE=1' \ 214 '-DCLD_VERSION=1' \ 215 '-DENABLE_PRINTING=1' \ 216 '-DENABLE_MANAGED_USERS=1' \ 217 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 218 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 219 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 225 '-DHAVE_JPEG' \ 226 '-DUSE_OPENSSL=1' \ 227 '-DUSE_OPENSSL_CERTS=1' \ 228 '-DANDROID' \ 229 '-D__GNU_SOURCE=1' \ 230 '-DUSE_STLPORT=1' \ 231 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 232 '-DCHROME_BUILD_ID=""' \ 233 '-DNDEBUG' \ 234 '-DNVALGRIND' \ 235 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 236 237 238 # Include paths placed before CFLAGS/CPPFLAGS 239 LOCAL_C_INCLUDES_Release := \ 240 $(gyp_shared_intermediate_dir) \ 241 $(LOCAL_PATH)/third_party/libyuv/include \ 242 $(LOCAL_PATH)/third_party/libyuv \ 243 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 244 $(PWD)/frameworks/wilhelm/include \ 245 $(PWD)/bionic \ 246 $(PWD)/external/stlport/stlport 247 248 249 # Flags passed to only C++ (and not C) files. 250 LOCAL_CPPFLAGS_Release := \ 251 -fno-exceptions \ 252 -fno-rtti \ 253 -fno-threadsafe-statics \ 254 -fvisibility-inlines-hidden \ 255 -Wno-deprecated \ 256 -std=gnu++11 \ 257 -Wno-narrowing \ 258 -Wno-literal-suffix \ 259 -Wno-non-virtual-dtor \ 260 -Wno-sign-promo \ 261 -Wno-non-virtual-dtor 262 263 264 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 265 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 266 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 267 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 268 ### Rules for final target. 269 270 LOCAL_SHARED_LIBRARIES := \ 271 libstlport \ 272 libdl 273 274 # Add target alias to "gyp_all_modules" target. 275 .PHONY: gyp_all_modules 276 gyp_all_modules: third_party_libyuv_libyuv_gyp 277 278 # Alias gyp target name. 279 .PHONY: libyuv 280 libyuv: third_party_libyuv_libyuv_gyp 281 282 include $(BUILD_STATIC_LIBRARY) 283