[asmtk] Fix downstream usage (#32451)

* [asmtk] fix static downstream usage

* v db
This commit is contained in:
Alexander Neumann 2023-07-11 02:15:28 +02:00 committed by GitHub
parent 4c21df20b2
commit d25dff35e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 1 deletions

View File

@ -25,6 +25,13 @@ vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asmtk) vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asmtk)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/asmtk/globals.h" "!defined(ASMTK_STATIC)" "0")
endif()
set(cmakefile "${CURRENT_PACKAGES_DIR}/share/asmtk/asmtk-config.cmake")
file(READ "${cmakefile}" contents)
file(WRITE "${cmakefile}" "include(CMakeFindDependencyMacro)\nfind_dependency(asmjit)\n${contents}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")

View File

@ -1,6 +1,7 @@
{ {
"name": "asmtk", "name": "asmtk",
"version-date": "2022-11-06", "version-date": "2022-11-06",
"port-version": 1,
"description": "Assembler toolkit based on AsmJit ", "description": "Assembler toolkit based on AsmJit ",
"homepage": "https://github.com/asmjit/asmtk", "homepage": "https://github.com/asmjit/asmtk",
"supports": "!arm", "supports": "!arm",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "29f1e796d085204c9552c62adbe7279acfd8f3d9",
"version-date": "2022-11-06",
"port-version": 1
},
{ {
"git-tree": "9805dcacbdaa6f23d28fac07d973d22c2d00aec5", "git-tree": "9805dcacbdaa6f23d28fac07d973d22c2d00aec5",
"version-date": "2022-11-06", "version-date": "2022-11-06",

View File

@ -250,7 +250,7 @@
}, },
"asmtk": { "asmtk": {
"baseline": "2022-11-06", "baseline": "2022-11-06",
"port-version": 0 "port-version": 1
}, },
"assimp": { "assimp": {
"baseline": "5.2.5", "baseline": "5.2.5",