SRCDIR = ../single_includeall: create_output########################################################################### example files########################################################################### where are the example cpp filesEXAMPLES = $(wildcard mkdocs/docs/examples/*.cpp)cxx_standard = $(lastword c++11 $(filter c++%, $(subst ., ,1ドル)))# create output from a stand-alone example file%.output: %.cpp@echo "standard $(call cxx_standard $(<:.cpp=))"$(MAKE) $(<:.cpp=) \CPPFLAGS="-I $(SRCDIR) -DJSON_USE_GLOBAL_UDLS=0" \CXXFLAGS="-std=$(call cxx_standard,$(<:.cpp=)) -Wno-deprecated-declarations"./$(<:.cpp=) > $@rm $(<:.cpp=)# compare created output with current output of the example files%.test: %.cpp$(MAKE) $(<:.cpp=) \CPPFLAGS="-I $(SRCDIR) -DJSON_USE_GLOBAL_UDLS=0" \CXXFLAGS="-std=$(call cxx_standard,$(<:.cpp=)) -Wno-deprecated-declarations"./$(<:.cpp=) > $@diff $@ $(<:.cpp=.output)rm $(<:.cpp=) $@# create output from all stand-alone example filescreate_output: $(EXAMPLES:.cpp=.output)# check output of all stand-alone example filescheck_output: $(EXAMPLES:.cpp=.test)# check output of all stand-alone example files (exclude files with platform-dependent output.)# This target is used in the CI (ci_test_documentation).check_output_portable: $(filter-out mkdocs/docs/examples/meta.test mkdocs/docs/examples/max_size.test mkdocs/docs/examples/std_hash.test mkdocs/docs/examples/basic_json__CompatibleType.test,$(EXAMPLES:.cpp=.test))clean:rm -fr $(EXAMPLES:.cpp=)$(MAKE) clean -C docset
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。