2022-08-14 08:53:51 +08:00
|
|
|
import glob
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = []
|
|
|
|
group = []
|
|
|
|
CPPPATH = []
|
|
|
|
|
|
|
|
file = glob.glob('*.tifcfg')
|
|
|
|
if len(file):
|
2022-08-15 22:32:27 +08:00
|
|
|
if rtconfig.PLATFORM in ['iccarm']:
|
|
|
|
print("\nThe current project does not support IAR build\n")
|
2022-08-14 08:53:51 +08:00
|
|
|
Return('group')
|
2022-08-15 22:32:27 +08:00
|
|
|
elif rtconfig.PLATFORM in ['gcc', 'armclang']:
|
2022-08-14 08:53:51 +08:00
|
|
|
src += ['qe_touch_config.c']
|
|
|
|
src += ['qe_sample_rtthread.c']
|
2022-08-15 22:32:27 +08:00
|
|
|
CPPPATH = [cwd]
|
2022-08-14 08:53:51 +08:00
|
|
|
|
|
|
|
CPPDEFINES = ['QE_TOUCH_CONFIGURATION']
|
|
|
|
group = DefineGroup('QE-Touch', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|