diff --git a/.gitignore b/.gitignore index 50f144d..6e8f5a9 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ toml_json # Debug files *.dSYM/ *.su +/.vscode \ No newline at end of file diff --git a/Kconfig b/Kconfig new file mode 100644 index 0000000..5b9c258 --- /dev/null +++ b/Kconfig @@ -0,0 +1,5 @@ + +menuconfig PKG_USING_TOMLC99 + bool "tomlc99: TOML C library" + default n +endif diff --git a/SConscript b/SConscript new file mode 100644 index 0000000..e9fb528 --- /dev/null +++ b/SConscript @@ -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')