Skip to content

Commit 65b76ba

Browse files
author
Henrich Lauko
committed
ports: Add remill port.
1 parent 409c608 commit 65b76ba

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

ports/remill/portfile.cmake

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO lifting-bits/remill
4+
REF 3de75e999299c6b7a071febfd1e74271c7004adc
5+
SHA512 d2d9aa1762ac2c866b2788c842afabf25ce91bb6bc92870b74362fb0e698a49f8949625026e185d4b7d161b2eee051e4f7ed19a6e023139239829d6266f7a0aa
6+
HEAD_REF vcpkg-manifest
7+
)
8+
9+
vcpkg_configure_cmake(
10+
SOURCE_PATH "${SOURCE_PATH}"
11+
PREFER_NINJA
12+
)
13+
14+
vcpkg_install_cmake()
15+
vcpkg_cmake_config_fixup()
16+
17+
file( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
18+
19+
file(
20+
INSTALL "${SOURCE_PATH}/LICENSE"
21+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
22+
RENAME copyright
23+
)
24+
25+
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${lower_package}_usage")
26+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/${lower_package}_usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${lower_package}" RENAME usage)
27+
endif()

ports/remill/remill_usage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The package remill provides CMake targets:
2+
3+
find_package(remill CONFIG REQUIRED)
4+
target_link_libraries(main PRIVATE remill)

ports/remill/vcpkg.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "remill",
3+
"version": "5.0.2",
4+
"port-version": 1,
5+
"description": "A static binary translator.",
6+
"homepage": "https://github.com/lifting-bits/remill",
7+
"license": "Apache-2.0",
8+
"dependencies": [
9+
{
10+
"name": "vcpkg-cmake-config",
11+
"host": true
12+
},
13+
"glog",
14+
"gflags",
15+
"xed",
16+
{
17+
"name": "llvm-14",
18+
"default-features": false,
19+
"features": [
20+
"cxx-common-targets"
21+
]
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)