summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/inkscape-desktop.cmake
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-04-12 09:10:40 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-04-12 09:10:40 +0000
commit5d542ba036017af885913a6dd1f35b91daba047f (patch)
treee78d874a6873ed1c42988cdbf147f12f1ef43509 /CMakeScripts/inkscape-desktop.cmake
parentfix undo clip rendering bug (diff)
downloadinkscape-5d542ba036017af885913a6dd1f35b91daba047f.tar.gz
inkscape-5d542ba036017af885913a6dd1f35b91daba047f.zip
regenerates inkscape-version when revno changes ; Translates inkscape.desktop file (CMake build)
Fixed bugs: - https://launchpad.net/bugs/1543304 - https://launchpad.net/bugs/1514588 (bzr r14785)
Diffstat (limited to 'CMakeScripts/inkscape-desktop.cmake')
-rw-r--r--CMakeScripts/inkscape-desktop.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeScripts/inkscape-desktop.cmake b/CMakeScripts/inkscape-desktop.cmake
new file mode 100644
index 000000000..bf3b2b7b7
--- /dev/null
+++ b/CMakeScripts/inkscape-desktop.cmake
@@ -0,0 +1,9 @@
+# This is called by cmake as an extermal process from
+# ./po/CMakeLists.txt and creates inkscape.desktop
+#
+# These variables are defined by the caller, matching the CMake equivilents.
+# - ${INKSCAPE_SOURCE_DIR}
+# - ${INKSCAPE_BINARY_DIR}
+message("building inkscape.desktop")
+set(INKSCAPE_MIMETYPE "image/svg+xml;image/svg+xml-compressed;application/vnd.corel-draw;application/pdf;application/postscript;image/x-eps;application/illustrator;image/cgm;image/x-wmf;application/x-xccx;application/x-xcgm;application/x-xcdt;application/x-xsk1;application/x-xcmx;image/x-xcdr;application/visio;application/x-visio;application/vnd.visio;application/visio.drawing;application/vsd;application/x-vsd;image/x-vsd;")
+configure_file(${INKSCAPE_BINARY_DIR}/inkscape.desktop.template.in ${INKSCAPE_BINARY_DIR}/inkscape.desktop)