Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
fda31d92
Commit
fda31d92
authored
1 year ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] Remove deprecated inkscape_generate_png_from_svg
parent
f8bc7ec2
No related branches found
No related tags found
1 merge request
!1344
Remove some code deprecated in 2.9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-1
4 additions, 1 deletion
CHANGELOG.md
cmake/modules/UseInkscape.cmake
+0
-62
0 additions, 62 deletions
cmake/modules/UseInkscape.cmake
with
4 additions
and
63 deletions
CHANGELOG.md
+
4
−
1
View file @
fda31d92
...
...
@@ -109,6 +109,9 @@ In order to build the DUNE core modules you need at least the following software
-
Remove deprecated CMake file
`DuneCMakeCompat.cmake`
that only contained a
deprecation message.
-
Remove deprecated CMake function
`inkscape_generate_png_from_svg`
. Use
`dune_create_inkscape_image_converter_target`
instead.
-
We have changed the way optional dependencies are activated in the build-system internally.
The cmake macros
`add_dune_xy_flags`
do not set the compiler flag
`-DENABLE_XY=1`
anymore, but instead
set directly the flag
`-DHAVE_XY=1`
. Neither
`ENABLE_XY`
nor
`HAVE_XY`
should be modified manually
...
...
@@ -367,7 +370,7 @@ In order to build the DUNE core modules you need at least the following software
setting
`BUILD_SHARED_LIBS`
accordingly. Building both static
and shared libraries is no longer supported.
-
Remov
e the CMake function
deprecated
`inkscape_generate_png_from_svg`
.
-
Deprecat
e the CMake function
`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
`
...
...
This diff is collapsed.
Click to expand it.
cmake/modules/UseInkscape.cmake
+
0
−
62
View file @
fda31d92
...
...
@@ -3,28 +3,6 @@
# Module that provides conversion routines using inkscape
#
# .. cmake_function:: inkscape_generate_png_from_svg
#
# .. cmake_param:: OUTPUT_DIR
# :single:
#
# The output directory for the generated png files.
# Defaults to the current build directory.
#
# .. cmake_param:: pngfiles
# :single:
# :positional:
# :required:
#
# The files that should be converted.
#
# .. cmake_param:: DPI
# :single:
#
# dpi value for the generated image (default: 90)
#
#
#
# .. cmake_function:: dune_create_inkscape_image_converter_target
#
# Creates a target that when built, converts svg images to png images using inkscape
...
...
@@ -59,46 +37,6 @@
#
include_guard
(
GLOBAL
)
function
(
inkscape_generate_png_from_svg
)
message
(
DEPRECATION
"inkscape_generate_png_from_svg is deprecated (will be removed after release 2.9). "
"Use dune_create_inkscape_image_converter_target."
)
if
(
NOT INKSCAPE
)
return
()
endif
()
cmake_parse_arguments
(
INKSCAPE
""
"OUTPUT_DIR;DPI"
""
${
ARGN
}
)
if
(
NOT INKSCAPE_OUTPUT_DIR
)
set
(
INKSCAPE_OUTPUT_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
)
endif
()
if
(
NOT INKSCAPE_DPI
)
set
(
INKSCAPE_DPI 90
)
endif
()
message
(
STATUS
"Generate PNG from SVG in
${
INKSCAPE_OUTPUT_DIR
}
"
)
set
(
_converted 0
)
foreach
(
pic
${
INKSCAPE_UNPARSED_ARGUMENTS
}
)
string
(
REGEX REPLACE
"
\\
.[a-zA-Z]+"
".svg"
input
${
pic
}
)
if
(
NOT EXISTS
${
INKSCAPE_OUTPUT_DIR
}
/
${
pic
}
)
set
(
_converted 1
)
if
(
INKSCAPE_NEW_VERSION
)
execute_process
(
COMMAND
${
INKSCAPE
}
--export-dpi=
${
INKSCAPE_DPI
}
--export-type=png --export-filename=
${
pic
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
input
}
WORKING_DIRECTORY
${
INKSCAPE_OUTPUT_DIR
}
OUTPUT_QUIET
)
else
()
execute_process
(
COMMAND
${
INKSCAPE
}
-z --export-dpi=
${
INKSCAPE_DPI
}
-e
${
pic
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
input
}
WORKING_DIRECTORY
${
INKSCAPE_OUTPUT_DIR
}
OUTPUT_QUIET
)
endif
()
endif
()
endforeach
()
if
(
_converted
)
message
(
STATUS
"Generate PNG from SVG in
${
INKSCAPE_OUTPUT_DIR
}
- done"
)
else
()
message
(
STATUS
"Generate PNG from SVG in
${
INKSCAPE_OUTPUT_DIR
}
- skipped"
)
endif
()
endfunction
()
function
(
dune_create_inkscape_image_converter_target
)
set
(
OPTION ALL
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment