Skip to content

Commit d5a217d

Browse files
author
杨超
committed
add rapidhttp && suprot submodule git update
1 parent a2b625e commit d5a217d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

3rdparty/depends.py

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ def download_libs(self):
164164
source_path = os.path.join(SOURCE_DIR, name)
165165
if not os.path.exists(source_path):
166166
run_cmd("cd %s && git clone %s %s"%(SOURCE_DIR, git_url, name))
167+
if attr.get('submodule'):
168+
run_cmd("cd %s/%s && git submodule update --init" %(SOURCE_DIR, name))
167169
if attr.get('tag'):
168170
run_cmd("cd %s && git checkout %s"%(source_path, attr.get("tag")))
169171

3rdparty/depends.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@ depends:
1919
tag: v0.4.0
2020
cmake_args:
2121
- -DWITH_GFLAGS=OFF
22+
rapidhttp:
23+
git: https://github.com/magicsupery/rapidhttp.git
24+
submodule: true
2225
#glad:
2326
#local: true

0 commit comments

Comments
 (0)