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 -fstack-protector \ 62 --param=ssp-buffer-size=4 \ 63 -fno-strict-aliasing \ 64 -Wno-unused-parameter \ 65 -Wno-missing-field-initializers \ 66 -fvisibility=hidden \ 67 -pipe \ 68 -fPIC \ 69 -Wno-unused-local-typedefs \ 70 -Wno-format \ 71 -m64 \ 72 -march=x86-64 \ 73 -ffunction-sections \ 74 -funwind-tables \ 75 -g \ 76 -fstack-protector \ 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 -Wno-address \ 86 -Wno-format-security \ 87 -Wno-return-type \ 88 -Wno-sequence-point \ 89 -Os \ 90 -g \ 91 -gdwarf-4 \ 92 -fdata-sections \ 93 -ffunction-sections \ 94 -fomit-frame-pointer \ 95 -funwind-tables 96 97 MY_DEFS_Debug := \ 98 '-DV8_DEPRECATION_WARNINGS' \ 99 '-D_FILE_OFFSET_BITS=64' \ 100 '-DNO_TCMALLOC' \ 101 '-DDISABLE_NACL' \ 102 '-DCHROMIUM_BUILD' \ 103 '-DUSE_LIBJPEG_TURBO=1' \ 104 '-DENABLE_WEBRTC=1' \ 105 '-DUSE_PROPRIETARY_CODECS' \ 106 '-DENABLE_BROWSER_CDMS' \ 107 '-DENABLE_CONFIGURATION_POLICY' \ 108 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 109 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 110 '-DENABLE_EGLIMAGE=1' \ 111 '-DCLD_VERSION=1' \ 112 '-DENABLE_PRINTING=1' \ 113 '-DENABLE_MANAGED_USERS=1' \ 114 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 115 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 116 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 117 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 118 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 119 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 120 '-DVIDEO_HOLE=1' \ 121 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 122 '-DHAVE_JPEG' \ 123 '-DUSE_OPENSSL=1' \ 124 '-DUSE_OPENSSL_CERTS=1' \ 125 '-DANDROID' \ 126 '-D__GNU_SOURCE=1' \ 127 '-DUSE_STLPORT=1' \ 128 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 129 '-DCHROME_BUILD_ID=""' \ 130 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 131 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 132 '-D_DEBUG' 133 134 135 # Include paths placed before CFLAGS/CPPFLAGS 136 LOCAL_C_INCLUDES_Debug := \ 137 $(gyp_shared_intermediate_dir) \ 138 $(LOCAL_PATH)/third_party/libyuv/include \ 139 $(LOCAL_PATH)/third_party/libyuv \ 140 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 141 $(PWD)/frameworks/wilhelm/include \ 142 $(PWD)/bionic \ 143 $(PWD)/external/stlport/stlport 144 145 146 # Flags passed to only C++ (and not C) files. 147 LOCAL_CPPFLAGS_Debug := \ 148 -fno-exceptions \ 149 -fno-rtti \ 150 -fno-threadsafe-statics \ 151 -fvisibility-inlines-hidden \ 152 -Wno-deprecated \ 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. 162 MY_CFLAGS_Release := \ 163 -fstack-protector \ 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 -m64 \ 174 -march=x86-64 \ 175 -ffunction-sections \ 176 -funwind-tables \ 177 -g \ 178 -fstack-protector \ 179 -fno-short-enums \ 180 -finline-limit=64 \ 181 -Wa,--noexecstack \ 182 -U_FORTIFY_SOURCE \ 183 -Wno-extra \ 184 -Wno-ignored-qualifiers \ 185 -Wno-type-limits \ 186 -Wno-unused-but-set-variable \ 187 -Wno-address \ 188 -Wno-format-security \ 189 -Wno-return-type \ 190 -Wno-sequence-point \ 191 -Os \ 192 -fno-ident \ 193 -fdata-sections \ 194 -ffunction-sections \ 195 -fomit-frame-pointer \ 196 -funwind-tables 197 198 MY_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 '-DHAVE_JPEG' \ 224 '-DUSE_OPENSSL=1' \ 225 '-DUSE_OPENSSL_CERTS=1' \ 226 '-DANDROID' \ 227 '-D__GNU_SOURCE=1' \ 228 '-DUSE_STLPORT=1' \ 229 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 230 '-DCHROME_BUILD_ID=""' \ 231 '-DNDEBUG' \ 232 '-DNVALGRIND' \ 233 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 234 235 236 # Include paths placed before CFLAGS/CPPFLAGS 237 LOCAL_C_INCLUDES_Release := \ 238 $(gyp_shared_intermediate_dir) \ 239 $(LOCAL_PATH)/third_party/libyuv/include \ 240 $(LOCAL_PATH)/third_party/libyuv \ 241 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 242 $(PWD)/frameworks/wilhelm/include \ 243 $(PWD)/bionic \ 244 $(PWD)/external/stlport/stlport 245 246 247 # Flags passed to only C++ (and not C) files. 248 LOCAL_CPPFLAGS_Release := \ 249 -fno-exceptions \ 250 -fno-rtti \ 251 -fno-threadsafe-statics \ 252 -fvisibility-inlines-hidden \ 253 -Wno-deprecated \ 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 262 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 263 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 264 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 265 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 266 ### Rules for final target. 267 268 LOCAL_SHARED_LIBRARIES := \ 269 libstlport \ 270 libdl 271 272 # Add target alias to "gyp_all_modules" target. 273 .PHONY: gyp_all_modules 274 gyp_all_modules: third_party_libyuv_libyuv_gyp 275 276 # Alias gyp target name. 277 .PHONY: libyuv 278 libyuv: third_party_libyuv_libyuv_gyp 279 280 include $(BUILD_STATIC_LIBRARY) 281