ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
26 lines
886 B
CMake
26 lines
886 B
CMake
# - Try to find hwdata
|
|
# Once done this will define
|
|
#
|
|
# hwdata_DIR - The hwdata directory
|
|
# hwdata_PNPIDS_FILE - File with mapping of hw vendor IDs to names
|
|
# hwdata_FOUND - The hwdata directory exists and contains pnp.ids file
|
|
|
|
# SPDX-FileCopyrightText: 2020 Daniel Vrátil <dvratil@kde.org>
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
if (UNIX AND NOT APPLE)
|
|
find_path(hwdata_DIR NAMES hwdata/pnp.ids HINTS /usr/share ENV XDG_DATA_DIRS)
|
|
find_file(hwdata_PNPIDS_FILE NAMES hwdata/pnp.ids HINTS /usr/share)
|
|
if (NOT hwdata_DIR OR NOT hwdata_PNPIDS_FILE)
|
|
set(hwdata_FOUND FALSE)
|
|
else()
|
|
set(hwdata_FOUND TRUE)
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(hwdata DEFAULT_MSG hwdata_FOUND hwdata_DIR hwdata_PNPIDS_FILE)
|
|
|
|
mark_as_advanced(hwdata_FOUND hwdata_DIR hwdata_PNPIDS_FILE)
|
|
endif()
|