Skip to content

Commit

Permalink
[directxtex] update port with omp feature (microsoft#30944)
Browse files Browse the repository at this point in the history
* [directxtex] update port with omp feature

* Update baseline

* Flip feature to no-omp

* Update baseline
  • Loading branch information
walbourn authored Apr 22, 2023
1 parent f35bb44 commit fbdc88f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ports/directxtex/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ vcpkg_check_features(
openexr ENABLE_OPENEXR_SUPPORT
spectre ENABLE_SPECTRE_MITIGATION
tools BUILD_TOOLS
INVERTED_FEATURES
no-omp BC_USE_OPENMP
)

if(VCPKG_TARGET_IS_MINGW AND ("dx11" IN_LIST FEATURES))
Expand All @@ -30,7 +32,7 @@ endif()

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS} -DBUILD_SAMPLE=OFF -DBUILD_TESTING=OFF -DBC_USE_OPENMP=ON
OPTIONS ${FEATURE_OPTIONS} -DBUILD_SAMPLE=OFF -DBUILD_TESTING=OFF
)

vcpkg_cmake_install()
Expand Down
4 changes: 4 additions & 0 deletions ports/directxtex/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "directxtex",
"version-date": "2023-03-30",
"port-version": 1,
"description": "DirectXTex texture processing library",
"homepage": "https://github.com/Microsoft/DirectXTex",
"documentation": "https://github.com/microsoft/DirectXTex/wiki",
Expand Down Expand Up @@ -35,6 +36,9 @@
"dx12": {
"description": "Build with DirectX12 support for Windows 10/Windows 11"
},
"no-omp": {
"description": "Build without using OpenMP support for the BC6H/BC7 software codec"
},
"openexr": {
"description": "Enable OpenEXR support",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,7 @@
},
"directxtex": {
"baseline": "2023-03-30",
"port-version": 0
"port-version": 1
},
"directxtk": {
"baseline": "2023-03-30",
Expand Down
5 changes: 5 additions & 0 deletions versions/d-/directxtex.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "14daf71a3dffda45222d771968e399ec56e1c0e1",
"version-date": "2023-03-30",
"port-version": 1
},
{
"git-tree": "49ac22c74d82cd2a67dc98755d3bd78d1ff3be45",
"version-date": "2023-03-30",
Expand Down

0 comments on commit fbdc88f

Please sign in to comment.