SConscript 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. from building import *
  2. cwd = GetCurrentDir()
  3. src = []
  4. CPPPATH = []
  5. if GetDepend('PKG_USING_CMSIS_DSP'):
  6. CPPPATH += [cwd + '/Include']
  7. CPPPATH += [cwd + '/Include/dsp']
  8. CPPPATH += [cwd + '/PrivateInclude']
  9. if GetDepend('PKG_CMSIS_DSP_BASIC_MATH_FUNCTIONS'):
  10. src += [cwd + '/Source/BasicMathFunctions/BasicMathFunctions.c']
  11. src += [cwd + '/Source/BasicMathFunctions/BasicMathFunctionsF16.c']
  12. if GetDepend('PKG_CMSIS_DSP_BAYES_FUNCTIONS'):
  13. src += [cwd + '/Source/BayesFunctions/BayesFunctions.c']
  14. src += [cwd + '/Source/BayesFunctions/BayesFunctionsF16.c']
  15. if GetDepend('PKG_CMSIS_DSP_COMMON_TABLES'):
  16. src += [cwd + '/Source/CommonTables/CommonTables.c']
  17. src += [cwd + '/Source/CommonTables/CommonTablesF16.c']
  18. if GetDepend('PKG_CMSIS_DSP_COMPLEX_MATH_FUNCTIONS'):
  19. src += [cwd + '/Source/ComplexMathFunctions/ComplexMathFunctions.c']
  20. src += [cwd + '/Source/ComplexMathFunctions/ComplexMathFunctionsF16.c']
  21. if GetDepend('PKG_CMSIS_DSP_CONTROLLER_FUNCTIONS'):
  22. src += [cwd + '/Source/ControllerFunctions/ControllerFunctions.c']
  23. if GetDepend('PKG_CMSIS_DSP_DISTANCE_FUNCTIONS'):
  24. src += [cwd + '/Source/DistanceFunctions/DistanceFunctions.c']
  25. src += [cwd + '/Source/DistanceFunctions/DistanceFunctionsF16.c']
  26. if GetDepend('PKG_CMSIS_DSP_FAST_MATH_FUNCTIONS'):
  27. src += [cwd + '/Source/FastMathFunctions/FastMathFunctions.c']
  28. src += [cwd + '/Source/FastMathFunctions/FastMathFunctionsF16.c']
  29. if GetDepend('PKG_CMSIS_DSP_FILTERING_FUNCTIONS'):
  30. src += [cwd + '/Source/FilteringFunctions/FilteringFunctions.c']
  31. src += [cwd + '/Source/FilteringFunctions/FilteringFunctionsF16.c']
  32. if GetDepend('PKG_CMSIS_DSP_INTERPOLATION_FUNCTIONS'):
  33. src += [cwd + '/Source/InterpolationFunctions/InterpolationFunctions.c']
  34. src += [cwd + '/Source/InterpolationFunctions/InterpolationFunctionsF16.c']
  35. if GetDepend('PKG_CMSIS_DSP_MATRIX_FUNCTIONS'):
  36. src += [cwd + '/Source/MatrixFunctions/MatrixFunctions.c']
  37. src += [cwd + '/Source/MatrixFunctions/MatrixFunctionsF16.c']
  38. if GetDepend('PKG_CMSIS_DSP_QUATERNION_MATH_FUNCTIONS'):
  39. src += [cwd + '/Source/QuaternionMathFunctions/QuaternionMathFunctions.c']
  40. if GetDepend('PKG_CMSIS_DSP_STATISTICS_FUNCTIONS'):
  41. src += [cwd + '/Source/StatisticsFunctions/StatisticsFunctions.c']
  42. src += [cwd + '/Source/StatisticsFunctions/StatisticsFunctionsF16.c']
  43. if GetDepend('PKG_CMSIS_DSP_SUPPORT_FUNCTIONS'):
  44. src += [cwd + '/Source/SupportFunctions/SupportFunctions.c']
  45. src += [cwd + '/Source/SupportFunctions/SupportFunctionsF16.c']
  46. if GetDepend('PKG_CMSIS_DSP_SVM_FUNCTIONS'):
  47. src += [cwd + '/Source/SVMFunctions/SVMFunctions.c']
  48. src += [cwd + '/Source/SVMFunctions/SVMFunctionsF16.c']
  49. if GetDepend('PKG_CMSIS_DSP_TRANSFORM_FUNCTIONS'):
  50. src += [cwd + '/Source/TransformFunctions/TransformFunctions.c']
  51. src += [cwd + '/Source/TransformFunctions/TransformFunctionsF16.c']
  52. group = DefineGroup('CMSIS_DSP', src, depend = ['PKG_USING_CMSIS_DSP'], CPPPATH = CPPPATH)
  53. Return('group')