mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Build: Add ENABLE_PCI_IDS_DOWNLOAD CMake option
This allows disabling the download of the pci.ids database at build time. Addresses concerns raised in #5410.
This commit is contained in:
parent
e59a631511
commit
15ae22f7cc
Notes:
sideshowbarker
2024-07-18 21:43:34 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/15ae22f7ccf Pull-request: https://github.com/SerenityOS/serenity/pull/5627
1 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,8 @@ option(ENABLE_MEMORY_SANITIZER "Enable memory sanitizer testing in gcc/clang" OF
|
|||
option(ENABLE_UNDEFINED_SANITIZER "Enable undefined behavior sanitizer testing in gcc/clang" OFF)
|
||||
option(ENABLE_FUZZER_SANITIZER "Enable fuzzer sanitizer testing in clang" OFF)
|
||||
option(ENABLE_ALL_THE_DEBUG_MACROS "Enable all debug macros to validate they still compile" OFF)
|
||||
option(ENABLE_COMPILETIME_FORMAT_CHECK "Disable compiletime format string checks" ON)
|
||||
option(ENABLE_COMPILETIME_FORMAT_CHECK "Enable compiletime format string checks" ON)
|
||||
option(ENABLE_PCI_IDS_DOWNLOAD "Enable download of the pci.ids database at build time" ON)
|
||||
option(BUILD_LAGOM "Build parts of the system targeting the host OS for fuzzing/testing" OFF)
|
||||
|
||||
add_custom_target(run
|
||||
|
@ -185,7 +186,7 @@ add_subdirectory(Userland)
|
|||
|
||||
set(PCI_IDS_URL https://pci-ids.ucw.cz/v2.2/pci.ids)
|
||||
set(PCI_IDS_PATH ${CMAKE_INSTALL_DATAROOTDIR}/pci.ids)
|
||||
if(NOT EXISTS ${PCI_IDS_PATH})
|
||||
if(ENABLE_PCI_IDS_DOWNLOAD AND NOT EXISTS ${PCI_IDS_PATH})
|
||||
message(STATUS "Downloading PCI ID database from ${PCI_IDS_URL}...")
|
||||
file(DOWNLOAD ${PCI_IDS_URL} ${PCI_IDS_PATH} INACTIVITY_TIMEOUT 10)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue