Browse Source

Forgot to update these for MagnumFont{,Converter} being deprecated.

next
Vladimír Vondruš 2 months ago
parent
commit
de5b252408
  1. 6
      CMakeLists.txt
  2. 14
      doc/building.dox
  3. 7
      doc/cmake.dox
  4. 8
      doc/namespaces.dox
  5. 23
      modules/FindMagnum.cmake

6
CMakeLists.txt

@ -176,6 +176,8 @@ if(NOT DEFINED _MAGNUM_ACCEPT_DEPRECATED_UNPREFIXED_OPTIONS)
endforeach() endforeach()
endif() endif()
option(MAGNUM_BUILD_DEPRECATED "Include deprecated API in the build" ON)
# Magnum GL Info (currently only using GLX/CGL/EGL on *nix, WGL/EGL on Windows # Magnum GL Info (currently only using GLX/CGL/EGL on *nix, WGL/EGL on Windows
# and EGL on Emscripten) # and EGL on Emscripten)
if(CORRADE_TARGET_UNIX OR CORRADE_TARGET_WINDOWS OR CORRADE_TARGET_EMSCRIPTEN) if(CORRADE_TARGET_UNIX OR CORRADE_TARGET_WINDOWS OR CORRADE_TARGET_EMSCRIPTEN)
@ -226,8 +228,10 @@ option(MAGNUM_WITH_ANYSCENECONVERTER "Build AnySceneConverter plugin" OFF)
option(MAGNUM_WITH_ANYSCENEIMPORTER "Build AnySceneImporter plugin" OFF) option(MAGNUM_WITH_ANYSCENEIMPORTER "Build AnySceneImporter plugin" OFF)
option(MAGNUM_WITH_ANYSHADERCONVERTER "Build AnyShaderConverter plugin" OFF) option(MAGNUM_WITH_ANYSHADERCONVERTER "Build AnyShaderConverter plugin" OFF)
option(MAGNUM_WITH_WAVAUDIOIMPORTER "Build WavAudioImporter plugin" OFF) option(MAGNUM_WITH_WAVAUDIOIMPORTER "Build WavAudioImporter plugin" OFF)
if(MAGNUM_BUILD_DEPRECATED)
option(MAGNUM_WITH_MAGNUMFONT "Build MagnumFont plugin" OFF) option(MAGNUM_WITH_MAGNUMFONT "Build MagnumFont plugin" OFF)
option(MAGNUM_WITH_MAGNUMFONTCONVERTER "Build MagnumFontConverter plugin" OFF) option(MAGNUM_WITH_MAGNUMFONTCONVERTER "Build MagnumFontConverter plugin" OFF)
endif()
option(MAGNUM_WITH_OBJIMPORTER "Build ObjImporter plugin" OFF) option(MAGNUM_WITH_OBJIMPORTER "Build ObjImporter plugin" OFF)
cmake_dependent_option(MAGNUM_WITH_TGAIMAGECONVERTER "Build TgaImageConverter plugin" OFF "NOT MAGNUM_WITH_MAGNUMFONTCONVERTER" ON) cmake_dependent_option(MAGNUM_WITH_TGAIMAGECONVERTER "Build TgaImageConverter plugin" OFF "NOT MAGNUM_WITH_MAGNUMFONTCONVERTER" ON)
cmake_dependent_option(MAGNUM_WITH_TGAIMPORTER "Build TgaImporter plugin" OFF "NOT MAGNUM_WITH_MAGNUMFONT" ON) cmake_dependent_option(MAGNUM_WITH_TGAIMPORTER "Build TgaImporter plugin" OFF "NOT MAGNUM_WITH_MAGNUMFONT" ON)
@ -350,8 +354,6 @@ if(NOT CORRADE_TARGET_ANDROID AND NOT CORRADE_TARGET_IOS AND NOT CORRADE_TARGET_
option(MAGNUM_WITH_GLFWAPPLICATION "Build GlfwApplication library" OFF) option(MAGNUM_WITH_GLFWAPPLICATION "Build GlfwApplication library" OFF)
endif() endif()
option(MAGNUM_BUILD_DEPRECATED "Include deprecated API in the build" ON)
set(MAGNUM_DEPLOY_PREFIX "." set(MAGNUM_DEPLOY_PREFIX "."
CACHE STRING "Prefix where to put final application executables") CACHE STRING "Prefix where to put final application executables")

14
doc/building.dox

@ -675,14 +675,14 @@ default.
- `MAGNUM_WITH_ANYSHADERCONVERTER` --- Build the - `MAGNUM_WITH_ANYSHADERCONVERTER` --- Build the
@ref ShaderTools::AnyConverter "AnyShaderConverter" plugin. Enables also @ref ShaderTools::AnyConverter "AnyShaderConverter" plugin. Enables also
building of the @ref ShaderTools library. building of the @ref ShaderTools library.
- `MAGNUM_WITH_MAGNUMFONT` --- Build the @ref Text::MagnumFont "MagnumFont" - `MAGNUM_WITH_MAGNUMFONT` @m_class{m-label m-danger} **deprecated** ---
plugin. Enables also building of the @ref Text library and the Build the @relativeref{Text,MagnumFont} plugin. Enables also building
@ref Trade::TgaImporter "TgaImporter" plugin. Requires `MAGNUM_TARGET_GL` of the @ref Text library and the @relativeref{Trade,TgaImporter} plugin.
to be enabled. Requires `MAGNUM_TARGET_GL` to be enabled.
- `MAGNUM_WITH_MAGNUMFONTCONVERTER` --- Build the - `MAGNUM_WITH_MAGNUMFONTCONVERTER` @m_class{m-label m-danger} **deprecated**
@ref Text::MagnumFontConverter "MagnumFontConverter" plugin. Enables also --- Build the @relativeref{Text,MagnumFontConverter} plugin. Enables also
building of the @ref Text library and the building of the @ref Text library and the
@ref Trade::TgaImageConverter "TgaImageConverter" plugin. @relativeref{Trade,TgaImageConverter} plugin.
- `MAGNUM_WITH_OBJIMPORTER` --- Build the - `MAGNUM_WITH_OBJIMPORTER` --- Build the
@ref Trade::ObjImporter "ObjImporter" plugin. Enables also building of the @ref Trade::ObjImporter "ObjImporter" plugin. Enables also building of the
@ref Trade library. @ref Trade library.

7
doc/cmake.dox

@ -250,9 +250,10 @@ dependencies, you need to find the dependency and then link to it.
plugin plugin
- `AnyShaderConverter` --- @ref ShaderTools::AnyConverter "AnyShaderConverter" - `AnyShaderConverter` --- @ref ShaderTools::AnyConverter "AnyShaderConverter"
plugin plugin
- `MagnumFont` --- @ref Text::MagnumFont "MagnumFont" plugin - `MagnumFont` @m_class{m-label m-danger} **deprecated** ---
- `MagnumFontConverter` --- @ref Text::MagnumFontConverter "MagnumFontConverter" @relativeref{Text,MagnumFont} plugin
plugin - `MagnumFontConverter` @m_class{m-label m-danger} **deprecated** ---
@relativeref{Text,MagnumFontConverter} plugin
- `ObjImporter` --- @ref Trade::ObjImporter "ObjImporter" plugin - `ObjImporter` --- @ref Trade::ObjImporter "ObjImporter" plugin
- `TgaImageConverter` --- @ref Trade::TgaImageConverter "TgaImageConverter" - `TgaImageConverter` --- @ref Trade::TgaImageConverter "TgaImageConverter"
plugin plugin

8
doc/namespaces.dox

@ -988,9 +988,17 @@ See @ref building, @ref cmake and @ref vulkan for more information.
*/ */
/** @dir MagnumPlugins/MagnumFont /** @dir MagnumPlugins/MagnumFont
* @brief Plugin @ref Magnum::Text::MagnumFont * @brief Plugin @ref Magnum::Text::MagnumFont
* @m_deprecated_since_latest Use @ref MagnumPlugins/StbTrueTypeFont/StbTrueTypeFont.h
* and the @relativeref{Magnum::Text,StbTrueTypeFont} plugin instead,
* which is more efficient and has a larger feature set without needing a
* custom font preprocessing step.
*/ */
/** @dir MagnumPlugins/MagnumFontConverter /** @dir MagnumPlugins/MagnumFontConverter
* @brief Plugin @ref Magnum::Text::MagnumFontConverter * @brief Plugin @ref Magnum::Text::MagnumFontConverter
* @m_deprecated_since_latest Use @ref MagnumPlugins/StbTrueTypeFont/StbTrueTypeFont.h
* and the @relativeref{Magnum::Text,StbTrueTypeFont} plugin instead,
* which is more efficient and has a larger feature set without needing a
* custom font preprocessing step.
*/ */
/** @dir MagnumPlugins/ObjImporter /** @dir MagnumPlugins/ObjImporter
* @brief Plugin @ref Magnum::Trade::ObjImporter * @brief Plugin @ref Magnum::Trade::ObjImporter

23
modules/FindMagnum.cmake

@ -85,8 +85,6 @@
# WglContext - WGL context # WglContext - WGL context
# OpenGLTester - OpenGLTester class # OpenGLTester - OpenGLTester class
# VulkanTester - VulkanTester class # VulkanTester - VulkanTester class
# MagnumFont - Magnum bitmap font plugin
# MagnumFontConverter - Magnum bitmap font converter plugin
# ObjImporter - OBJ importer plugin # ObjImporter - OBJ importer plugin
# TgaImageConverter - TGA image converter plugin # TgaImageConverter - TGA image converter plugin
# TgaImporter - TGA importer plugin # TgaImporter - TGA importer plugin
@ -100,6 +98,12 @@
# vk-info - magnum-vk-info executable # vk-info - magnum-vk-info executable
# al-info - magnum-al-info executable # al-info - magnum-al-info executable
# #
# If Magnum is built with MAGNUM_BUILD_DEPRECATED enabled, these additional
# plugins are available for backwards compatibility purposes:
#
# MagnumFont - Magnum bitmap font plugin
# MagnumFontConverter - Magnum bitmap font converter plugin
#
# Example usage with specifying additional components is:: # Example usage with specifying additional components is::
# #
# find_package(Magnum REQUIRED Trade MeshTools Primitives GlfwApplication) # find_package(Magnum REQUIRED Trade MeshTools Primitives GlfwApplication)
@ -406,8 +410,8 @@ set(_MAGNUM_LIBRARY_COMPONENTS_ALWAYS_STATIC
OpenGLTester) OpenGLTester)
set(_MAGNUM_PLUGIN_COMPONENTS set(_MAGNUM_PLUGIN_COMPONENTS
AnyAudioImporter AnyImageConverter AnyImageImporter AnySceneConverter AnyAudioImporter AnyImageConverter AnyImageImporter AnySceneConverter
AnySceneImporter MagnumFont MagnumFontConverter ObjImporter AnySceneImporter ObjImporter TgaImageConverter TgaImporter
TgaImageConverter TgaImporter WavAudioImporter) WavAudioImporter)
set(_MAGNUM_EXECUTABLE_COMPONENTS set(_MAGNUM_EXECUTABLE_COMPONENTS
imageconverter sceneconverter shaderconverter gl-info al-info) imageconverter sceneconverter shaderconverter gl-info al-info)
# Audio and Vk libs aren't enabled by default, and none of the Context, # Audio and Vk libs aren't enabled by default, and none of the Context,
@ -545,8 +549,6 @@ set(_MAGNUM_EglContext_DEPENDENCIES GL)
set(_MAGNUM_GlxContext_DEPENDENCIES GL) set(_MAGNUM_GlxContext_DEPENDENCIES GL)
set(_MAGNUM_WglContext_DEPENDENCIES GL) set(_MAGNUM_WglContext_DEPENDENCIES GL)
set(_MAGNUM_MagnumFont_DEPENDENCIES Trade TgaImporter GL) # and below
set(_MAGNUM_MagnumFontConverter_DEPENDENCIES Trade TgaImageConverter) # and below
set(_MAGNUM_ObjImporter_DEPENDENCIES MeshTools) # and below set(_MAGNUM_ObjImporter_DEPENDENCIES MeshTools) # and below
foreach(_component ${_MAGNUM_PLUGIN_COMPONENTS}) foreach(_component ${_MAGNUM_PLUGIN_COMPONENTS})
if(_component MATCHES ".+AudioImporter") if(_component MATCHES ".+AudioImporter")
@ -560,6 +562,13 @@ foreach(_component ${_MAGNUM_PLUGIN_COMPONENTS})
endif() endif()
endforeach() endforeach()
# MagnumFont and MagnumFontConverter, available only on a deprecated build
if(MAGNUM_BUILD_DEPRECATED)
list(APPEND _MAGNUM_PLUGIN_COMPONENTS MagnumFont MagnumFontConverter)
set(_MAGNUM_MagnumFont_DEPENDENCIES Trade TgaImporter GL Text TextureTools)
set(_MAGNUM_MagnumFontConverter_DEPENDENCIES Trade TgaImageConverter Text TextureTools)
endif()
# Ensure that all inter-component dependencies are specified as well # Ensure that all inter-component dependencies are specified as well
set(_MAGNUM_ADDITIONAL_COMPONENTS ) set(_MAGNUM_ADDITIONAL_COMPONENTS )
foreach(_component ${Magnum_FIND_COMPONENTS}) foreach(_component ${Magnum_FIND_COMPONENTS})
@ -1095,8 +1104,6 @@ foreach(_component ${Magnum_FIND_COMPONENTS})
# No special setup for AnyImageConverter plugin # No special setup for AnyImageConverter plugin
# No special setup for AnyImageImporter plugin # No special setup for AnyImageImporter plugin
# No special setup for AnySceneImporter plugin # No special setup for AnySceneImporter plugin
# No special setup for MagnumFont plugin
# No special setup for MagnumFontConverter plugin
# No special setup for ObjImporter plugin # No special setup for ObjImporter plugin
# No special setup for TgaImageConverter plugin # No special setup for TgaImageConverter plugin
# No special setup for TgaImporter plugin # No special setup for TgaImporter plugin

Loading…
Cancel
Save