mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 19:19:01 +08:00
faed44dfa0
* [directx-dxc] new port for DirectX HLSL Compiler * Reformat * Update baseline * It's not strictly a tool only port * Update baseline * Code review feedback * Update baseline * Update ports/directx-dxc/portfile.cmake Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Update ports/directx-dxc/portfile.cmake Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Update ports/directx-dxc/portfile.cmake Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Refresh baseline Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
30 lines
1.0 KiB
CMake
30 lines
1.0 KiB
CMake
|
|
get_filename_component(_dxc_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
get_filename_component(_dxc_root "${_dxc_root}" PATH)
|
|
get_filename_component(_dxc_root "${_dxc_root}" PATH)
|
|
|
|
set(_dxc_exe "${_dxc_root}/tools/directx-dxc/dxc.exe")
|
|
if (EXISTS "${_dxc_exe}")
|
|
|
|
add_library(Microsoft::DirectXShaderCompiler SHARED IMPORTED)
|
|
set_target_properties(Microsoft::DirectXShaderCompiler PROPERTIES
|
|
IMPORTED_LOCATION_RELEASE "${_dxc_root}/bin/dxcompiler.dll"
|
|
IMPORTED_LOCATION_DEBUG "${_dxc_root}/bin/dxcompiler.dll"
|
|
IMPORTED_IMPLIB_RELEASE "${_dxc_root}/lib/dxcompiler.lib"
|
|
IMPORTED_IMPLIB_DEBUG "${_dxc_root}/lib/dxcompiler.lib"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_dxc_root}/include"
|
|
IMPORTED_CONFIGURATIONS "Debug;Release"
|
|
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
|
|
|
|
set(directx-dxc_FOUND TRUE)
|
|
set(DIRECTX_DXC_TOOL ${_dxc_exe})
|
|
|
|
else()
|
|
|
|
set(directx-dxc_FOUND FALSE)
|
|
|
|
endif()
|
|
|
|
unset(_dxc_exe)
|
|
unset(_dxc_root)
|