rt-thread-official/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript

89 lines
2.9 KiB
Python
Raw Normal View History

#-*- encoding: utf-8 -*-
import os
2023-01-09 10:14:23 +08:00
from building import *
Import('RTT_ROOT')
Import('rtconfig')
#---------------------------------------------------------------------------------
# Package configuration
#---------------------------------------------------------------------------------
PKGNAME = "ab32vg1_hal"
VERSION = "v1.0.0"
DEPENDS = [""]
#---------------------------------------------------------------------------------
2023-01-09 10:14:23 +08:00
# Compile the configuration
#
# SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty
2023-01-09 10:14:23 +08:00
#
# LOCAL_CPPPATH: Local file path (.h/.c/.cpp)
2021-12-22 11:03:03 +08:00
# LOCAL_CFLAGS: Local c compilation parameter
2023-01-09 10:14:23 +08:00
# LOCAL_CCFLAGS: Local c/c++ compilation parameter
# LOCAL_CXXFLAGS: Local c++ compilation parameter
# LOCAL_ASFLAGS: Local assembly parameters
2023-01-09 10:14:23 +08:00
#
# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH
# is empty # no pass!!!
2023-01-09 10:14:23 +08:00
# CFLAGS : Global compilation parameter
# ASFLAGS: Global assembly parameters
#
# CPPDEFINES: Global macro definition
2023-01-09 10:14:23 +08:00
# LOCAL_CPPDEFINES: Local macro definition
#
# LIBS: Specify the static library that need to be linked
# LIBPATH: Specify the search directory for the library file (.lib/.a)
#
# LINKFLAGS: Link options
#---------------------------------------------------------------------------------
CWD = GetCurrentDir()
SOURCES = Glob("./source/*.c")
2021-12-22 11:03:03 +08:00
LOCAL_CPPPATH = []
LOCAL_CFLAGS = ""
LOCAL_CCFLAGS = ""
LOCAL_CXXFLAGS = ""
LOCAL_ASFLAGS = ""
2023-01-09 10:14:23 +08:00
CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')]
2021-12-22 11:03:03 +08:00
CFLAGS = ""
CCFLAGS = ""
CXXFLAGS = ""
ASFLAGS = ""
CPPDEFINES = []
LOCAL_CPPDEFINES = []
2023-01-09 10:14:23 +08:00
LIBS = []
2021-11-05 17:16:44 +08:00
LIBPATH = []
2023-01-09 10:14:23 +08:00
LINKFLAGS = ""
SOURCES_IGNORE = []
CPPPATH_IGNORE = []
#---------------------------------------------------------------------------------
# Main target
#---------------------------------------------------------------------------------
2023-01-09 10:14:23 +08:00
objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS,
CPPPATH = CPPPATH,
CFLAGS = CFLAGS,
CCFLAGS = CCFLAGS,
CXXFLAGS = CXXFLAGS,
ASFLAGS = ASFLAGS,
LOCAL_CPPPATH = LOCAL_CPPPATH,
LOCAL_CFLAGS = LOCAL_CFLAGS,
LOCAL_CCFLAGS = LOCAL_CCFLAGS,
LOCAL_CXXFLAGS = LOCAL_CXXFLAGS,
LOCAL_ASFLAGS = LOCAL_ASFLAGS,
CPPDEFINES = CPPDEFINES,
LOCAL_CPPDEFINES = LOCAL_CPPDEFINES,
LIBS = LIBS,
LIBPATH = LIBPATH,
2023-01-09 10:14:23 +08:00
LINKFLAGS = LINKFLAGS)
2023-01-09 10:14:23 +08:00
Return("objs")
#---------------------------------------------------------------------------------
# End
#---------------------------------------------------------------------------------