Skip to content

Commit

Permalink
fix:build:Fix usage of inkscape 1.0 commandline usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoan committed Sep 6, 2020
1 parent 6e25607 commit 427fd1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion navit/icons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ macro(convert_to_png IMAGE_INPUT IMAGE_OUTPUT SCALE)
else()
set(SCALE_ARGS)
endif()
set(COMMAND_ARGS --without-gui --export-background-opacity=0 --export-png ${IMAGE_OUTPUT} ${SCALE_ARGS} ${IMAGE_INPUT})
set(COMMAND_ARGS --export-type=png --export-background-opacity=0 ${SCALE_ARGS} --export-filename=${IMAGE_OUTPUT} ${IMAGE_INPUT})
else()
message(FATAL_ERROR "no svg2png converter defined here.")
endif()
Expand Down
2 changes: 1 addition & 1 deletion navit/icons/navit_svg2png
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ svgtopng()
$svgtopng --width=$1 --height=$2 --output $4 $3
;;
*inkscape)
$svgtopng --without-gui --export-width=$1 --export-height=$2 --export-png=$BUILDDIR/$4 $3
$svgtopng --export-width=$1 --export-height=$2 --export-type=png --export-filename=$4 $3
;;
*convert)
$svgtopng -alpha on -background none $3 -resize $1x$2 $4
Expand Down
2 changes: 1 addition & 1 deletion navit/textures/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ macro(convert_to_png TEXTURE_INPUT TEXTURE_OUTPUT SCALE)
else()
set(SCALE_ARGS)
endif()
set(COMMAND_ARGS --without-gui --export-background-opacity=0 --export-png ${TEXTURE_OUTPUT} ${SCALE_ARGS} ${TEXTURE_INPUT})
set(COMMAND_ARGS --export-type=png --export-background-opacity=0 ${SCALE_ARGS} --export-filename=${TEXTURE_OUTPUT} ${TEXTURE_INPUT})
else()
message(FATAL_ERROR "no svg2png converter defined here.")
endif()
Expand Down

0 comments on commit 427fd1b

Please sign in to comment.