适配rtt

This commit is contained in:
chinky 2019-10-24 18:11:45 +08:00
parent f31bcd0adf
commit f94423bd88
3 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -35,3 +35,4 @@ toml_json
# Debug files
*.dSYM/
*.su
/.vscode

5
Kconfig Normal file
View File

@ -0,0 +1,5 @@
menuconfig PKG_USING_TOMLC99
bool "tomlc99: TOML C library"
default n
endif

15
SConscript Normal file
View File

@ -0,0 +1,15 @@
import os
import rtconfig
from building import *
cwd = GetCurrentDir()
# add general drivers
src = Split('''
toml.c
''')
CPPPATH = [cwd]
group = DefineGroup('tomlc99', src, depend = ['PKG_USING_TOMLC99'], CPPPATH = path)
Return('group')