diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-06-12 23:10:50 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-06-12 23:10:50 -0700 |
| commit | def997b9dd562b31e1648e165fce4d1091621970 (patch) | |
| tree | 1db817c142e8dcf46ce641c6d01a50059b859155 | |
| parent | 08cbf0b3cde9284ec398c1b87d969d9bcaefbed0 (diff) | |
| download | vcpkg-def997b9dd562b31e1648e165fce4d1091621970.tar.gz vcpkg-def997b9dd562b31e1648e165fce4d1091621970.zip | |
[zydis] Add new port (#6861)
| -rw-r--r-- | ports/zydis/CONTROL | 3 | ||||
| -rw-r--r-- | ports/zydis/portfile.cmake | 31 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/zydis/CONTROL b/ports/zydis/CONTROL new file mode 100644 index 000000000..bd4f59d95 --- /dev/null +++ b/ports/zydis/CONTROL @@ -0,0 +1,3 @@ +Source: zydis +Version: 2.0.3 +Description: Fast and lightweight x86/x86-64 disassembler library.
\ No newline at end of file diff --git a/ports/zydis/portfile.cmake b/ports/zydis/portfile.cmake new file mode 100644 index 000000000..412cbdf87 --- /dev/null +++ b/ports/zydis/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO zyantific/zydis + REF v2.0.3 + SHA512 254aee734f93ee51a8b963404f79d6edfd0831867763243b8020c44ec2d7dd4cb7e445248df4a9af7cd2743c020674df482661d59d3278a44d2ad9a2e0611a39 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(GLOB EXES ${CURRENT_PACKAGES_DIR}/bin/*.exe ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe) +if(EXES) + file(REMOVE ${EXES}) +endif() + +if(VCPKG_LIBRARY_LINKAGE STREQUAL static) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) +endif() + +vcpkg_copy_pdbs() + +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) |
