aboutsummaryrefslogtreecommitdiff
path: root/common_audio/third_party/spl_sqrt_floor/BUILD.gn
blob: 239a859ff1e3ea2a665514f52fd4ed2fa5ada5f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the ../../../LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS.  All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.

import("../../../webrtc.gni")

rtc_library("spl_sqrt_floor") {
  visibility = [ "../..:common_audio_c" ]
  sources = [
    "spl_sqrt_floor.h",
  ]
  deps = []
  if (current_cpu == "arm") {
    sources += [ "spl_sqrt_floor_arm.S" ]

    deps += [ "../../../rtc_base/system:asm_defines" ]
  } else if (current_cpu == "mipsel") {
    sources += [ "spl_sqrt_floor_mips.c" ]
  } else {
    sources += [ "spl_sqrt_floor.c" ]
  }
}