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_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,third_party_libjpeg_libjpeg_gyp,,,$(GYP_VAR_PREFIX))/libjpeg.stamp 16 17 GYP_GENERATED_OUTPUTS := 18 19 # Make sure our deps and generated files are built first. 20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22 LOCAL_CPP_EXTENSION := .cc 23 LOCAL_GENERATED_SOURCES := 24 25 GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27 LOCAL_SRC_FILES := \ 28 third_party/libyuv/source/compare.cc \ 29 third_party/libyuv/source/compare_common.cc \ 30 third_party/libyuv/source/compare_posix.cc \ 31 third_party/libyuv/source/compare_win.cc \ 32 third_party/libyuv/source/convert.cc \ 33 third_party/libyuv/source/convert_argb.cc \ 34 third_party/libyuv/source/convert_from.cc \ 35 third_party/libyuv/source/convert_from_argb.cc \ 36 third_party/libyuv/source/convert_jpeg.cc \ 37 third_party/libyuv/source/convert_to_argb.cc \ 38 third_party/libyuv/source/convert_to_i420.cc \ 39 third_party/libyuv/source/cpu_id.cc \ 40 third_party/libyuv/source/format_conversion.cc \ 41 third_party/libyuv/source/mjpeg_decoder.cc \ 42 third_party/libyuv/source/mjpeg_validate.cc \ 43 third_party/libyuv/source/planar_functions.cc \ 44 third_party/libyuv/source/rotate.cc \ 45 third_party/libyuv/source/rotate_argb.cc \ 46 third_party/libyuv/source/rotate_mips.cc \ 47 third_party/libyuv/source/row_any.cc \ 48 third_party/libyuv/source/row_common.cc \ 49 third_party/libyuv/source/row_mips.cc \ 50 third_party/libyuv/source/row_posix.cc \ 51 third_party/libyuv/source/row_win.cc \ 52 third_party/libyuv/source/scale.cc \ 53 third_party/libyuv/source/scale_argb.cc \ 54 third_party/libyuv/source/scale_common.cc \ 55 third_party/libyuv/source/scale_mips.cc \ 56 third_party/libyuv/source/scale_posix.cc \ 57 third_party/libyuv/source/scale_win.cc \ 58 third_party/libyuv/source/video_common.cc 59 60 61 # Flags passed to both C and C++ files. 62 MY_CFLAGS_Debug := \ 63 -fstack-protector \ 64 --param=ssp-buffer-size=4 \ 65 \ 66 -fno-exceptions \ 67 -fno-strict-aliasing \ 68 -Wno-unused-parameter \ 69 -Wno-missing-field-initializers \ 70 -fvisibility=hidden \ 71 -pipe \ 72 -fPIC \ 73 -Wno-unused-local-typedefs \ 74 -Wno-format \ 75 -EL \ 76 -mhard-float \ 77 -ffunction-sections \ 78 -funwind-tables \ 79 -g \ 80 -fstack-protector \ 81 -fno-short-enums \ 82 -finline-limit=64 \ 83 -Wa,--noexecstack \ 84 -U_FORTIFY_SOURCE \ 85 -Wno-extra \ 86 -Wno-ignored-qualifiers \ 87 -Wno-type-limits \ 88 -Wno-unused-but-set-variable \ 89 -Wno-address \ 90 -Wno-format-security \ 91 -Wno-return-type \ 92 -Wno-sequence-point \ 93 -Os \ 94 -g \ 95 -fdata-sections \ 96 -ffunction-sections \ 97 -fomit-frame-pointer \ 98 -funwind-tables 99 100 MY_DEFS_Debug := \ 101 '-DV8_DEPRECATION_WARNINGS' \ 102 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 103 '-D_FILE_OFFSET_BITS=64' \ 104 '-DNO_TCMALLOC' \ 105 '-DDISABLE_NACL' \ 106 '-DCHROMIUM_BUILD' \ 107 '-DUSE_LIBJPEG_TURBO=1' \ 108 '-DENABLE_WEBRTC=1' \ 109 '-DUSE_PROPRIETARY_CODECS' \ 110 '-DENABLE_BROWSER_CDMS' \ 111 '-DENABLE_CONFIGURATION_POLICY' \ 112 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 113 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 114 '-DENABLE_EGLIMAGE=1' \ 115 '-DCLD_VERSION=1' \ 116 '-DENABLE_PRINTING=1' \ 117 '-DENABLE_MANAGED_USERS=1' \ 118 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 119 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 120 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 121 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 122 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 123 '-DVIDEO_HOLE=1' \ 124 '-DHAVE_JPEG' \ 125 '-DUSE_SYSTEM_LIBJPEG' \ 126 '-DUSE_OPENSSL=1' \ 127 '-DUSE_OPENSSL_CERTS=1' \ 128 '-DANDROID' \ 129 '-D__GNU_SOURCE=1' \ 130 '-DUSE_STLPORT=1' \ 131 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 132 '-DCHROME_BUILD_ID=""' \ 133 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 134 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 135 '-D_DEBUG' 136 137 138 # Include paths placed before CFLAGS/CPPFLAGS 139 LOCAL_C_INCLUDES_Debug := \ 140 $(gyp_shared_intermediate_dir) \ 141 $(LOCAL_PATH)/third_party/libyuv/include \ 142 $(LOCAL_PATH)/third_party/libyuv \ 143 $(PWD)/external/jpeg \ 144 $(PWD)/frameworks/wilhelm/include \ 145 $(PWD)/bionic \ 146 $(PWD)/external/stlport/stlport 147 148 149 # Flags passed to only C++ (and not C) files. 150 LOCAL_CPPFLAGS_Debug := \ 151 -fno-rtti \ 152 -fno-threadsafe-statics \ 153 -fvisibility-inlines-hidden \ 154 -Wno-deprecated \ 155 -Wno-uninitialized \ 156 -Wno-non-virtual-dtor \ 157 -Wno-sign-promo \ 158 -Wno-non-virtual-dtor 159 160 161 LOCAL_FDO_SUPPORT_Debug := false 162 163 # Flags passed to both C and C++ files. 164 MY_CFLAGS_Release := \ 165 -fstack-protector \ 166 --param=ssp-buffer-size=4 \ 167 \ 168 -fno-exceptions \ 169 -fno-strict-aliasing \ 170 -Wno-unused-parameter \ 171 -Wno-missing-field-initializers \ 172 -fvisibility=hidden \ 173 -pipe \ 174 -fPIC \ 175 -Wno-unused-local-typedefs \ 176 -Wno-format \ 177 -EL \ 178 -mhard-float \ 179 -ffunction-sections \ 180 -funwind-tables \ 181 -g \ 182 -fstack-protector \ 183 -fno-short-enums \ 184 -finline-limit=64 \ 185 -Wa,--noexecstack \ 186 -U_FORTIFY_SOURCE \ 187 -Wno-extra \ 188 -Wno-ignored-qualifiers \ 189 -Wno-type-limits \ 190 -Wno-unused-but-set-variable \ 191 -Wno-address \ 192 -Wno-format-security \ 193 -Wno-return-type \ 194 -Wno-sequence-point \ 195 -Os \ 196 -fno-ident \ 197 -fdata-sections \ 198 -ffunction-sections \ 199 -fomit-frame-pointer \ 200 -funwind-tables 201 202 MY_DEFS_Release := \ 203 '-DV8_DEPRECATION_WARNINGS' \ 204 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 205 '-D_FILE_OFFSET_BITS=64' \ 206 '-DNO_TCMALLOC' \ 207 '-DDISABLE_NACL' \ 208 '-DCHROMIUM_BUILD' \ 209 '-DUSE_LIBJPEG_TURBO=1' \ 210 '-DENABLE_WEBRTC=1' \ 211 '-DUSE_PROPRIETARY_CODECS' \ 212 '-DENABLE_BROWSER_CDMS' \ 213 '-DENABLE_CONFIGURATION_POLICY' \ 214 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 215 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 216 '-DENABLE_EGLIMAGE=1' \ 217 '-DCLD_VERSION=1' \ 218 '-DENABLE_PRINTING=1' \ 219 '-DENABLE_MANAGED_USERS=1' \ 220 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 221 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 222 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 223 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 224 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 225 '-DVIDEO_HOLE=1' \ 226 '-DHAVE_JPEG' \ 227 '-DUSE_SYSTEM_LIBJPEG' \ 228 '-DUSE_OPENSSL=1' \ 229 '-DUSE_OPENSSL_CERTS=1' \ 230 '-DANDROID' \ 231 '-D__GNU_SOURCE=1' \ 232 '-DUSE_STLPORT=1' \ 233 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 234 '-DCHROME_BUILD_ID=""' \ 235 '-DNDEBUG' \ 236 '-DNVALGRIND' \ 237 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 238 239 240 # Include paths placed before CFLAGS/CPPFLAGS 241 LOCAL_C_INCLUDES_Release := \ 242 $(gyp_shared_intermediate_dir) \ 243 $(LOCAL_PATH)/third_party/libyuv/include \ 244 $(LOCAL_PATH)/third_party/libyuv \ 245 $(PWD)/external/jpeg \ 246 $(PWD)/frameworks/wilhelm/include \ 247 $(PWD)/bionic \ 248 $(PWD)/external/stlport/stlport 249 250 251 # Flags passed to only C++ (and not C) files. 252 LOCAL_CPPFLAGS_Release := \ 253 -fno-rtti \ 254 -fno-threadsafe-statics \ 255 -fvisibility-inlines-hidden \ 256 -Wno-deprecated \ 257 -Wno-uninitialized \ 258 -Wno-non-virtual-dtor \ 259 -Wno-sign-promo \ 260 -Wno-non-virtual-dtor 261 262 263 LOCAL_FDO_SUPPORT_Release := false 264 265 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 266 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 267 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 268 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 269 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 270 ### Rules for final target. 271 272 LOCAL_LDFLAGS_Debug := \ 273 -Wl,-z,now \ 274 -Wl,-z,relro \ 275 -Wl,--fatal-warnings \ 276 -Wl,-z,noexecstack \ 277 -fPIC \ 278 -EL \ 279 -Wl,--no-keep-memory \ 280 -nostdlib \ 281 -Wl,--no-undefined \ 282 -Wl,--exclude-libs=ALL \ 283 -Wl,--warn-shared-textrel \ 284 -Wl,-O1 \ 285 -Wl,--as-needed 286 287 288 LOCAL_LDFLAGS_Release := \ 289 -Wl,-z,now \ 290 -Wl,-z,relro \ 291 -Wl,--fatal-warnings \ 292 -Wl,-z,noexecstack \ 293 -fPIC \ 294 -EL \ 295 -Wl,--no-keep-memory \ 296 -nostdlib \ 297 -Wl,--no-undefined \ 298 -Wl,--exclude-libs=ALL \ 299 -Wl,-O1 \ 300 -Wl,--as-needed \ 301 -Wl,--gc-sections \ 302 -Wl,--warn-shared-textrel 303 304 305 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 306 307 LOCAL_STATIC_LIBRARIES := 308 309 # Enable grouping to fix circular references 310 LOCAL_GROUP_STATIC_LIBRARIES := true 311 312 LOCAL_SHARED_LIBRARIES := \ 313 libstlport \ 314 libdl 315 316 # Add target alias to "gyp_all_modules" target. 317 .PHONY: gyp_all_modules 318 gyp_all_modules: third_party_libyuv_libyuv_gyp 319 320 # Alias gyp target name. 321 .PHONY: libyuv 322 libyuv: third_party_libyuv_libyuv_gyp 323 324 include $(BUILD_STATIC_LIBRARY) 325