forked from ARM-software/CMSIS-DSP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConscript
73 lines (53 loc) · 3.12 KB
/
SConscript
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
from building import *
cwd = GetCurrentDir()
src = []
CPPPATH = []
if GetDepend('PKG_USING_CMSIS_DSP'):
CPPPATH += [cwd + '/Include']
CPPPATH += [cwd + '/Include/dsp']
CPPPATH += [cwd + '/PrivateInclude']
if GetDepend('PKG_CMSIS_DSP_BASIC_MATH_FUNCTIONS'):
src += [cwd + '/Source/BasicMathFunctions/BasicMathFunctions.c']
src += [cwd + '/Source/BasicMathFunctions/BasicMathFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_BAYES_FUNCTIONS'):
src += [cwd + '/Source/BayesFunctions/BayesFunctions.c']
src += [cwd + '/Source/BayesFunctions/BayesFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_COMMON_TABLES'):
src += [cwd + '/Source/CommonTables/CommonTables.c']
src += [cwd + '/Source/CommonTables/CommonTablesF16.c']
if GetDepend('PKG_CMSIS_DSP_COMPLEX_MATH_FUNCTIONS'):
src += [cwd + '/Source/ComplexMathFunctions/ComplexMathFunctions.c']
src += [cwd + '/Source/ComplexMathFunctions/ComplexMathFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_CONTROLLER_FUNCTIONS'):
src += [cwd + '/Source/ControllerFunctions/ControllerFunctions.c']
if GetDepend('PKG_CMSIS_DSP_DISTANCE_FUNCTIONS'):
src += [cwd + '/Source/DistanceFunctions/DistanceFunctions.c']
src += [cwd + '/Source/DistanceFunctions/DistanceFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_FAST_MATH_FUNCTIONS'):
src += [cwd + '/Source/FastMathFunctions/FastMathFunctions.c']
src += [cwd + '/Source/FastMathFunctions/FastMathFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_FILTERING_FUNCTIONS'):
src += [cwd + '/Source/FilteringFunctions/FilteringFunctions.c']
src += [cwd + '/Source/FilteringFunctions/FilteringFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_INTERPOLATION_FUNCTIONS'):
src += [cwd + '/Source/InterpolationFunctions/InterpolationFunctions.c']
src += [cwd + '/Source/InterpolationFunctions/InterpolationFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_MATRIX_FUNCTIONS'):
src += [cwd + '/Source/MatrixFunctions/MatrixFunctions.c']
src += [cwd + '/Source/MatrixFunctions/MatrixFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_QUATERNION_MATH_FUNCTIONS'):
src += [cwd + '/Source/QuaternionMathFunctions/QuaternionMathFunctions.c']
if GetDepend('PKG_CMSIS_DSP_STATISTICS_FUNCTIONS'):
src += [cwd + '/Source/StatisticsFunctions/StatisticsFunctions.c']
src += [cwd + '/Source/StatisticsFunctions/StatisticsFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_SUPPORT_FUNCTIONS'):
src += [cwd + '/Source/SupportFunctions/SupportFunctions.c']
src += [cwd + '/Source/SupportFunctions/SupportFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_SVM_FUNCTIONS'):
src += [cwd + '/Source/SVMFunctions/SVMFunctions.c']
src += [cwd + '/Source/SVMFunctions/SVMFunctionsF16.c']
if GetDepend('PKG_CMSIS_DSP_TRANSFORM_FUNCTIONS'):
src += [cwd + '/Source/TransformFunctions/TransformFunctions.c']
src += [cwd + '/Source/TransformFunctions/TransformFunctionsF16.c']
group = DefineGroup('CMSIS_DSP', src, depend = ['PKG_USING_CMSIS_DSP'], CPPPATH = CPPPATH)
Return('group')