-
Notifications
You must be signed in to change notification settings - Fork 32
/
SConscript
64 lines (47 loc) · 1.5 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# 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/webnet.c
src/wn_mimetype.c
src/wn_request.c
src/wn_session.c
src/wn_utils.c
src/wn_module.c
""")
if GetDepend(['WEBNET_USING_ASP']):
src += Glob('module/wn_module_asp.c')
if GetDepend(['WEBNET_USING_AUTH']):
src += Glob('module/wn_module_auth.c')
if GetDepend(['WEBNET_USING_CGI']):
src += Glob('module/wn_module_cgi.c')
if GetDepend(['WEBNET_USING_INDEX']):
src += Glob('module/wn_module_index.c')
if GetDepend(['WEBNET_USING_ALIAS']):
src += Glob('module/wn_module_alias.c')
if GetDepend(['WEBNET_USING_LOG']):
src += Glob('module/wn_module_log.c')
if GetDepend(['WEBNET_USING_UPLOAD']):
src += Glob('module/wn_module_upload.c')
if GetDepend(['WEBNET_USING_SSI']):
src += Glob('module/wn_module_ssi.c')
if GetDepend(['WEBNET_USING_DAV']):
src += Glob('module/wn_module_dav.c')
if GetDepend(['WEBNET_USING_SAMPLES']):
src += Glob('samples/wn_sample.c')
if GetDepend(['WEBNET_USING_SAMPLES']) and GetDepend(['WEBNET_USING_UPLOAD']):
src += Glob('samples/wn_sample_upload.c')
CPPPATH = [cwd + '/inc']
group = DefineGroup('WebNet', src, depend = ['PKG_USING_WEBNET'], CPPPATH = CPPPATH)
Return('group')