xref: /aosp_15_r20/external/libyuv/libyuv.gni (revision 4e366538070a3a6c5c163c31b791eab742e1657a)
1# 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/config/arm.gni")
10import("//build/config/loongarch64.gni")
11import("//build/config/mips.gni")
12import("//build_overrides/build.gni")
13
14declare_args() {
15  libyuv_include_tests = !build_with_chromium
16  libyuv_disable_jpeg = false
17  libyuv_disable_rvv = false
18  libyuv_use_neon =
19      current_cpu == "arm64" ||
20      (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon))
21  libyuv_use_msa =
22      (current_cpu == "mips64el" || current_cpu == "mipsel") && mips_use_msa
23  libyuv_use_mmi =
24      (current_cpu == "mips64el" || current_cpu == "mipsel") && mips_use_mmi
25  libyuv_use_lsx =
26      (current_cpu == "loong64") && loongarch64_use_lsx
27  libyuv_use_lasx =
28      (current_cpu == "loong64") && loongarch64_use_lasx
29}
30