-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
43 lines (35 loc) · 1.01 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
#
# File : SConscript
# This file is part of RT-Thread RTOS/WebNet Server
# COPYRIGHT (C) 2011, Shanghai Real-Thread Technology Co., Ltd
#
# All rights reserved.
#
# Change Logs:
# Date Author Notes
# 2011-08-02 Bernard the first version
#
Import('RTT_ROOT')
from building import *
cwd = GetCurrentDir()
src = Split("""
src/mpack/mpack-common.c
src/mpack/mpack-expect.c
src/mpack/mpack-node.c
src/mpack/mpack-platform.c
src/mpack/mpack-reader.c
src/mpack/mpack-writer.c
""")
CPPPATH = [cwd + '/src']
if GetDepend(['PKG_USING_MSGPACK_EXAMPLE']):
src += [cwd + '/test/test.c']
src += [cwd + '/test/test-system.c']
src += [cwd + '/test/test-common.c']
src += [cwd + '/test/test-reader.c']
src += [cwd + '/test/test-expect.c']
src += [cwd + '/test/test-write.c']
src += [cwd + '/test/test-node.c']
src += [cwd + '/test/test-buffer.c']
CPPPATH += [cwd + '/test']
group = DefineGroup('msgpack', src, depend = ['PKG_USING_MSGPACK'], CPPPATH = CPPPATH)
Return('group')