mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 01:29:00 +08:00
c1d764a742
* Try adding xbox triplets * Update for Gaming Command Prompt usage * Fix directxtk12 shaders for xbox * Add toolchain for xbox * Fix ports for feature builds * Code review feedback * More code review * Code review * WIN32_LEAN_AND_MEAN is too aggressive for many libs * Normalize GDK variable paths * Need to leave oldnames.lib as many libs use POSIX names * More code review feedback * Remove extra file * Use of /DEFAULTLIB fixed 41 ports * Code review feedback * Added basic xbox supports expression * Updates for xbox-aware ports * Update for CMake fixes upstream * Minor synatx fix * Fix up merge issues * Need directx-headers for linux * Missed one port revision * Removed VCPKG_TARGET_IS_XBOX from project scope after upstream fixes * Update baseline * License updates per github-actions bot * Update baseline * Update toolchain to support try_compile for GDK headers * Update port numbers * Update baseline * Don't need directx-dxc for Xbox builds * Update baseline * Update hashes * Code review * Update baseline * Refresh hashes for upstream fixes * Update baseline * Add ms-gdkx stub port * Update baseline * updated ms-gdkx with user-friendly output * Update baseline * Code review for the toolchain file * Update directxkt12 hash * Refresh baseline * Update MSBuild integration to select proper triplet for GDK custom platforms * Update CMake integration to select proper xbox triplet from XBOX_CONSOLE_TARGET * vcpkg.targets update * Code review feedback * Update baseline * Refresh baseline * Code review for MSBuild * Code review for xbox toolchain * vcpkg.cmake codereview --------- Co-authored-by: walbourn <chuckw_walbourn@yahoo.com>
30 lines
969 B
CMake
30 lines
969 B
CMake
cmake_path(SET GRDKLatest "$ENV{GRDKLatest}")
|
|
|
|
find_path(GRDK_H
|
|
NAMES grdk.h
|
|
PATHS "${GRDKLatest}/gameKit/Include"
|
|
)
|
|
|
|
cmake_path(SET GXDKLatest "$ENV{GXDKLatest}")
|
|
|
|
find_path(GXDK_H
|
|
NAMES gxdk.h
|
|
PATHS "${GXDKLatest}/gameKit/Include"
|
|
)
|
|
|
|
if(NOT (GRDK_H AND GXDK_H))
|
|
message(FATAL_ERROR "Ensure you have installed the Microsoft GDK with Xbox Extensions installed. See https://aka.ms/gdkx.")
|
|
endif()
|
|
|
|
# Output user-friendly status message for installed edition.
|
|
if(${GXDKLatest} MATCHES ".*/([0-9][0-9])([0-9][0-9])([0-9][0-9])/.*")
|
|
set(_months "null" "January" "February" "March" "April" "May" "June" "July" "August" "September" "October" "November" "December")
|
|
list(GET _months ${CMAKE_MATCH_2} month)
|
|
set(update "")
|
|
if(${CMAKE_MATCH_3} GREATER 0)
|
|
set(update " Update ${CMAKE_MATCH_3}")
|
|
endif()
|
|
message(STATUS "Found the Microsoft GDK with Xbox Extensions (${month} 20${CMAKE_MATCH_1}${update})")
|
|
endif()
|
|
|
|
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled) |