mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 00:39:07 +08:00
229c0c7ef4
* update asmjit, fbgemm, polyhook2, start asmtk * fix error LNK2019 and update version * update version * version * NEW SHA * revert fbgemm * format * v db * new function * v db * update fbgemm version to 0.4.1 to fix asmjit * v db --------- Co-authored-by: FrankXie <v-frankxie@microsoft.com>
32 lines
916 B
CMake
32 lines
916 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO asmjit/asmjit
|
|
REF ae63ced6dd3bc281a959edd32704b27778622be0 # accessed on 2022-11-06
|
|
SHA512 cc074a17524c610183bcf3af49f387fb46a9f32b625351e8727554ed14d92def0fc12bf751f18e2eb5f623c1619e70f32bad6b3d2126485fdd4d0227ecefd6e4
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ASMJIT_STATIC)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DASMJIT_STATIC=${ASMJIT_STATIC}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asmjit)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/asmjit/core/api-config.h"
|
|
"#if !defined(ASMJIT_STATIC)"
|
|
"#if 0"
|
|
)
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|