aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/bddisasm
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/bddisasm
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/bddisasm')
-rw-r--r--vcpkg/ports/bddisasm/portfile.cmake29
-rw-r--r--vcpkg/ports/bddisasm/usage11
-rw-r--r--vcpkg/ports/bddisasm/vcpkg.json20
3 files changed, 60 insertions, 0 deletions
diff --git a/vcpkg/ports/bddisasm/portfile.cmake b/vcpkg/ports/bddisasm/portfile.cmake
new file mode 100644
index 0000000..f0c0adc
--- /dev/null
+++ b/vcpkg/ports/bddisasm/portfile.cmake
@@ -0,0 +1,29 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO bitdefender/bddisasm
+ REF "v${VERSION}"
+ SHA512 5c1b8b8b9a29db76ce6197674e662fdc526e89372a84f7fac8e74cf4cc53bfab8d55c096cdb3f344fcfaa6a4d54a5bef79e8f1cf9131e497636072523b2cf3ec
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DBDD_INCLUDE_TOOL=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/bddisasm)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+
+vcpkg_fixup_pkgconfig()
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/bddisasm/usage b/vcpkg/ports/bddisasm/usage
new file mode 100644
index 0000000..1c6e5d2
--- /dev/null
+++ b/vcpkg/ports/bddisasm/usage
@@ -0,0 +1,11 @@
+bddisasm provides CMake targets:
+
+ find_package(bddisasm CONFIG REQUIRED)
+ # Decoder library.
+ target_link_libraries(main PRIVATE bddisasm::bddisasm)
+ # Shellcode emulator library.
+ target_link_libraries(main PRIVATE bddisasm::bdshemu)
+
+bddisasm provides pkg-config modules:
+
+ lbddisasm
diff --git a/vcpkg/ports/bddisasm/vcpkg.json b/vcpkg/ports/bddisasm/vcpkg.json
new file mode 100644
index 0000000..964e8c9
--- /dev/null
+++ b/vcpkg/ports/bddisasm/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "bddisasm",
+ "version": "2.2.0",
+ "maintainers": "Cristi Anichitei <ianichitei@bitdefender.com>",
+ "description": "bddisasm is a fast, lightweight, x86/x64 instruction decoder and emulator.",
+ "homepage": "https://github.com/bitdefender/bddisasm",
+ "documentation": "https://bddisasm.readthedocs.io/en/latest/",
+ "license": "Apache-2.0",
+ "supports": "!osx & !android",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}