-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[yasm/yasm-tool] Incorporate yasm-tool into yasm #18816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
c35a661
[yasm/yasm-tool] Remove port yasm-tool
105a82a
[vcpkg_copy_tools/vcpkg_copy_tool_dependencies] Add option DYNAMIC_DE…
c8ab16d
[gmp] Switch dependency yasm-tool to yasm
40497a6
Update docs
3eda1b7
update docs
75f540e
Add keyword TOOL_DIR to all used ports
ef230d1
Apply suggestion
f6f3b99
fix typo
2a122d9
typo
0c70aa2
Update doc
7e5d4fe
Fix path
10bda64
set TOOL_DIR default value
d8b2e83
update doc
edcef24
Correct the tool path
0de469f
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/…
5f533f6
Merge branch 'dev/jack/18746' of https://github.com/JackBoosY/vcpkg i…
c0ed2ca
version
5543487
version
dcbdaa3
change to version
8f9cb33
version
670e928
restore unnecessary changes
14d35f5
Correct code
a6c385b
version
c5affe2
[gmp] Change dependency yasm-tool to yasm
0021966
Update doc
94cfd28
Change to host path instead
b209da2
version
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,35 @@ | ||
| if (NOT VCPKG_TARGET_IS_WINDOWS) | ||
| message(FATAL_ERROR "${PORT} only supports windows") | ||
| elseif (TRIPLET_SYSTEM_ARCH MATCHES "arm") | ||
| message(FATAL_ERROR "ARM is currently not supported.") | ||
| elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore) | ||
| message(FATAL_ERROR "Error: UWP builds are currently not supported.") | ||
| endif() | ||
| vcpkg_fail_port_install(ON_TARGET "uwp") | ||
|
|
||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO yasm/yasm | ||
| REF v1.3.0 | ||
| SHA512 f5053e2012e0d2ce88cc1cc06e3bdb501054aed5d1f78fae40bb3e676fe2eb9843d335a612d7614d99a2b9e49dca998d57f61b0b89fac8225afa4ae60ae848f1 | ||
| REF 009450c7ad4d425fa5a10ac4bd6efbd25248d823 # 1.3.0 plus bugfixes for https://github.com/yasm/yasm/issues/153 | ||
| SHA512 a542577558676d11b52981925ea6219bffe699faa1682c033b33b7534f5a0dfe9f29c56b32076b68c48f65e0aef7c451be3a3af804c52caa4d4357de4caad83c | ||
| HEAD_REF master | ||
| ) | ||
|
|
||
| vcpkg_find_acquire_program(PYTHON2) | ||
| get_filename_component(PYTHON_PATH ${PYTHON2} DIRECTORY) | ||
| vcpkg_add_to_path("${PYTHON_PATH}") | ||
| vcpkg_find_acquire_program(PYTHON3) | ||
| get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY) | ||
| vcpkg_add_to_path("${PYTHON3_DIR}") | ||
|
|
||
| vcpkg_configure_cmake( | ||
| SOURCE_PATH ${SOURCE_PATH} | ||
| PREFER_NINJA | ||
| OPTIONS | ||
| -DENABLE_NLS=OFF | ||
| -DYASM_BUILD_TESTS=OFF | ||
| ) | ||
|
|
||
| vcpkg_install_cmake() | ||
|
|
||
| file(REMOVE | ||
| ${CURRENT_PACKAGES_DIR}/debug/bin/vsyasm.exe | ||
| ${CURRENT_PACKAGES_DIR}/debug/bin/yasm.exe | ||
| ${CURRENT_PACKAGES_DIR}/debug/bin/ytasm.exe | ||
| ) | ||
|
|
||
| file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/${PORT}) | ||
| file(RENAME ${CURRENT_PACKAGES_DIR}/bin/vsyasm.exe ${CURRENT_PACKAGES_DIR}/tools/${PORT}/vsyasm.exe) | ||
| file(RENAME ${CURRENT_PACKAGES_DIR}/bin/yasm.exe ${CURRENT_PACKAGES_DIR}/tools/${PORT}/yasm.exe) | ||
| file(RENAME ${CURRENT_PACKAGES_DIR}/bin/ytasm.exe ${CURRENT_PACKAGES_DIR}/tools/${PORT}/ytasm.exe) | ||
|
|
||
| vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT}) | ||
| vcpkg_copy_pdbs() | ||
|
|
||
| if(VCPKG_LIBRARY_LINKAGE STREQUAL static) | ||
| file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) | ||
| if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") | ||
| set(EXTRA_OPTION yasmstd${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}) | ||
| endif() | ||
| vcpkg_copy_tools(TOOL_NAMES vsyasm yasm ytasm DYNAMIC_DEPENS ${EXTRA_OPTION} AUTO_CLEAN) | ||
|
|
||
| file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
|
|
||
| # Handle copyright | ||
| file(COPY ${SOURCE_PATH}/COPYING ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) | ||
| file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) | ||
| file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "name": "yasm", | ||
| "version-semver": "1.3.0", | ||
| "port-version": 1, | ||
| "description": "Yasm is a complete rewrite of the NASM assembler under the “new” BSD License.", | ||
| "homepage": "https://github.com/yasm/yasm", | ||
| "supports": "!uwp" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.