-
Notifications
You must be signed in to change notification settings - Fork 1
/
SConscript
56 lines (43 loc) · 1.54 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
from building import *
import rtconfig
cwd = GetCurrentDir()
path = [cwd]
src = []
path += [
cwd + '/date_template',
cwd + '/qcloud_iot_explorer_ble/inc',
cwd + '/qcloud_iot_explorer_ble/src/internal_inc']
src += Split('''
qcloud_iot_explorer_ble/src/utils/ble_qiot_utils_base64.c
qcloud_iot_explorer_ble/src/utils/ble_qiot_utils_crc.c
qcloud_iot_explorer_ble/src/utils/ble_qiot_utils_hmac.c
qcloud_iot_explorer_ble/src/utils/ble_qiot_utils_log.c
qcloud_iot_explorer_ble/src/utils/ble_qiot_utils_md5.c
qcloud_iot_explorer_ble/src/utils/ble_qiot_utils_sha1.c
''')
src += Split('''
date_template/ble_qiot_template.c
''')
src += Split('''
qcloud_iot_explorer_ble/src/core/ble_qiot_llsync_data.c
qcloud_iot_explorer_ble/src/core/ble_qiot_llsync_device.c
qcloud_iot_explorer_ble/src/core/ble_qiot_llsync_event.c
qcloud_iot_explorer_ble/src/core/ble_qiot_llsync_ota.c
qcloud_iot_explorer_ble/src/core/ble_qiot_service.c
''')
group = DefineGroup('llsync', src, depend = ['PKG_USING_LLSYNC_SDK_ADAPTER'], CPPPATH = path)
path = [cwd]
src = []
if GetDepend(['PKG_USING_NIMBLE']):
path += [
cwd + '/hal/nimble']
src += Split('''
hal/nimble/ble_qiot_ble_device.c
hal/nimble/flash_storage.c
hal/nimble/mcu_service.c
''')
LOCAL_CCFLAGS = ''
if rtconfig.CROSS_TOOL == 'keil':
LOCAL_CCFLAGS += ' --gnu '
group += DefineGroup('llsync_nimble', src, depend = ['PKG_USING_LLSYNC_SDK_ADAPTER'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
Return('group')