2020-06-12 14:32:03 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ThePhD/infoware
|
2023-05-16 05:09:58 +08:00
|
|
|
REF d64a0c948593c0555115f60c79225c0b9ae09510
|
|
|
|
SHA512 3794cb78a1422bfc065037abbae81259e6061ba7b12ebd7b88581118e8eeebaf92d80cf7793b0f9f1da6754baf52835a6891663593dd0b0a38009a9cb141082b
|
2020-06-12 14:32:03 +08:00
|
|
|
HEAD_REF master
|
2023-05-16 05:09:58 +08:00
|
|
|
PATCHES
|
|
|
|
cross-build.diff
|
2020-06-12 14:32:03 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-06-19 02:06:31 +08:00
|
|
|
FEATURES
|
2023-05-16 05:09:58 +08:00
|
|
|
d3d INFOWARE_USE_D3D
|
|
|
|
opencl INFOWARE_USE_OPENCL
|
|
|
|
opengl INFOWARE_USE_OPENGL
|
|
|
|
x11 INFOWARE_USE_X11
|
2020-06-12 14:32:03 +08:00
|
|
|
)
|
|
|
|
|
2023-05-16 05:09:58 +08:00
|
|
|
if(VCPKG_CROSSCOMPILING)
|
|
|
|
list(APPEND FEATURE_OPTIONS "-DHOST_PCI_DATA=${CURRENT_HOST_INSTALLED_DIR}/share/${PORT}/pci_data.hpp")
|
|
|
|
else()
|
|
|
|
acquire_pciids(pciids_path)
|
|
|
|
list(APPEND FEATURE_OPTIONS "-DINFOWARE_PCI_IDS_PATH=${pciids_path}")
|
|
|
|
endif()
|
2020-06-12 14:32:03 +08:00
|
|
|
|
2021-06-19 02:06:31 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-05-16 05:09:58 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-06-12 14:32:03 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DINFOWARE_EXAMPLES=OFF
|
|
|
|
-DINFOWARE_TESTS=OFF
|
2023-05-16 05:09:58 +08:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Git=1
|
2020-06-12 14:32:03 +08:00
|
|
|
)
|
|
|
|
|
2021-06-19 02:06:31 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2020-06-12 14:32:03 +08:00
|
|
|
|
2023-05-16 05:09:58 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|