summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsuv-lp <>2016-06-05 07:15:29 +0000
committerJazzyNico <nicoduf@yahoo.fr>2016-06-05 07:15:29 +0000
commitfec6b1b18c55d40409dec7b2504c9ec111a45295 (patch)
treebf618bd1268dcc5ff3f17b746b223faa06ba7c31
parent[Bug #1545333] Remove obsolete poppler entries from cmake's template for conf... (diff)
downloadinkscape-fec6b1b18c55d40409dec7b2504c9ec111a45295.tar.gz
inkscape-fec6b1b18c55d40409dec7b2504c9ec111a45295.zip
[Bug #1545333] Convenience option (default: ON) for cmake builds to enable SVG2 and experimental LPEs
Fixed bugs: - https://launchpad.net/bugs/1545333 (bzr r14954)
-rw-r--r--CMakeLists.txt2
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake12
2 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a68b678c1..91a090371 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -87,6 +87,8 @@ endif()
option(WITH_DBUS "Compile with support for DBus interface" OFF)
option(ENABLE_LCMS "Compile with LCMS support" ON)
option(WITH_GNOME_VFS "Compile with support for Gnome VFS" ON)
+option(WITH_SVG2 "Compile with support for new SVG2 features" ON)
+option(WITH_LPETOOL "Compile with LPE Tool and experimental LPEs enabled" ON)
#option(WITH_INKJAR "Enable support for openoffice files (SVG jars)" ON)
option(WITH_GTEST "Compile with Google Test support" ${GMOCK_PRESENT})
option(WITH_OPENMP "Compile with OpenMP support" ON)
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index f2a6b5670..0f4ba46c6 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -262,6 +262,18 @@ if(WITH_DBUS)
endif()
endif()
+if(WITH_SVG2)
+ add_definitions(-DWITH_MESH -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_SVG2)
+else()
+ add_definitions(-UWITH_MESH -UWITH_CSSBLEND -UWITH_CSSCOMPOSITE -UWITH_SVG2)
+endif()
+
+if(WITH_LPETOOL)
+ add_definitions(-DWITH_LPETOOL -DLPE_ENABLE_TEST_EFFECTS)
+else()
+ add_definitions(-UWITH_LPETOOL -ULPE_ENABLE_TEST_EFFECTS)
+endif()
+
if(WITH_GTEST)
if(EXISTS "${GMOCK_DIR}" AND IS_DIRECTORY "${GMOCK_DIR}")