blob: 8df40ba2d77b3b5cf2b6fd27bd69200e93db5390 [file] [log] [blame]
Frank Barchardb83bb382017-02-22 18:01:07 -08001# Copyright 2016 The LibYuv Project Authors. All rights reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("//build_overrides/build.gni")
10import("//build/config/arm.gni")
11import("//build/config/mips.gni")
12
13declare_args() {
14 libyuv_include_tests = !build_with_chromium
15 libyuv_disable_jpeg = false
Chong Zhangab123ac2019-06-27 14:28:37 -070016 libyuv_use_neon =
17 current_cpu == "arm64" ||
18 (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon))
19 libyuv_use_msa =
20 (current_cpu == "mips64el" || current_cpu == "mipsel") && mips_use_msa
21 libyuv_use_mmi =
22 (current_cpu == "mips64el" || current_cpu == "mipsel") && mips_use_mmi
Frank Barchardb83bb382017-02-22 18:01:07 -080023}