4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-03-04 17:45:26 +08:00

14 lines
331 B
Python

# RT-Thread building script for component
from building import *
cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
CPPPATH = [cwd]
if GetDepend('ARCH_RISCV_VECTOR'):
CPPPATH += [cwd + '/../vector/rvv-1.0']
group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
Return('group')