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