Skip to content
Snippets Groups Projects
Commit c84399bc authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[cmake] Remove deprecated inkscape_generate_png_from_svg

parent 20b1d710
No related branches found
No related tags found
1 merge request!763[cmake] Remove deprecated UseLATEX.cmake
Pipeline #24407 passed
......@@ -3,6 +3,14 @@
- Previous versions of dune-common imported `std::shared_ptr` and `std::make_shared`
into the `Dune` namespace. dune-common-2.8 stops doing that.
## build-system
- Remove the CMake function deprecated `inkscape_generate_png_from_svg`.
- Remove the old and deprecated use of UseLATEX.cmake.
`dune_add_latex_document' is a redirection to `add_latex_document`
which internally uses `latexmk`.
# Release 2.7
- Added fallback implementation to C++20 feature: `std::identity`.
......
......@@ -22,13 +22,6 @@
#
# TODO Switch to named arguments!
#
#
# .. cmake_function:: inkscape_generate_eps_from_svg
#
# .. deprecated:: 2.7
# Switch to PNG instead of EPS and use
# inkscape_generate_png_from_svg.
#
include(CMakeParseArguments)
......@@ -51,28 +44,3 @@ function(inkscape_generate_png_from_svg)
WORKING_DIRECTORY ${INKSCAPE_OUTPUT_DIR})
endforeach()
endfunction()
function(inkscape_generate_eps_from_svg)
message(AUTHOR_WARNING "inkscape_generate_eps_from_svg is deprecated and will be removed after Dune 2.7.")
cmake_parse_arguments(INKSCAPE "" "INPUT_DIR;OUTPUT_DIR;DPI" "" ${ARGN})
if(NOT INKSCAPE_INPUT_DIR)
set(INKSCAPE_INPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
endif()
if(NOT INKSCAPE_INPUT_DIR)
set(INKSCAPE_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
endif()
foreach(_pic ${INKSCAPE_UNPARSED_ARGUMENTS})
string(REGEX REPLACE "\\.[a-zA-Z]+" ".png" input "${_pic}")
string(REGEX REPLACE "\\.[a-zA-Z]+" ".svg" svginput "${_pic}")
add_custom_target(${input}
COMMAND ${INKSCAPE} -z --export-dpi=${INKSCAPE_DPI} -e ${input} ${CMAKE_CURRENT_SOURCE_DIR}/${svginput}
COMMENT "Generating ${INKSCAPE_OUTPUT_DIR}/${svginput} from ${CMAKE_CURRENT_SOURCE_DIR}/${input}")
add_custom_command(OUTPUT ${_pic}
COMMAND ${CONVERT} ${INKSCAPE_OUTPUT_DIR}/${input} EPS:${_pic}
DEPENDS ${input}
COMMENT "Converting ${INKSCAPE_OUTPUT_DIR}/${input} to ${INKSCAPE_OUTPUT_DIR}/${_pic}"
WORKING_DIRECTORY ${INKSCAPE_OUTPUT_DIR})
endforeach()
endfunction()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment