build: windows: only init the required client submodules

Change-Id: Ia4ad3e76962fac38c8f482fb7892b259a968ce5f
This commit is contained in:
Andreas Traczyk
2023-11-02 17:28:47 -04:00
parent 3e17a9b247
commit 8e33a6125f

View File

@@ -190,7 +190,15 @@ def init_submodules():
"""Initialize any git submodules in the project."""
print("Initializing submodules...")
if execute_cmd(["git", "submodule", "update", "--init", "--recursive"], False):
# Init the client submodules for Windows other than the daemon.
submodules = [
"3rdparty/qrencode-win32",
"3rdparty/SortFilterProxyModel",
"3rdparty/md4c",
"3rdparty/tidy-html5",
]
if execute_cmd(["git", "submodule", "update", "--init" ] + submodules,
False):
print("Submodule initialization error.")
sys.exit(1)