SConscript 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #-*- encoding: utf-8 -*-
  2. import os
  3. from building import *
  4. Import('RTT_ROOT')
  5. Import('rtconfig')
  6. #---------------------------------------------------------------------------------
  7. # Package configuration
  8. #---------------------------------------------------------------------------------
  9. PKGNAME = "ab32vg1_hal"
  10. VERSION = "v1.0.0"
  11. DEPENDS = [""]
  12. #---------------------------------------------------------------------------------
  13. # Compile the configuration
  14. #
  15. # SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty
  16. #
  17. # LOCAL_CPPPATH: Local file path (.h/.c/.cpp)
  18. # LOCAL_CFLAGS: Local c compilation parameter
  19. # LOCAL_CCFLAGS: Local c/c++ compilation parameter
  20. # LOCAL_CXXFLAGS: Local c++ compilation parameter
  21. # LOCAL_ASFLAGS: Local assembly parameters
  22. #
  23. # CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH
  24. # is empty # no pass!!!
  25. # CFLAGS : Global compilation parameter
  26. # ASFLAGS: Global assembly parameters
  27. #
  28. # CPPDEFINES: Global macro definition
  29. # LOCAL_CPPDEFINES: Local macro definition
  30. #
  31. # LIBS: Specify the static library that need to be linked
  32. # LIBPATH: Specify the search directory for the library file (.lib/.a)
  33. #
  34. # LINKFLAGS: Link options
  35. #---------------------------------------------------------------------------------
  36. CWD = GetCurrentDir()
  37. SOURCES = Glob("./source/*.c")
  38. LOCAL_CPPPATH = []
  39. LOCAL_CFLAGS = ""
  40. LOCAL_CCFLAGS = ""
  41. LOCAL_CXXFLAGS = ""
  42. LOCAL_ASFLAGS = ""
  43. CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')]
  44. CFLAGS = ""
  45. CCFLAGS = ""
  46. CXXFLAGS = ""
  47. ASFLAGS = ""
  48. CPPDEFINES = []
  49. LOCAL_CPPDEFINES = []
  50. LIBS = []
  51. LIBPATH = []
  52. LINKFLAGS = ""
  53. SOURCES_IGNORE = []
  54. CPPPATH_IGNORE = []
  55. #---------------------------------------------------------------------------------
  56. # Main target
  57. #---------------------------------------------------------------------------------
  58. objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS,
  59. CPPPATH = CPPPATH,
  60. CFLAGS = CFLAGS,
  61. CCFLAGS = CCFLAGS,
  62. CXXFLAGS = CXXFLAGS,
  63. ASFLAGS = ASFLAGS,
  64. LOCAL_CPPPATH = LOCAL_CPPPATH,
  65. LOCAL_CFLAGS = LOCAL_CFLAGS,
  66. LOCAL_CCFLAGS = LOCAL_CCFLAGS,
  67. LOCAL_CXXFLAGS = LOCAL_CXXFLAGS,
  68. LOCAL_ASFLAGS = LOCAL_ASFLAGS,
  69. CPPDEFINES = CPPDEFINES,
  70. LOCAL_CPPDEFINES = LOCAL_CPPDEFINES,
  71. LIBS = LIBS,
  72. LIBPATH = LIBPATH,
  73. LINKFLAGS = LINKFLAGS)
  74. Return("objs")
  75. #---------------------------------------------------------------------------------
  76. # End
  77. #---------------------------------------------------------------------------------