Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ include(CMakeDependentOption)

# Plugins to build
option(WITH_ASSIMPIMPORTER "Build AssimpImporter plugin" OFF)
option(WITH_BASISIMAGECONVERTER "Build BasisImageConverter plugin" OFF)
option(WITH_BASISIMPORTER "Build BasisImporter plugin" OFF)
option(WITH_DDSIMPORTER "Build DdsImporter plugin" OFF)
option(WITH_DEVILIMAGEIMPORTER "Build DevIlImageImporter plugin" OFF)
Expand Down
3 changes: 3 additions & 0 deletions doc/building-plugins.dox
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ By default no plugins are built and you need to select them manually:

- `WITH_ASSIMPIMPORTER` --- Build the @ref Trade::AssimpImporter "AssimpImporter"
plugin. Depends on [Assimp](http://assimp.org/).
- `WITH_BASISIMAGECONVERTER` --- Build the
@ref Trade::BasisImageConverter "BasisImageConverter" plugin. Depends on
[Basis Universal](https://github.com/binomialLLC/basis_universal).
- `WITH_BASISIMPORTER` --- Build the @ref Trade::BasisImporter "BasisImporter"
plugin. Depends on [Basis Universal](https://github.com/binomialLLC/basis_universal)
--- if you are on Vcpkg, it will "just work", otherwise you need to
Expand Down
2 changes: 2 additions & 0 deletions doc/changelog-plugins.dox
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ namespace Magnum {
- New @ref Trade::BasisImporter "BasisImporter" plugin for importing
Basis files (see [mosra/magnum-plugins#62](https://github.com/mosra/magnum-plugins/pull/62));
support for Basis-encoded textures in @ref Trade::TinyGltfImporter "TinyGltfImporter"
- New @ref Trade::BasisImageConverter "BasisImageConverter" plugin for writing
Basis files (see [mosra/magnum-plugins#65](https://github.com/mosra/magnum-plugins/pull/65))

@subsection changelog-plugins-latest-changes Changes and improvements

Expand Down
1 change: 1 addition & 0 deletions doc/cmake-plugins.dox
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ This command tries to find Magnum plugins and then defines:
This command will not try to find any actual plugin. The plugins are:

- `AssimpImporter` --- @ref Trade::AssimpImporter "AssimpImporter" plugin
- `BasisImageConverter` --- @ref Trade::BasisImageConverter "BasisImageConverter" plugin
- `BasisImporter` --- @ref Trade::BasisImporter "BasisImporter" plugin
- `DdsImporter` --- @ref Trade::DdsImporter "DdsImporter" plugin
- `DevIlImageImporter` --- @ref Trade::DevIlImageImporter "DevIlImageImporter"
Expand Down
1 change: 1 addition & 0 deletions doc/credits.dox
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ namespace Magnum {
fixes for @ref Trade::AssimpImporter "AssimpImporter" workarounds and bugs
- **Jonathan Hale** ([\@Squareys](https://github.com/Squareys)) ---
@ref Trade::AssimpImporter "AssimpImporter",
@ref Trade::BasisImageConverter "BasisImageConverter",
@ref Trade::BasisImporter "BasisImporter",
@ref Trade::DdsImporter "DdsImporter" and
@ref Audio::StbVorbisImporter "StbVorbisAudioImporter" plugins,
Expand Down
3 changes: 3 additions & 0 deletions doc/namespaces.dox
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
/** @dir MagnumPlugins/AssimpImporter
* @brief Plugin @ref Magnum::Trade::AssimpImporter
*/
/** @dir MagnumPlugins/BasisImageConverter
* @brief Plugin @ref Magnum::Trade::BasisImageConverter
*/
/** @dir MagnumPlugins/BasisImporter
* @brief Plugin @ref Magnum::Trade::BasisImporter
*/
Expand Down
9 changes: 8 additions & 1 deletion modules/FindMagnumPlugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# This command will not try to find any actual plugin. The plugins are:
#
# AssimpImporter - Assimp importer
# BasisImageConverter - Basis image converter
# BasisImporter - Basis importer
# DdsImporter - DDS importer
# DevIlImageImporter - Image importer using DevIL
Expand Down Expand Up @@ -123,7 +124,7 @@ mark_as_advanced(MAGNUMPLUGINS_INCLUDE_DIR)
# components from other repositories)
set(_MAGNUMPLUGINS_LIBRARY_COMPONENT_LIST OpenDdl)
set(_MAGNUMPLUGINS_PLUGIN_COMPONENT_LIST
AssimpImporter BasisImporter DdsImporter DevIlImageImporter
AssimpImporter BasisImageConverter BasisImporter DdsImporter DevIlImageImporter
DrFlacAudioImporter DrMp3AudioImporter DrWavAudioImporter Faad2AudioImporter
FreeTypeFont HarfBuzzFont JpegImageConverter JpegImporter
MiniExrImageConverter OpenGexImporter PngImageConverter PngImporter
Expand Down Expand Up @@ -273,6 +274,12 @@ foreach(_component ${MagnumPlugins_FIND_COMPONENTS})
set_property(TARGET MagnumPlugins::${_component} APPEND PROPERTY
INTERFACE_LINK_LIBRARIES Assimp::Assimp)

# BasisImageConverter plugin dependencies
if(_component STREQUAL BasisImageConverter)
find_package(BasisUniversal COMPONENTS Encoder)
set_property(TARGET MagnumPlugins::${_component} APPEND PROPERTY
INTERFACE_LINK_LIBRARIES BasisUniversal::Encoder)

# BasisImporter has only compiled-in dependencies, except in case of
# vcpkg, then we need to link to a library. Use a similar logic as in
# FindBasisUniversal, so in case an user wants to disable this, they
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ build() {
-DBUILD_TESTS=ON \
-DBUILD_GL_TESTS=ON \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_BASISIMPORTER=ON \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-android-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ build() {
-DMAGNUM_INCLUDE_INSTALL_PREFIX=/opt/android-ndk/sysroot/usr \
-DWITH_ASSIMPIMPORTER=OFF \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=OFF \
-DWITH_DRFLACAUDIOIMPORTER=OFF \
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-clang
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ build() {
-DBUILD_GL_TESTS=ON \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
-DWITH_DRFLACAUDIOIMPORTER=ON \
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-clang-addesssanitizer
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ build() {
-DBUILD_GL_TESTS=ON \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
-DWITH_DRFLACAUDIOIMPORTER=ON \
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ build() {
-DBUILD_GL_TESTS=ON \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
-DWITH_DRFLACAUDIOIMPORTER=ON \
Expand Down
2 changes: 2 additions & 0 deletions package/archlinux/PKGBUILD-emscripten
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ build() {

# For Basis disabling everything we don't support in Magnum + BC7 as its
# tables are YUUUGE (see the Basis README for details)
# WITH_BASISIMAGECONVERTER is disabled as it requires pthreads.
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/lib/emscripten/system \
-DCMAKE_CXX_FLAGS="-DBASISD_SUPPORT_BC7=0 -DBASISD_SUPPORT_ATC=0 -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_PVRTC2=0" \
-DBASIS_UNIVERSAL_DIR=/opt/basis-universal \
-DWITH_ASSIMPIMPORTER=OFF \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=OFF \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=OFF \
-DWITH_DRFLACAUDIOIMPORTER=ON \
Expand Down
2 changes: 2 additions & 0 deletions package/archlinux/PKGBUILD-emscripten-wasm
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ build() {

# For Basis disabling everything we don't support in Magnum + BC7 as its
# tables are YUUUGE (see the Basis README for details)
# WITH_BASISIMAGECONVERTER is disabled as it requires pthreads.
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/lib/emscripten/system \
-DCMAKE_CXX_FLAGS="-DBASISD_SUPPORT_BC7=0 -DBASISD_SUPPORT_ATC=0 -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_PVRTC2=0" \
-DBASIS_UNIVERSAL_DIR=/opt/basis-universal \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=OFF \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=OFF \
-DWITH_DRFLACAUDIOIMPORTER=ON \
Expand Down
2 changes: 2 additions & 0 deletions package/archlinux/PKGBUILD-emscripten-wasm-webgl2
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ build() {

# For Basis disabling everything we don't support in Magnum + BC7 as its
# tables are YUUUGE (see the Basis README for details)
# WITH_BASISIMAGECONVERTER is disabled as it requires pthreads.
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/lib/emscripten/system \
-DCMAKE_CXX_FLAGS="-DBASISD_SUPPORT_BC7=0 -DBASISD_SUPPORT_ATC=0 -DBASISD_SUPPORT_FXT1=0 -DBASISD_SUPPORT_PVRTC2=0" \
-DBASIS_UNIVERSAL_DIR=/home/mosra/Code/basis_universal \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=OFF \
Comment thread
Squareys marked this conversation as resolved.
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=OFF \
-DWITH_DRFLACAUDIOIMPORTER=ON \
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-gcc48
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ build() {
-DBUILD_GL_TESTS=ON \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
-DWITH_DRFLACAUDIOIMPORTER=ON \
Expand Down
4 changes: 4 additions & 0 deletions package/archlinux/PKGBUILD-mingw-w64
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ build() {
-DBASIS_UNIVERSAL_DIR=/opt/basis-universal \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=OFF \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=OFF \
-DWITH_DRFLACAUDIOIMPORTER=ON \
Expand Down Expand Up @@ -50,12 +51,15 @@ build() {
mkdir -p "$_rootdir/build-mingw-w64-64"
cd "$_rootdir/build-mingw-w64-64"

# WITH_BASISIMAGECONVERTER is disabled, since Basis Universal currently does not
# support building on MinGW.
cmake .. \
-DCMAKE_TOOLCHAIN_FILE=../toolchains/archlinux/basic-mingw-w64-64.cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/x86_64-w64-mingw32 \
-DBASIS_UNIVERSAL_DIR=/opt/basis-universal \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=OFF \
-DWITH_BASISIMPORTER=ON \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=OFF \
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-release
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ build() {
-DBUILD_GL_TESTS=ON \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
-DWITH_DRFLACAUDIOIMPORTER=ON \
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/magnum-plugins-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_BASISIMPORTER=OFF \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/magnum-plugins/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_BASISIMPORTER=OFF \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
Expand Down
3 changes: 3 additions & 0 deletions package/ci/appveyor-desktop-mingw.bat
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,16 @@ cd .. && cd ..

rem Build. BUILD_GL_TESTS is enabled just to be sure, it should not be needed
rem by any plugin.
rem WITH_BASISIMAGECONVERTER is disabled, since Basis Universal currently does not
rem support building on MinGW.
mkdir build && cd build || exit /b
cmake .. ^
-DCMAKE_CXX_FLAGS="--coverage" ^
-DCMAKE_BUILD_TYPE=Debug ^
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/openal;%APPVEYOR_BUILD_FOLDER%/devil ^
-DWITH_ASSIMPIMPORTER=OFF ^
-DWITH_BASISIMAGECONVERTER=OFF ^
-DWITH_BASISIMPORTER=ON -DBASIS_UNIVERSAL_DIR=%APPVEYOR_BUILD_FOLDER%/basis_universal ^
-DWITH_DDSIMPORTER=ON ^
-DWITH_DEVILIMAGEIMPORTER=ON ^
Expand Down
1 change: 1 addition & 0 deletions package/ci/appveyor-desktop.bat
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ cmake .. ^
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/openal;%APPVEYOR_BUILD_FOLDER%/devil;C:/Tools/vcpkg/installed/x64-windows ^
-DWITH_ASSIMPIMPORTER=OFF ^
-DWITH_BASISIMAGECONVERTER=ON ^
-DWITH_BASISIMPORTER=ON -DBASIS_UNIVERSAL_DIR=%APPVEYOR_BUILD_FOLDER%/basis_universal ^
-DWITH_DDSIMPORTER=ON ^
-DWITH_DEVILIMAGEIMPORTER=ON ^
Expand Down
1 change: 1 addition & 0 deletions package/ci/appveyor-rt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ cmake .. ^
-DCMAKE_SYSTEM_VERSION=10.0 ^
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/deps ^
-DWITH_ASSIMPIMPORTER=OFF ^
-DWITH_BASISIMAGECONVERTER=ON ^
-DWITH_BASISIMPORTER=ON -DBASIS_UNIVERSAL_DIR=%APPVEYOR_BUILD_FOLDER%/basis_universal ^
-DWITH_DDSIMPORTER=ON ^
-DWITH_DEVILIMAGEIMPORTER=OFF ^
Expand Down
1 change: 1 addition & 0 deletions package/ci/travis-android-arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ cmake .. \
-DCMAKE_PREFIX_PATH=$HOME/deps \
-DCMAKE_FIND_ROOT_PATH=$HOME/deps \
-DWITH_ASSIMPIMPORTER=OFF \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_BASISIMPORTER=ON -DBASIS_UNIVERSAL_DIR=$HOME/basis_universal \
-DWITH_DDSIMPORTER=ON \
-DWITH_DRFLACAUDIOIMPORTER=OFF \
Expand Down
1 change: 1 addition & 0 deletions package/ci/travis-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ cmake .. \
-DCMAKE_INSTALL_RPATH=$HOME/deps/lib \
-DCMAKE_BUILD_TYPE=Debug \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_BASISIMPORTER=ON -DBASIS_UNIVERSAL_DIR=$HOME/basis_universal \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
Expand Down
2 changes: 2 additions & 0 deletions package/ci/travis-emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ cd ..

# Crosscompile. BUILD_GL_TESTS is enabled just to be sure, it should not be
# needed by any plugin.
# WITH_BASISIMAGECONVERTER is disabled as it requires pthreads.
mkdir build-emscripten && cd build-emscripten
cmake .. \
-DCORRADE_RC_EXECUTABLE=$HOME/deps-native/bin/corrade-rc \
Expand All @@ -85,6 +86,7 @@ cmake .. \
-DCMAKE_INSTALL_PREFIX=$HOME/deps \
-DCMAKE_FIND_ROOT_PATH=$HOME/deps \
-DWITH_ASSIMPIMPORTER=OFF \
-DWITH_BASISIMAGECONVERTER=OFF \
-DWITH_BASISIMPORTER=ON -DBASIS_UNIVERSAL_DIR=$HOME/basis_universal \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=OFF \
Expand Down
1 change: 1 addition & 0 deletions package/ci/travis-ios-simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ cmake .. \
-DCORRADE_RC_EXECUTABLE=$HOME/deps-native/bin/corrade-rc \
-DCMAKE_INSTALL_PREFIX=$HOME/deps \
-DWITH_ASSIMPIMPORTER=OFF \
-DWITH_BASISIMAGECONVERTER=ON \
-DWITH_BASISIMPORTER=ON -DBASIS_UNIVERSAL_DIR=$HOME/basis_universal \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=OFF \
Expand Down
1 change: 1 addition & 0 deletions package/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ override_dh_auto_configure:
dh_auto_configure -- \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=OFF \
-DWITH_BASISIMPORTER=OFF \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ src_configure() {
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
-DCMAKE_BUILD_TYPE=Release
-DWITH_ASSIMPIMPORTER=ON
-DWITH_BASISIMAGECONVERTER=OFF
-DWITH_BASISIMPORTER=OFF
-DWITH_DDSIMPORTER=ON
-DWITH_DEVILIMAGEIMPORTER=ON
Expand Down
2 changes: 1 addition & 1 deletion package/homebrew/magnum-plugins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MagnumPlugins < Formula
def install
system "mkdir build"
cd "build" do
system "cmake", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DWITH_ASSIMPIMPORTER=ON", "-DWITH_BASISIMPORTER=OFF", "-DWITH_DDSIMPORTER=ON", "-DWITH_DEVILIMAGEIMPORTER=ON", "-DWITH_DRFLACAUDIOIMPORTER=ON", "-DWITH_DRMP3AUDIOIMPORTER=ON", "-DWITH_DRWAVAUDIOIMPORTER=ON", "-DWITH_FAAD2AUDIOIMPORTER=ON", "-DWITH_FREETYPEFONT=ON", "-DWITH_HARFBUZZFONT=ON", "-DWITH_JPEGIMAGECONVERTER=ON", "-DWITH_JPEGIMPORTER=ON", "-DWITH_MINIEXRIMAGECONVERTER=ON", "-DWITH_OPENGEXIMPORTER=ON", "-DWITH_PNGIMAGECONVERTER=ON", "-DWITH_PNGIMPORTER=ON", "-DWITH_STANFORDIMPORTER=ON", "-DWITH_STBIMAGECONVERTER=ON", "-DWITH_STBIMAGEIMPORTER=ON", "-DWITH_STBTRUETYPEFONT=ON", "-DWITH_STBVORBISAUDIOIMPORTER=ON", "-DWITH_TINYGLTFIMPORTER=ON", ".."
system "cmake", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DWITH_ASSIMPIMPORTER=ON", "-DWITH_BASISIMAGECONVERTER=OFF", "-DWITH_BASISIMPORTER=OFF", "-DWITH_DDSIMPORTER=ON", "-DWITH_DEVILIMAGEIMPORTER=ON", "-DWITH_DRFLACAUDIOIMPORTER=ON", "-DWITH_DRMP3AUDIOIMPORTER=ON", "-DWITH_DRWAVAUDIOIMPORTER=ON", "-DWITH_FAAD2AUDIOIMPORTER=ON", "-DWITH_FREETYPEFONT=ON", "-DWITH_HARFBUZZFONT=ON", "-DWITH_JPEGIMAGECONVERTER=ON", "-DWITH_JPEGIMPORTER=ON", "-DWITH_MINIEXRIMAGECONVERTER=ON", "-DWITH_OPENGEXIMPORTER=ON", "-DWITH_PNGIMAGECONVERTER=ON", "-DWITH_PNGIMPORTER=ON", "-DWITH_STANFORDIMPORTER=ON", "-DWITH_STBIMAGECONVERTER=ON", "-DWITH_STBIMAGEIMPORTER=ON", "-DWITH_STBTRUETYPEFONT=ON", "-DWITH_STBVORBISAUDIOIMPORTER=ON", "-DWITH_TINYGLTFIMPORTER=ON", ".."
system "cmake", "--build", "."
system "cmake", "--build", ".", "--target", "install"
end
Expand Down
1 change: 1 addition & 0 deletions package/msys/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ build() {
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=OFF \
-DWITH_BASISIMPORTER=OFF \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
Expand Down
1 change: 1 addition & 0 deletions package/msys/magnum-plugins/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ build() {
-G'Ninja' \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
-DWITH_ASSIMPIMPORTER=ON \
-DWITH_BASISIMAGECONVERTER=OFF \
-DWITH_BASISIMPORTER=OFF \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
Expand Down
45 changes: 45 additions & 0 deletions src/MagnumPlugins/BasisImageConverter/BasisImageConverter.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# [configuration]
[configuration]
threads=1

compression_level=1

y_flip=true
debug=false
enable_debug_printf=false
debug_images=false
global_sel_pal=false
no_auto_global_sel_pal=false
# sRGB images should be compressed with perceptual enabled, turn this flag off
# for linear images.
perceptual=true
no_endpoint_rdo=false
no_selector_rdo=false
read_source_images=false
write_output_basis_files=false
compute_stats=false
check_for_alpha=true
force_alpha=false
seperate_rg_to_color_alpha=false
disable_hierarchical_endpoint_codebooks=false

hybrid_sel_cb_quality_thresh=2.0

global_pal_bits=8
global_mod_bits=8

endpoint_rdo_thresh=1.5
selector_rdo_thresh=1.25

mip_gen=false
mip_renormalize=false
mip_wrapping=true
mip_srgb=false
mip_scale=1.0
mip_smallest_dimension=0
mip_filter=kaiser

max_endpoint_clusters=512
max_selector_clusters=512
quality_level=-1
# [configuration]
Loading