forked from liuduanfei/Arm-2D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
31 lines (23 loc) · 969 Bytes
/
SConscript
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
from building import *
import rtconfig
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Glob('Arm-2D/Library/Source/*.c')
src += Glob('Arm-2D/Helper/Source/*.c')
src += Glob('Arm-2D/Lcdprintf/*.c')
if GetDepend('PKG_ARM_2D_USE_EXAMPLE_BASIC'):
src += Glob('example/example_basic.c')
if GetDepend('PKG_ARM_2D_USE_EXAMPLE_COMPLEX'):
src += Glob('example/example_complex.c')
src += Glob('example/array.c')
path = [cwd + '/Arm-2D/Library/Include']
path += [cwd + '/Arm-2D/Helper/Include']
path += [cwd + '/Arm-2D/Lcdprintf']
path += [cwd + '/example']
LOCAL_CCFLAGS = ''
CPPDEFINES = []
if GetDepend('PKG_ARM_2D_USE_ANTI_ALIAS_TRANSFORM'):
CPPDEFINES += ['__ARM_2D_HAS_ANTI_ALIAS_TRANSFORM__=1']
group = DefineGroup('Arm-2D', src, depend = ['PKG_USING_ARM_2D'], CPPPATH = path, CPPDEFINES = CPPDEFINES, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
Return('group')