blob: fb9adfac189fad3550376190d31f538b2b159738 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
##
# This script includes arduino specific config for oic-resource
##
Import('env')
env.ImportLib('SPI')
if 'ETHERNET' in env.get('TARGET_TRANSPORT'):
env.ImportLib('Ethernet')
if 'WIFI' in env.get('TARGET_TRANSPORT'):
env.ImportLib('WiFi')
env.AppendUnique(CPPDEFINES = ['ARDUINOWIFI'])
if 'BLE' in env.get('TARGET_TRANSPORT'):
env.ImportLib('BLE')
env.ImportLib('RBL_nRF8001')
env.ImportLib('Time/Time')
# we have variety of macros for arduino!!
if env.get('RELEASE'):
env.AppendUnique(CPPDEFINES = ['WITH_ARDUINO', '__ARDUINO__'])
else:
env.AppendUnique(CPPDEFINES = ['WITH_ARDUINO', '__ARDUINO__', 'TB_LOG'])
|