-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add shell scripts to build texconv with libjpeg and libpng
- Loading branch information
1 parent
4a2cd59
commit 1ce0930
Showing
5 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
# Builds executables with cmake. | ||
# texconv and texassemble will be generated in ./Texconv-Custom-DLL/ | ||
|
||
pushd $(dirname "$0")/../ | ||
mkdir build_exe | ||
cd build_exe | ||
cmake \ | ||
-D CMAKE_BUILD_TYPE=Release\ | ||
-D BUILD_DX11=OFF\ | ||
-D BUILD_DX12=OFF\ | ||
-D CMAKE_POSITION_INDEPENDENT_CODE=ON\ | ||
-D TEXCONV_BUILD_AS_EXE=ON\ | ||
-D TEXCONV_USE_ALL=ON\ | ||
-D ENABLE_LIBJPEG_SUPPORT=ON\ | ||
-D ENABLE_LIBPNG_SUPPORT=ON\ | ||
../ | ||
cmake --build . | ||
cp bin/texconv ../ | ||
cp bin/texassemble ../ | ||
popd |
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,19 @@ | ||
#!/bin/bash | ||
# Builds texconv with cmake. | ||
# libtexconv.so or libtexconv.dylib will be generated in ./Texconv-Custom-DLL/ | ||
|
||
pushd $(dirname "$0")/../ | ||
mkdir build | ||
cd build | ||
cmake \ | ||
-D CMAKE_BUILD_TYPE=Release\ | ||
-D BUILD_DX11=OFF\ | ||
-D BUILD_DX12=OFF\ | ||
-D CMAKE_POSITION_INDEPENDENT_CODE=ON\ | ||
-D TEXCONV_USE_ALL=ON\ | ||
-D ENABLE_LIBJPEG_SUPPORT=ON\ | ||
-D ENABLE_LIBPNG_SUPPORT=ON\ | ||
../ | ||
cmake --build . | ||
cp lib/libtexconv.* ../ | ||
popd |