| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #-*- encoding: utf-8 -*-
- #-------------------------------------------------------------------------------
- # RT-Thread RuiChing
- #
- # COPYRIGHT (C) 2024-2025 Shanghai Real-Thread Electronic Technology Co., Ltd.
- # All rights reserved.
- #
- # The license and distribution terms for this file may be
- # found in the file LICENSE in this distribution.
- #-------------------------------------------------------------------------------
- import os
- from building import *
- Import('RTT_ROOT')
- Import('rtconfig')
- #-------------------------------------------------------------------------------
- # Package configuration
- #-------------------------------------------------------------------------------
- PKGNAME = 'dfs'
- DEPENDS = []
- #-------------------------------------------------------------------------------
- # Compile the configuration
- #-------------------------------------------------------------------------------
- SOURCES = Glob('src/*.c')
- LOCAL_CPPPATH = []
- LOCAL_CCFLAGS = ""
- LOCAL_ASFLAGS = ""
- CPPPATH = [os.path.join(GetCurrentDir(), './include')]
- CCFLAGS = ""
- ASFLAGS = ""
- CPPDEFINES = []
- LOCAL_CPPDEFINES = []
- LIBS = []
- LIBPATH = [GetCurrentDir()]
- LINKFLAGS = ""
- #-------------------------------------------------------------------------------
- # Feature clip configuration, optional
- #-------------------------------------------------------------------------------
- #-------------------------------------------------------------------------------
- # Compiler platform configuration, optional
- #-------------------------------------------------------------------------------
- #-------------------------------------------------------------------------------
- # System variables
- #-------------------------------------------------------------------------------
- objs = []
- root = GetCurrentDir()
- #-------------------------------------------------------------------------------
- # Sub target
- #-------------------------------------------------------------------------------
- list = os.listdir(root)
- if GetDepend(DEPENDS):
- for d in list:
- path = os.path.join(root, d)
- if os.path.isfile(os.path.join(path, 'SConscript')):
- objs = objs + SConscript(os.path.join(d, 'SConscript'))
- #-------------------------------------------------------------------------------
- # Main target
- #-------------------------------------------------------------------------------
- objs += DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS,
- CPPPATH = CPPPATH,
- CCFLAGS = CCFLAGS,
- ASFLAGS = ASFLAGS,
- LOCAL_CPPPATH = LOCAL_CPPPATH,
- LOCAL_CCFLAGS = LOCAL_CCFLAGS,
- LOCAL_ASFLAGS = LOCAL_ASFLAGS,
- CPPDEFINES = CPPDEFINES,
- LOCAL_CPPDEFINES = LOCAL_CPPDEFINES,
- LIBS = LIBS,
- LIBPATH = LIBPATH,
- LINKFLAGS = LINKFLAGS)
- Return("objs")
- #-------------------------------------------------------------------------------
- # End
- #-------------------------------------------------------------------------------
|