From fec6b1b18c55d40409dec7b2504c9ec111a45295 Mon Sep 17 00:00:00 2001 From: suv-lp <> Date: Sun, 5 Jun 2016 09:15:29 +0200 Subject: [Bug #1545333] Convenience option (default: ON) for cmake builds to enable SVG2 and experimental LPEs Fixed bugs: - https://launchpad.net/bugs/1545333 (bzr r14954) --- CMakeLists.txt | 2 ++ CMakeScripts/DefineDependsandFlags.cmake | 12 ++++++++++++ 2 files changed, 14 insertions(+) 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}") -- cgit v1.2.3