mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 06:37:55 +08:00
968c5eba7b
* [xnnpack] create a new port * [xnnpack] create a patch * [cpuinfo] update to latest * [cpuinfo] update baseline and port SHA * Update ports/cpuinfo/fix-install.patch Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update ports/cpuinfo/fix-install.patch Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update ports/cpuinfo/portfile.cmake Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update ports/cpuinfo/fix-install.patch Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * [cpuinfo] update port SHA * [cpuinfo] recover find_package * fixup target path to `share/unofficial-cpuinfo` * change IMPORTED target name to `unofficial::cpuinfo::cpuinfo` * [fbgemm] resolve failure after cpuinfo rename * change cpuinfo::cpuinfo to unofficial * [fbgemm] update port version * [nnpack] use changes target name * [nnpack] update port-version * [pthreadpool] support find_package * update to latest source code * [pthreadpool] update port version * [pthreadpool] support uwp * use WindowStore in platform check * [xnnpack] support find_package * windows: static build * export with namespace `unofficial::` * [xnnpack] update code to latest * change snapshot to resolve linux compile errors * [xnnpack] "supports" in manifest * update baseline & port SHA * [xnnpack] use 'vcpkg-cmake' ports * update port git-tree SHA * [xnnpack] remove unused configure options * [xnnpack] update code version * snapshot: 21/04/10 -> 21/05/17 Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Billy Robert ONeal III <bion@microsoft.com>
34 lines
1.0 KiB
CMake
34 lines
1.0 KiB
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/XNNPACK
|
|
REF 5223fd1922d9d965ddb07865d1d13293069fab65 # 2021-05-17
|
|
SHA512 5c1eb9171a046c683d5a96ae70b6dab36c415c981e8f29857d16ad67afa22681f0fe6f7623527200fd954403d50b036bb2892ba44e397d639860b9ec4873e7c6
|
|
HEAD_REF master
|
|
PATCHES
|
|
use-packages.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DXNNPACK_USE_SYSTEM_LIBS=ON
|
|
-DXNNPACK_ENABLE_ASSEMBLY=ON
|
|
-DXNNPACK_ENABLE_MEMOPT=ON
|
|
-DXNNPACK_ENABLE_SPARSE=ON
|
|
-DXNNPACK_BUILD_TESTS=OFF
|
|
-DXNNPACK_BUILD_BENCHMARKS=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
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
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
|
)
|