Turn RDF into a feature-like product like SCRIPTING is

parent 60930ee5
......@@ -92,7 +92,8 @@ calligra_define_product(LIB_ODF2 "libodf2" NEEDS CALLIGRA_LIBS)
calligra_define_product(LIB_ODFREADER "libodfreader" NEEDS CALLIGRA_LIBS)
calligra_define_product(LIB_MSO "libmso" NEEDS CALLIGRA_LIBS)
calligra_define_product(LIB_MSOOXML "libmsooxml" NEEDS LIB_ODF2 CALLIGRA_LIBS)
calligra_define_product(SCRIPTING "") # TODO
calligra_define_product(SCRIPTING "Scripting feature") # TODO
calligra_define_product(RDF "RDF feature")
# plugins
calligra_define_product(PLUGIN_TEXTSHAPE "" NEEDS CALLIGRA_LIBS)
# apps
......@@ -394,10 +395,8 @@ macro_log_feature(EXIV2_FOUND "Exiv2" "Image metadata library and tools" "http:/
macro_optional_find_package(Soprano)
macro_log_feature(Soprano_FOUND "Soprano" "KDE4 RDF handling library" "http://soprano.sourceforge.net/" FALSE "" "Required to handle RDF metadata in ODF")
if(NOT Soprano_FOUND)
set(SHOULD_BUILD_RDF FALSE)
set(SOPRANO_INCLUDE_DIR "")
else(NOT Soprano_FOUND)
set(SHOULD_BUILD_RDF TRUE)
add_definitions( -DSHOULD_BUILD_RDF )
endif(NOT Soprano_FOUND)
......@@ -804,6 +803,10 @@ if(NOT SHARED_MIME_INFO_FOUND)
calligra_disable_product(LIB_MSOOXML "SharedMimeInfo not found (needed to install mimetypes)")
endif(NOT SHARED_MIME_INFO_FOUND)
if(NOT Soprano_FOUND)
calligra_disable_product(RDF "Soprano not found")
endif(NOT Soprano_FOUND)
if(NOT EIGEN2_FOUND)
calligra_disable_product(SHEETS_PART "Eigen devel not found")
endif(NOT EIGEN2_FOUND)
......
......@@ -38,6 +38,7 @@ set( CALLIGRA_SHOULD_BUILD_PRODUCTS
PLUGIN_SHEETS_PIVOTTABLES
# feature
SCRIPTING
RDF
# extras
CALLIGRA
CONVERTER
......
......@@ -36,6 +36,7 @@ set( CALLIGRA_SHOULD_BUILD_PRODUCTS
PLUGIN_SHEETS_PIVOTTABLES
# feature
SCRIPTING
RDF
# extras
CALLIGRA
CONVERTER
......
......@@ -37,6 +37,6 @@ if (SHOULD_BUILD_LIB_KOREPORT)
add_subdirectory( koreport )
endif (SHOULD_BUILD_LIB_KOREPORT)
if (Soprano_FOUND)
if (SHOULD_BUILD_RDF)
add_subdirectory( rdf )
endif (Soprano_FOUND)
endif (SHOULD_BUILD_RDF)
......@@ -117,18 +117,18 @@ set(kotext_LIB_SRCS
KoTextCommandBase.cpp
)
if( Soprano_FOUND )
if( SHOULD_BUILD_RDF )
set(kotext_LIB_SRCS ${kotext_LIB_SRCS}
KoTextRdfCore.cpp
)
endif( Soprano_FOUND )
endif( SHOULD_BUILD_RDF )
kde4_add_library(kotext SHARED ${kotext_LIB_SRCS})
target_link_libraries(kotext flake)
if( Soprano_FOUND )
if( SHOULD_BUILD_RDF )
target_link_libraries(kotext ${SOPRANO_LIBRARIES})
endif( Soprano_FOUND )
endif( SHOULD_BUILD_RDF )
target_link_libraries(kotext LINK_INTERFACE_LIBRARIES flake)
if( FONTCONFIG_FOUND )
......
......@@ -164,9 +164,9 @@ kde4_add_ui_files(textshape_SRCS
kde4_add_plugin(textshape ${textshape_SRCS})
target_link_libraries(textshape kotext textlayout komain ${EXTRA_LIBS})
if( Soprano_FOUND )
if( SHOULD_BUILD_RDF )
target_link_libraries(textshape ${SOPRANO_LIBRARIES})
endif( Soprano_FOUND )
endif( SHOULD_BUILD_RDF )
install(TARGETS textshape DESTINATION ${PLUGIN_INSTALL_DIR})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment