-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSConscript
More file actions
32 lines (22 loc) · 767 Bytes
/
SConscript
File metadata and controls
32 lines (22 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from building import *
pwd = GetCurrentDir()
src = []
CPPPATH = []
src = Glob('src/*.c')
src += Glob('osal/rtthread.c')
CPPPATH = [pwd + '/inc']
if GetDepend(['PKG_USING_MCOREDUMP_EXAMPLE']):
src += Glob('example/*.c')
if GetDepend(['PKG_USING_MCOREDUMP_ARCH_ARMV7M']):
src += Glob('arch/armv7m/*.c')
CPPPATH.append(pwd + '/arch/armv7m')
src += Glob('src/arm/*.c')
CPPPATH.append(pwd + '/src/arm')
if GetDepend(['PKG_USING_MCOREDUMP_ARCH_ARMV8M']):
src += Glob('arch/armv8m/*.c')
CPPPATH.append(pwd + '/arch/armv8m')
src += Glob('src/arm/*.c')
CPPPATH.append(pwd + '/src/arm')
CPPPATH.append(pwd + '/arch')
group = DefineGroup('MCoreDump', src, depend = ['PKG_USING_MCOREDUMP'], CPPPATH = CPPPATH)
Return('group')