소스 검색

feat: 添加fflags依赖库

SongZihuan 3 년 전
부모
커밋
ffc0b851b9
8개의 변경된 파일25개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 0
      .gitmodules
  2. 1 0
      include/aFun.h
  3. 1 0
      include/fflags.h
  4. 2 1
      src/CMakeLists.txt
  5. 6 1
      src/deps/README
  6. 4 0
      src/deps/fflags/CMakeLists.txt
  7. 7 0
      src/deps/fflags/README
  8. 1 0
      src/deps/fflags/fflags

+ 3 - 0
.gitmodules

@@ -7,3 +7,6 @@
 [submodule "src/deps/regex/pcre2"]
 	path = src/deps/regex/pcre2
 	url = git@github.com:aFun-org/pcre2.git
+[submodule "src/deps/fflags/fflags"]
+	path = src/deps/fflags/fflags
+	url = git@github.com:aFun-org/fflags.git

+ 1 - 0
include/aFun.h

@@ -5,6 +5,7 @@
 #include "tool.h"
 #include "regex.h"
 #include "cjson.h"
+#include "fflags.h"
 
 #include "code.h"
 #include "object.h"

+ 1 - 0
include/fflags.h

@@ -0,0 +1 @@
+#include "../src/deps/fflags/fflags/fflags.h"

+ 2 - 1
src/CMakeLists.txt

@@ -2,8 +2,9 @@
 add_subdirectory(tool)
 add_subdirectory(deps/cjson)
 add_subdirectory(deps/regex)
+add_subdirectory(deps/fflags)
 
-set(libary af_tool af_json af_regex)
+set(libary af_tool af_json af_regex FFlags)
 
 add_subdirectory(core)
 

+ 6 - 1
src/deps/README

@@ -16,4 +16,9 @@ url: https://github.com/dlfcn-win32/dlfcn-win32
 该库用于处理正则表达式
 封装自`pcre2`库
 git子模块: pcre2
-url: https://github.com/PhilipHazel/pcre2
+url: https://github.com/PhilipHazel/pcre2
+
+* fflags依赖库
+该库用于处理命令行参数
+git子模块: fflags
+url: https://github.com/SuperH-0630/fflags

+ 4 - 0
src/deps/fflags/CMakeLists.txt

@@ -0,0 +1,4 @@
+set(BUILD_SHARED_LIBS OFF)
+set(FFLAGS_BUILD_TEST OFF)
+set(SET_OUTPUT_DIRECTORY OFF)
+add_subdirectory(fflags)

+ 7 - 0
src/deps/fflags/README

@@ -0,0 +1,7 @@
+fflags依赖库
+-------------------------
+
+提供命令行参数处理程序
+
+项目url: https://github.com/SuperH-0630/fflags
+子模块: https://github.com/aFun-org/fflags

+ 1 - 0
src/deps/fflags/fflags

@@ -0,0 +1 @@
+Subproject commit 87571d840bea9cff73b5ddb5ee9470d51990845a