add ini Parse & ini Parse demo

This commit is contained in:
morixinguan
2022-08-05 01:44:33 -04:00
parent 796223ab32
commit 67be743a10
12 changed files with 2811 additions and 1 deletions

35
components/utils/INI/Makefile Executable file
View File

@@ -0,0 +1,35 @@
###################################################################
#automatic detection QTOP and LOCALDIR
CUR_DIR := $(patsubst %/,%,$(dir $(realpath $(firstword $(MAKEFILE_LIST)))))
TRYQTOP := $(shell if [ -n "$$QTOP" ] ; then\
echo $$QTOP;\
else\
cd $(CUR_DIR); while /usr/bin/test ! -d qmk ; do \
dir=`cd ../;pwd`; \
if [ "$$dir" = "/" ] ; then \
echo Cannot find QTOP in $(firstword $(MAKEFILE_LIST)) 1>&2; \
exit 1; \
fi ; \
cd $$dir; \
done ; \
pwd; \
fi)
QTOP ?= $(realpath ${TRYQTOP})
ifeq ($(QTOP),)
$(error Please run this in a tree)
endif
LOCALDIR = $(patsubst %/,%,$(subst $(realpath $(QTOP))/,,$(CUR_DIR)))
####################################################################
TREE_LIB_ENABLE=y
lib=
subdirs=
CFGFLAGS += -I$(CUR_DIR)/include
include ${QTOP}/qmk/generic/Make.tpl