mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 19:18:59 +08:00
2b1f2ca96a
* [qnnpack] create a new port * [qnnpack] create a patch * [qnnpack] update baseline and port SHA * [qnnpack] update supports * the project only checks linux/osx * Update ports/qnnpack/portfile.cmake Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Update ports/qnnpack/portfile.cmake Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * [qnnpack] apply 'vcpkg-cmake' * [qnnpack] use unofficial-cpuinfo * [qnnpack] fix wrong support expression Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
24 lines
754 B
CMake
24 lines
754 B
CMake
vcpkg_fail_port_install(ON_TARGET "Windows")
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO pytorch/QNNPACK
|
|
REF 7d2a4e9931a82adc3814275b6219a03e24e36b4c
|
|
SHA512 437a835acfedae851a9a8572fa6eea9854dcb8bcca499bc4a2582314e44f5f199778e857932da4aecf943bea7cb2eb5b1c41d4b4ca6075bddbe0f18b2c7b9127
|
|
HEAD_REF master
|
|
PATCHES
|
|
use-packages.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DQNNPACK_BUILD_TESTS=OFF
|
|
-DQNNPACK_BUILD_BENCHMARKS=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
|
|
${CURRENT_PACKAGES_DIR}/debug/bin
|
|
)
|