-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathSConscript
More file actions
29 lines (24 loc) · 716 Bytes
/
SConscript
File metadata and controls
29 lines (24 loc) · 716 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
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = []
CPPPATH = [cwd]
if GetDepend('BOARD_X1000_REALBOARD'):
LIBPATH = [cwd + '/mips/x1000']
if GetDepend('RT_USING_HARD_FLOAT'):
LIBS = ['Persimmon_hard_gcc']
else:
LIBS = ['Persimmon_soft_gcc']
elif GetDepend('SOC_LPC54608'):
LIBPATH = [cwd + '/arm/lpc54608']
if rtconfig.CROSS_TOOL == 'gcc':
LIBS = ['Persimmon_gcc']
elif rtconfig.CROSS_TOOL == 'keil':
LIBS = ['Persimmon_rvds']
else :
LIBS = []
else :
LIBPATH = []
LIBS = []
group = DefineGroup('Persimmon', src, depend = ['PKG_USING_PERSIMMON'], LIBS = LIBS, LIBPATH = LIBPATH, CPPPATH = CPPPATH)
Return('group')