vcpkg/ports/directxtex/usage
Chuck Walbourn 2f29964660
[directxtex] Update for March 2024 release (#37233)
In addition to updating for the latest release on GitHub, this adds
support for three new *features*:

* **jpeg** this adds JPEG support for Linux (Windows already supports
JPEG via the built-in WIC codec)
* **png** this adds PNG support for Linux (Windows already supports PNG
via the built-in WIC codec)
* **xbox** this builds the library for PC but with Xbox extensions for
development. Requires the Microsoft GDKX. By default it targets Xbox
Series X|S. To target Xbox One instead, you can use a triplet variable
as described in the update usage.
2024-03-11 20:16:53 -07:00

12 lines
436 B
Plaintext

The DirectXTex package provides CMake targets:
find_package(directxtex CONFIG REQUIRED)
target_link_libraries(main PRIVATE Microsoft::DirectXTex)
For the 'xbox' feature, it defaults to targeting Xbox Series X|S. To set it to Xbox One,
create a custom triplet from x64-windows with the addition of the following:
if (PORT STREQUAL "directxtex")
set(DIRECTXTEX_XBOX_CONSOLE_TARGET "xboxone")
endif()