mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[DirectXMesh] Add support build for DirectX12
This commit is contained in:
parent
a3a6e70344
commit
3229d17dc8
@ -1,4 +1,4 @@
|
||||
Source: directxmesh
|
||||
Version: dec2019
|
||||
Version: dec2019-1
|
||||
Homepage: https://walbourn.github.io/directxmesh
|
||||
Description: DirectXMesh geometry processing library
|
@ -1,10 +1,4 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
if(NOT VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
||||
message(FATAL_ERROR "DirectXMesh only supports dynamic CRT linkage")
|
||||
endif()
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
@ -37,6 +31,16 @@ else()
|
||||
set(SLN_NAME "Desktop_${VS_VERSION}_Win10")
|
||||
else()
|
||||
set(SLN_NAME "Desktop_${VS_VERSION}")
|
||||
|
||||
# fix solution file to include DirectX 12 in build
|
||||
file(READ ${SOURCE_PATH}/DirectXMesh/DirectXMesh_${SLN_NAME}.vcxproj _contents)
|
||||
string(REPLACE "_WIN32_WINNT=0x0601" "_WIN32_WINNT=0x0A00" _contents "${_contents}")
|
||||
file(WRITE ${SOURCE_PATH}/DirectXMesh/DirectXMesh_${SLN_NAME}.vcxproj "${_contents}")
|
||||
|
||||
# fix solution file to include DirectX 12 in build
|
||||
file(READ ${SOURCE_PATH}/Meshconvert/Meshconvert_${SLN_NAME}.vcxproj _contents)
|
||||
string(REPLACE "_WIN32_WINNT=0x0601" "_WIN32_WINNT=0x0A00" _contents "${_contents}")
|
||||
file(WRITE ${SOURCE_PATH}/Meshconvert/Meshconvert_${SLN_NAME}.vcxproj "${_contents}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user