xref: /aosp_15_r20/external/libyuv/libyuv.gni (revision 4e366538070a3a6c5c163c31b791eab742e1657a)
1*4e366538SXin Li# Copyright 2016 The LibYuv Project Authors. All rights reserved.
2*4e366538SXin Li#
3*4e366538SXin Li# Use of this source code is governed by a BSD-style license
4*4e366538SXin Li# that can be found in the LICENSE file in the root of the source
5*4e366538SXin Li# tree. An additional intellectual property rights grant can be found
6*4e366538SXin Li# in the file PATENTS. All contributing project authors may
7*4e366538SXin Li# be found in the AUTHORS file in the root of the source tree.
8*4e366538SXin Li
9*4e366538SXin Liimport("//build/config/arm.gni")
10*4e366538SXin Liimport("//build/config/loongarch64.gni")
11*4e366538SXin Liimport("//build/config/mips.gni")
12*4e366538SXin Liimport("//build_overrides/build.gni")
13*4e366538SXin Li
14*4e366538SXin Lideclare_args() {
15*4e366538SXin Li  libyuv_include_tests = !build_with_chromium
16*4e366538SXin Li  libyuv_disable_jpeg = false
17*4e366538SXin Li  libyuv_disable_rvv = false
18*4e366538SXin Li  libyuv_use_neon =
19*4e366538SXin Li      current_cpu == "arm64" ||
20*4e366538SXin Li      (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon))
21*4e366538SXin Li  libyuv_use_msa =
22*4e366538SXin Li      (current_cpu == "mips64el" || current_cpu == "mipsel") && mips_use_msa
23*4e366538SXin Li  libyuv_use_mmi =
24*4e366538SXin Li      (current_cpu == "mips64el" || current_cpu == "mipsel") && mips_use_mmi
25*4e366538SXin Li  libyuv_use_lsx =
26*4e366538SXin Li      (current_cpu == "loong64") && loongarch64_use_lsx
27*4e366538SXin Li  libyuv_use_lasx =
28*4e366538SXin Li      (current_cpu == "loong64") && loongarch64_use_lasx
29*4e366538SXin Li}
30