mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Meta: Download PNP ID data with fallible download function
This commit is contained in:
parent
931302c500
commit
e2bcf5fafd
Notes:
sideshowbarker
2024-07-17 20:12:39 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/e2bcf5fafde Pull-request: https://github.com/SerenityOS/serenity/pull/12139
1 changed files with 1 additions and 2 deletions
|
@ -6,9 +6,8 @@ set(PNP_IDS_EXPORT_PATH ${CMAKE_BINARY_DIR}/pnp.ids.html)
|
|||
set(PNP_IDS_INSTALL_PATH ${CMAKE_INSTALL_DATAROOTDIR}/${PNP_IDS_FILE})
|
||||
|
||||
if(ENABLE_PNP_IDS_DOWNLOAD AND NOT EXISTS ${PNP_IDS_EXPORT_PATH})
|
||||
message(STATUS "Downloading PNP ID database from ${PNP_IDS_URL}...")
|
||||
file(MAKE_DIRECTORY ${CMAKE_INSTALL_DATAROOTDIR})
|
||||
file(DOWNLOAD ${PNP_IDS_URL} ${PNP_IDS_EXPORT_PATH} INACTIVITY_TIMEOUT 10)
|
||||
download_file("${PNP_IDS_URL}" "${PNP_IDS_EXPORT_PATH}")
|
||||
|
||||
set(PNP_IDS_HEADER LibEDID/PnpIDs.h)
|
||||
set(PNP_IDS_IMPLEMENTATION LibEDID/PnpIDs.cpp)
|
||||
|
|
Loading…
Reference in a new issue