Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: dl/BUILD.gn

Issue 2171553002: Convert GN source_set to static_library. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/deps/third_party/openmax.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « OWNERS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 20 matching lines...) Expand all
31 if (is_android) { 31 if (is_android) {
32 rebased_android_toolchain_root = 32 rebased_android_toolchain_root =
33 rebase_path(android_toolchain_root, root_build_dir) 33 rebase_path(android_toolchain_root, root_build_dir)
34 # Else /usr/bin/as gets picked up. 34 # Else /usr/bin/as gets picked up.
35 asmflags += [ "-B${rebased_android_toolchain_root}/bin" ] 35 asmflags += [ "-B${rebased_android_toolchain_root}/bin" ]
36 } 36 }
37 } 37 }
38 } 38 }
39 39
40 # GYP: third_party/openmax_dl/dl/dl.gyp:openmax_dl 40 # GYP: third_party/openmax_dl/dl/dl.gyp:openmax_dl
41 source_set("dl") { 41 static_library("dl") {
42 public_configs = [ ":dl_config" ] 42 public_configs = [ ":dl_config" ]
43 configs -= [ "//build/config/compiler:chromium_code" ] 43 configs -= [ "//build/config/compiler:chromium_code" ]
44 configs += [ "//build/config/compiler:no_chromium_code" ] 44 configs += [ "//build/config/compiler:no_chromium_code" ]
45 sources = [ 45 sources = [
46 "api/omxtypes.h", 46 "api/omxtypes.h",
47 "sp/api/omxSP.h", 47 "sp/api/omxSP.h",
48 "sp/src/armSP_FFT_F32TwiddleTable.c", 48 "sp/src/armSP_FFT_F32TwiddleTable.c",
49 ] 49 ]
50 50
51 cflags = [] 51 cflags = []
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 "sp/src/mips/omxSP_FFTInit_R_F32.c", 169 "sp/src/mips/omxSP_FFTInit_R_F32.c",
170 "sp/src/mips/omxSP_FFTInv_CCSToR_F32_Sfs.c", 170 "sp/src/mips/omxSP_FFTInv_CCSToR_F32_Sfs.c",
171 ] 171 ]
172 } 172 }
173 } 173 }
174 174
175 if (current_cpu == "arm") { 175 if (current_cpu == "arm") {
176 # GYP: third_party/openmax_dl/dl/dl.gyp:openmax_dl_armv7 176 # GYP: third_party/openmax_dl/dl/dl.gyp:openmax_dl_armv7
177 # Non-NEON implementation of FFT. This library is NOT 177 # Non-NEON implementation of FFT. This library is NOT
178 # standalone. Applications must link with openmax_dl. 178 # standalone. Applications must link with openmax_dl.
179 source_set("openmax_dl_armv7") { 179 static_library("openmax_dl_armv7") {
180 configs += [ ":dl_config" ] 180 configs += [ ":dl_config" ]
181 visibility = [ ":*" ] 181 visibility = [ ":*" ]
182 182
183 sources = [ 183 sources = [
184 # Complex floating-point FFT 184 # Complex floating-point FFT
185 "sp/src/arm/armv7/armSP_FFT_CToC_FC32_Radix2_fs_unsafe_s.S", 185 "sp/src/arm/armv7/armSP_FFT_CToC_FC32_Radix2_fs_unsafe_s.S",
186 "sp/src/arm/armv7/armSP_FFT_CToC_FC32_Radix4_fs_unsafe_s.S", 186 "sp/src/arm/armv7/armSP_FFT_CToC_FC32_Radix4_fs_unsafe_s.S",
187 "sp/src/arm/armv7/armSP_FFT_CToC_FC32_Radix4_unsafe_s.S", 187 "sp/src/arm/armv7/armSP_FFT_CToC_FC32_Radix4_unsafe_s.S",
188 "sp/src/arm/armv7/armSP_FFT_CToC_FC32_Radix8_fs_unsafe_s.S", 188 "sp/src/arm/armv7/armSP_FFT_CToC_FC32_Radix8_fs_unsafe_s.S",
189 "sp/src/arm/armv7/omxSP_FFTInv_CToC_FC32_Sfs_s.S", 189 "sp/src/arm/armv7/omxSP_FFTInv_CToC_FC32_Sfs_s.S",
(...skipping 10 matching lines...) Expand all
200 # To get the __android_log_print routine 200 # To get the __android_log_print routine
201 libs = [ "log" ] 201 libs = [ "log" ]
202 # Detection routine 202 # Detection routine
203 sources += [ "sp/src/arm/detect.c" ] 203 sources += [ "sp/src/arm/detect.c" ]
204 } 204 }
205 } 205 }
206 206
207 # GYP: third_party/openmax_dl/dl/dl.gyp:openmax_dl_neon 207 # GYP: third_party/openmax_dl/dl/dl.gyp:openmax_dl_neon
208 # NEON implementation of FFT. This library is NOT 208 # NEON implementation of FFT. This library is NOT
209 # standalone. Applications must link with openmax_dl. 209 # standalone. Applications must link with openmax_dl.
210 source_set("openmax_dl_neon") { 210 static_library("openmax_dl_neon") {
211 configs += [ ":dl_config" ] 211 configs += [ ":dl_config" ]
212 visibility = [ ":*" ] 212 visibility = [ ":*" ]
213 213
214 if (!arm_use_neon) { 214 if (!arm_use_neon) {
215 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] 215 configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
216 asmflags = [ "-mfpu=neon" ] 216 asmflags = [ "-mfpu=neon" ]
217 } 217 }
218 218
219 sources = [ 219 sources = [
220 # Complex 32-bit fixed-point FFT. 220 # Complex 32-bit fixed-point FFT.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 "sp/src/arm/neon/omxSP_FFTFwd_CToC_FC32_Sfs_s.S", 263 "sp/src/arm/neon/omxSP_FFTFwd_CToC_FC32_Sfs_s.S",
264 "sp/src/arm/neon/omxSP_FFTInv_CToC_FC32_Sfs_s.S", 264 "sp/src/arm/neon/omxSP_FFTInv_CToC_FC32_Sfs_s.S",
265 265
266 # Real floating-point FFT 266 # Real floating-point FFT
267 "sp/src/arm/neon/armSP_FFTInv_CCSToR_F32_preTwiddleRadix2_unsafe_s.S", 267 "sp/src/arm/neon/armSP_FFTInv_CCSToR_F32_preTwiddleRadix2_unsafe_s.S",
268 "sp/src/arm/neon/omxSP_FFTFwd_RToCCS_F32_Sfs_s.S", 268 "sp/src/arm/neon/omxSP_FFTFwd_RToCCS_F32_Sfs_s.S",
269 "sp/src/arm/neon/omxSP_FFTInv_CCSToR_F32_Sfs_s.S", 269 "sp/src/arm/neon/omxSP_FFTInv_CCSToR_F32_Sfs_s.S",
270 ] 270 ]
271 } 271 }
272 } 272 }
OLDNEW
« no previous file with comments | « OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698