| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 # Override this value to build with small float FFT tables | 9 # Override this value to build with small float FFT tables |
| 10 openmax_big_float_fft = true | 10 openmax_big_float_fft = true |
| 11 } | 11 } |
| 12 | 12 |
| 13 config("dl_config") { | 13 config("dl_config") { |
| 14 include_dirs = [ ".." ] | 14 include_dirs = [ ".." ] |
| 15 if (current_cpu == "arm") { | 15 if (current_cpu == "arm") { |
| 16 if (arm_use_neon) { | 16 if (arm_use_neon) { |
| 17 # Enable build-time NEON selection. | 17 # Enable build-time NEON selection. |
| 18 defines = [ "DL_ARM_NEON" ] | 18 defines = [ "DL_ARM_NEON" ] |
| 19 } else if (arm_optionally_use_neon) { | 19 } else if (arm_optionally_use_neon) { |
| 20 # Enable run-time NEON selection. | 20 # Enable run-time NEON selection. |
| 21 defines = [ "DL_ARM_NEON_OPTIONAL" ] | 21 defines = [ "DL_ARM_NEON_OPTIONAL" ] |
| 22 } | 22 } |
| 23 } else if (current_cpu == "arm64") { | 23 } else if (current_cpu == "arm64") { |
| 24 # Enable build-time NEON selection. | 24 # Enable build-time NEON selection. |
| 25 defines = [ "DL_ARM_NEON" ] | 25 defines = [ "DL_ARM_NEON" ] |
| 26 } | 26 } |
| 27 | 27 |
| 28 if (current_cpu == "arm" && is_clang) { | 28 if (current_cpu == "arm" && is_clang) { |
| 29 # TODO(hans) Enable integrated-as (crbug.com/124610). | 29 # TODO(hans) Enable integrated-as (crbug.com/124610). |
| 30 rebased_android_toolchain_root = | 30 asmflags = [ "-fno-integrated-as" ] |
| 31 rebase_path(android_toolchain_root, root_build_dir) | 31 if (is_android) { |
| 32 asmflags = [ | 32 rebased_android_toolchain_root = |
| 33 "-fno-integrated-as", | 33 rebase_path(android_toolchain_root, root_build_dir) |
| 34 "-B${rebased_android_toolchain_root}/bin", # Else /usr/bin/as gets picked
up. | 34 # Else /usr/bin/as gets picked up. |
| 35 ] | 35 asmflags += [ "-B${rebased_android_toolchain_root}/bin" ] |
| 36 } |
| 36 } | 37 } |
| 37 } | 38 } |
| 38 | 39 |
| 39 # GYP: third_party/openmax_dl/dl/dl.gyp:openmax_dl | 40 # GYP: third_party/openmax_dl/dl/dl.gyp:openmax_dl |
| 40 source_set("dl") { | 41 source_set("dl") { |
| 41 public_configs = [ ":dl_config" ] | 42 public_configs = [ ":dl_config" ] |
| 42 sources = [ | 43 sources = [ |
| 43 "api/omxtypes.h", | 44 "api/omxtypes.h", |
| 44 "sp/api/omxSP.h", | 45 "sp/api/omxSP.h", |
| 45 "sp/src/armSP_FFT_F32TwiddleTable.c", | 46 "sp/src/armSP_FFT_F32TwiddleTable.c", |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 "sp/src/arm/neon/omxSP_FFTFwd_CToC_FC32_Sfs_s.S", | 261 "sp/src/arm/neon/omxSP_FFTFwd_CToC_FC32_Sfs_s.S", |
| 261 "sp/src/arm/neon/omxSP_FFTInv_CToC_FC32_Sfs_s.S", | 262 "sp/src/arm/neon/omxSP_FFTInv_CToC_FC32_Sfs_s.S", |
| 262 | 263 |
| 263 # Real floating-point FFT | 264 # Real floating-point FFT |
| 264 "sp/src/arm/neon/armSP_FFTInv_CCSToR_F32_preTwiddleRadix2_unsafe_s.S", | 265 "sp/src/arm/neon/armSP_FFTInv_CCSToR_F32_preTwiddleRadix2_unsafe_s.S", |
| 265 "sp/src/arm/neon/omxSP_FFTFwd_RToCCS_F32_Sfs_s.S", | 266 "sp/src/arm/neon/omxSP_FFTFwd_RToCCS_F32_Sfs_s.S", |
| 266 "sp/src/arm/neon/omxSP_FFTInv_CCSToR_F32_Sfs_s.S", | 267 "sp/src/arm/neon/omxSP_FFTInv_CCSToR_F32_Sfs_s.S", |
| 267 ] | 268 ] |
| 268 } | 269 } |
| 269 } | 270 } |
| OLD | NEW |