ladybird/Meta/CMake/pnp_ids.cmake
Tim Schumacher 0598f52fc0 Meta: Remove an outdated MAKE_DIRECTORY call for pnp IDs
We are downloading these directly into the build directory now, and
generating the source code from there, so we no longer need the
manually created directory.

While we are at it, remove two variables that seem to be no longer in
use, and at least one of which is confusing regarding a missing prefix.
2022-08-16 06:07:19 -04:00

28 lines
722 B
CMake

include(${CMAKE_CURRENT_LIST_DIR}/utils.cmake)
set(PNP_IDS_URL http://www.uefi.org/uefi-pnp-export)
set(PNP_IDS_EXPORT_PATH ${CMAKE_BINARY_DIR}/pnp_ids.html)
if (ENABLE_PNP_IDS_DOWNLOAD)
download_file("${PNP_IDS_URL}" "${PNP_IDS_EXPORT_PATH}")
set(PNP_IDS_HEADER PnpIDs.h)
set(PNP_IDS_IMPLEMENTATION PnpIDs.cpp)
set(PNP_IDS_TARGET_PREFIX "")
invoke_generator(
"PnpIDsData"
Lagom::GeneratePnpIDsData
"${PNP_IDS_EXPORT_PATH}"
"${PNP_IDS_TARGET_PREFIX}"
"${PNP_IDS_HEADER}"
"${PNP_IDS_IMPLEMENTATION}"
arguments -p "${PNP_IDS_EXPORT_PATH}"
)
set(PNP_IDS_SOURCES
${PNP_IDS_HEADER}
${PNP_IDS_IMPLEMENTATION}
)
endif()