Skip to content

[triton] Add new port#17224

Closed
illera88 wants to merge 2 commits intomicrosoft:masterfrom
illera88:master
Closed

[triton] Add new port#17224
illera88 wants to merge 2 commits intomicrosoft:masterfrom
illera88:master

Conversation

@illera88
Copy link
Contributor

This PR adds support for Triton

Related: #10942

Alberto Garcia Illera added 2 commits April 11, 2021 16:15
@NancyLi1013 NancyLi1013 added the category:new-port The issue is requesting a new library to be added; consider making a PR! label Apr 12, 2021
@NancyLi1013 NancyLi1013 changed the title Add triton port [triton] Add new port Apr 12, 2021
Version: dev-v0.9
Homepage: https://github.com/JonathanSalwan/Triton
Description: Triton is a Dynamic Binary Analysis (DBA) framework. It provides internal components like a Dynamic Symbolic Execution (DSE) engine, a dynamic taint engine, AST representations of the x86, x86-64, ARM32 and AArch64 Instructions Set Architecture (ISA), SMT simplification passes, an SMT solver interface and, the last but not least, Python bindings.
Build-Depends: z3, capstone, boost-multiprecision, boost-numeric-conversion, boost-math
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,5 @@
Source: triton
Version: dev-v0.9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the version uses a unstable one. I noticed that there are also released versions. Why do you not use the latest release here?

Also, please follow the new policy to rename this field in vcpkg.json.

https://github.com/microsoft/vcpkg/blob/master/docs/users/versioning.md
https://github.com/microsoft/vcpkg/blob/master/docs/users/versioning.reference.md

set(Z3_LIBRARY ${VCPKG_ROOT_DIR}/installed/${TARGET_TRIPLET}/lib/libz3${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX})


vcpkg_configure_cmake(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also prefer to use the new functions in a new port. Since the current functions have deprecated. Please see
https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_configure_cmake.md

Other functions like vcpkg_install_cmake() also needs to be updated.

If we use new functions, vcpkg-cmake is required to be added as a dependency like this:

{
 "name": "vcpkg-cmake",
 "host": true
}

vcpkg_install_cmake()
vcpkg_copy_pdbs()

configure_file("${CURRENT_BUILDTREES_DIR}/src/dev-v0.9-fd0ccd4864.clean/LICENSE.txt" "${CURRENT_PACKAGES_DIR}/share/triton/copyright" COPYONLY)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
configure_file("${CURRENT_BUILDTREES_DIR}/src/dev-v0.9-fd0ccd4864.clean/LICENSE.txt" "${CURRENT_PACKAGES_DIR}/share/triton/copyright" COPYONLY)
configure_file("${CURRENT_BUILDTREES_DIR}/src/dev-v0.9-fd0ccd4864.clean/LICENSE.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)

@NancyLi1013
Copy link
Contributor

Hi @illera88
Can you please address the review suggestions? Thanks.

@NancyLi1013
Copy link
Contributor

@illera88

Is work still being done for this PR?

@NancyLi1013
Copy link
Contributor

Thanks for the PR; we're closing this for now since there's been no response. If you'd like to continue working on it, please reopen and ping us!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:new-port The issue is requesting a new library to be added; consider making a PR!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants