-
-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adjust DirectTex to all platforms 2 (#2338)
- Loading branch information
1 parent
2556707
commit 10babd2
Showing
8 changed files
with
107 additions
and
55 deletions.
There are no files selected for viewing
Git LFS file not shown
1 change: 1 addition & 0 deletions
1
sources/tools/Stride.TextureConverter.Wrappers/DxtWrapper/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
12 changes: 12 additions & 0 deletions
12
sources/tools/Stride.TextureConverter.Wrappers/DxtWrapper/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
project(DxtWrapper) | ||
cmake_minimum_required(VERSION 3.10) | ||
file(GLOB SRCS *.cpp *.h) | ||
|
||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ../../../../../deps/TextureWrappers/Release/linux-x64) | ||
|
||
find_package(directxtex CONFIG REQUIRED) | ||
|
||
add_library(${PROJECT_NAME} SHARED ${SRCS} ) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "") | ||
|
||
target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectXTex) |
16 changes: 16 additions & 0 deletions
16
sources/tools/Stride.TextureConverter.Wrappers/DxtWrapper/build.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Make sure to install package required packages : vcpkg install directxtex | ||
|
||
param ( | ||
[string]$vcpkg_dir | ||
) | ||
|
||
if(!$vcpkg_dir) | ||
{ | ||
Write-Error "Please provide vpckg directory path" | ||
return; | ||
} | ||
|
||
cmake -B "build" -S . -DCMAKE_TOOLCHAIN_FILE="$vcpkg_dir/scripts/buildsystems/vcpkg.cmake"; | ||
cd build; | ||
make; | ||
cd ..; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters