diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/asmjit | |
Diffstat (limited to 'vcpkg/ports/asmjit')
| -rw-r--r-- | vcpkg/ports/asmjit/portfile.cmake | 30 | ||||
| -rw-r--r-- | vcpkg/ports/asmjit/vcpkg.json | 18 |
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/asmjit/portfile.cmake b/vcpkg/ports/asmjit/portfile.cmake new file mode 100644 index 0000000..4a1cee2 --- /dev/null +++ b/vcpkg/ports/asmjit/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO asmjit/asmjit + REF e1b20711cc40c29ec4918b54e328ace96470f6e5 # commited on 2025-01-22 + SHA512 5d40840ce203bcef86d81b3538be7a4443dbcba52735cf9c90bc9c974d3c7e1ab75ff0fd7e2c72533d73884cce93808e63aa2228c2b7c5376aee4437070714a2 + HEAD_REF master +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ASMJIT_STATIC) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DASMJIT_STATIC=${ASMJIT_STATIC} + ) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asmjit) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/asmjit/core/api-config.h" + "#if !defined(ASMJIT_STATIC)" + "#if 0" + ) +endif() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") diff --git a/vcpkg/ports/asmjit/vcpkg.json b/vcpkg/ports/asmjit/vcpkg.json new file mode 100644 index 0000000..a975123 --- /dev/null +++ b/vcpkg/ports/asmjit/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "asmjit", + "version-date": "2025-01-22", + "description": "AsmJit is a lightweight library for machine code generation written in C++ language", + "homepage": "https://asmjit.com/", + "documentation": "https://asmjit.com/doc/", + "license": "Zlib", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |