Skip to content

Commit

Permalink
Update sleigh portfile to latest cmake-refactor commit
Browse files Browse the repository at this point in the history
TODO: We should split out the sleigh compiler tool into its own port to
support cross-compilation better. The host only needs the compiler and
not the libraries
  • Loading branch information
ekilmer committed Aug 4, 2022
1 parent 3a6cf4b commit 425ebe3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
20 changes: 12 additions & 8 deletions ports/sleigh/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lifting-bits/sleigh
REF 814b41c45dd4ce357bd1982a6c7e01c3dbcc1aa8 # cmake-presets branch, unmerged
SHA512 ff0273f092f3f546f4beed50d0dba8cdb885a4ef3d623acd62b3fb2cfe50c5a20993ca7d193dd8170847676e86177362f338e5d4ac20a8080b6f0bb253ea9ac8
REF 04db45f0b73372aa038e79b7e3fc44c3eb14732b # cmake-presets branch, unmerged
SHA512 f1ed643e25a021f42bcb201a184bb453d8a546df4c1e0157fad3d36ff883ddb1dc5076610f074e8ae184eb389d60dbd0f03e9000d1cc60b629578d95e7a99d0c
HEAD_REF master
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
"sleighspecs" sleigh_BUILD_SLEIGHSPECS # compiled sla files
"spec-compiler" sleigh_BUILD_SPECCOMPILER # Compiler
"decompiler" sleigh_BUILD_DECOMPILER # Decompiler
"ghidra" sleigh_BUILD_GHIDRA # Ghidra
"support" sleigh_BUILD_SUPPORT # Support libraries
"extra-tools" sleigh_BUILD_EXTRATOOLS # Extra tools
"spec-compiler" sleigh_BUILD_SPECCOMPILER # sla spec compiler
"decompiler" sleigh_BUILD_DECOMPILER # decompiler
"ghidra" sleigh_BUILD_GHIDRA # ghidra tool
"support" sleigh_BUILD_SUPPORT # support libraries
"extra-tools" sleigh_BUILD_EXTRATOOLS # extra tools
)

set(tools "")
Expand Down Expand Up @@ -84,4 +84,8 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(
INSTALL "${SOURCE_PATH}/LICENSE"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)
16 changes: 10 additions & 6 deletions ports/sleigh/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sleigh",
"version": "10.1.4",
"version": "10.1.5",
"description": "Unofficial CMake build for Ghidra SLEIGH",
"homepage": "https://github.com/lifting-bits/sleigh",
"dependencies": [
Expand All @@ -11,13 +11,17 @@
{
"name": "vcpkg-cmake-config",
"host": true
},
{
"name": "sleigh",
"host": true,
"default-features": false,
"features": [
"spec-compiler"
]
}
],
"default-features": [
"sleighspecs",
"support",
"tools"
],
"default-features": [],
"features": {
"decompiler": {
"description": "Build the decompiler tool"
Expand Down
14 changes: 2 additions & 12 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
{
"name": "maat",
"version-semver": "0.5.1",
"builtin-baseline": "cef0b3ec767df6e83806899fe9525f6cf8d7bc91",
"dependencies": [
"gmp",
"lief",
{
"name": "sleigh",
"default-features": false,
"features": [
"spec-compiler"
]
},
"sleigh",
"z3"
],
"default-features": []
]
}

0 comments on commit 425ebe3

Please sign in to comment.