iconbrowser test: URI-encode the remote path
Otherwise the download fails. We need to provide both the encoded path, and the name for the local file, as cmake doesn't provide an encoding helper. Change-Id: Id2d1c197f9ee1326ee229ebd32e5af156c970aed Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 5ecbba1648676a9b2ca6a097c133ff5e9e0a4bd1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7d60aa0ab2
commit
ced0e12987
@ -29,6 +29,7 @@ target_link_libraries(iconbrowser PRIVATE
|
||||
endif()
|
||||
|
||||
if (ANDROID)
|
||||
set(font_uri "MaterialSymbolsOutlined%5BFILL%2CGRAD%2Copsz%2Cwght%5D.ttf")
|
||||
set(font_filename "MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf")
|
||||
if (QT_ALLOW_DOWNLOAD)
|
||||
include(FetchContent)
|
||||
@ -36,7 +37,7 @@ if (ANDROID)
|
||||
FetchContent_Declare(
|
||||
MaterialIcons
|
||||
URL
|
||||
"https://github.com/google/material-design-icons/raw/master/variablefont/${font_filename}"
|
||||
"https://github.com/google/material-design-icons/raw/master/variablefont/${font_uri}"
|
||||
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}
|
||||
DOWNLOAD_NAME "${font_filename}"
|
||||
DOWNLOAD_NO_EXTRACT TRUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user