turn filters into products, make core calligralibs a product as well

* filter in filters/ got turned into a product with the naming pattern "FILTER_A_TO_B",
  to hint in the name from which file/app to which file/app the filter works
* external dep checks are also fetched into the toplevel CMakeLists.txt,
  to reduce redundancy and for consistency and overview

REVIEW: 109615
parent 4a109ceb
This diff is collapsed.
......@@ -2,8 +2,10 @@
set( CALLIGRA_SHOULD_BUILD_PRODUCTS
ACTIVE
# extras
EXTRA_PROPERTIES
EXTRA_THUMBNAIL
# plugins
PLUGIN_DEFAULTTOOLS
PLUGIN_PATHSHAPES
PLUGIN_VARIABLES
......@@ -14,4 +16,24 @@ set( CALLIGRA_SHOULD_BUILD_PRODUCTS
PLUGIN_FORMULASHAPE
PLUGIN_VECTORSHAPE
PLUGIN_VIDEOSHAPE
# filters
FILTER_XLSX_TO_ODS
FILTER_XLS_TO_SHEETS
FILTER_CSV_TO_SHEETS
FILTER_APPLIXSPREAD_TO_KSPREAD
FILTER_DBASE_TO_KSPREAD
FILTER_GNUMERIC_TO_SHEETS
FILTER_OPENCALC_TO_SHEETS
FILTER_QUATTROPRO_TO_SHEETS
FILTER_HTML_TO_ODS
FILTER_KPR_TO_OPD
FILTER_PPT_TO_ODP
FILTER_PPTX_TO_ODP
FILTER_DOC_TO_ODT
FILTER_DOCX_TO_ODT
FILTER_WORDPERFECT_TO_ODT
FILTER_WORKS_TO_ODT
FILTER_APPLIXWORD_TO_ODT
FILTER_ASCII_TO_WORDS
FILTER_RTF_TO_ODT
)
......@@ -34,6 +34,48 @@ set( CALLIGRA_SHOULD_BUILD_PRODUCTS
PLUGIN_REPORTING
PLUGIN_STAGING
PLUGIN_VIDEOSHAPE
# filters
FILTER_XLSX_TO_ODS
FILTER_XLS_TO_SHEETS
FILTER_SHEETS_TO_XLS
FILTER_CSV_TO_SHEETS
FILTER_SHEETS_TO_CSV
FILTER_APPLIXSPREAD_TO_KSPREAD
FILTER_DBASE_TO_KSPREAD
FILTER_GNUMERIC_TO_SHEETS
FILTER_SHEETS_TO_GNUMERIC
FILTER_OPENCALC_TO_SHEETS
FILTER_SHEETS_TO_OPENCALC
FILTER_QUATTROPRO_TO_SHEETS
FILTER_HTML_TO_ODS
FILTER_SHEETS_TO_HTML
FILTER_KSPREAD_TO_LATEX
FILTER_VISIO_TO_ODG
FILTER_KPR_TO_OPD
FILTER_PPT_TO_ODP
FILTER_PPTX_TO_ODP
FILTER_DOC_TO_ODT
FILTER_DOCX_TO_ODT
FILTER_WORDPERFECT_TO_ODT
FILTER_WORKS_TO_ODT
FILTER_APPLIXWORD_TO_ODT
FILTER_ASCII_TO_WORDS
FILTER_ODT_TO_ASCII
FILTER_RTF_TO_ODT
FILTER_ODT_TO_MOBI
FILTER_ODT_TO_EPUB2
FILTER_ODT_TO_HTML
FILTER_MPXJ_IMPORT
FILTER_EPS_TO_SVG_AI
FILTER_XFIG_TO_ODG
FILTER_PDF_TO_SVG
FILTER_WPG_TO_SVG
FILTER_KARBON_TO_IMAGE
FILTER_KARBON_TO_SVG
FILTER_SVG_TO_KARBON
FILTER_KARBON_TO_WMF
FILTER_WMF_TO_SVG
FILTER_KARBON1X_TO_KARBON
# feature
SCRIPTING
# extras
......
......@@ -4,9 +4,11 @@ set( CALLIGRA_SHOULD_BUILD_PRODUCTS
KARBON
KRITA
CONVERTER
# extras
EXTRA_PROPERTIES
EXTRA_THUMBNAIL
EXTRA_QUICKPRINT
# plugins
PLUGIN_COLORENGINES
PLUGIN_SPACENAVIGATOR
PLUGIN_ARTISTICTEXTSHAPE
......@@ -16,4 +18,15 @@ set( CALLIGRA_SHOULD_BUILD_PRODUCTS
PLUGIN_PATHSHAPES
PLUGIN_PICTURESHAPE
PLUGIN_TEXTSHAPE
# filters
FILTER_EPS_TO_SVG_AI
FILTER_XFIG_TO_ODG
FILTER_PDF_TO_SVG
FILTER_WPG_TO_SVG
FILTER_KARBON_TO_IMAGE
FILTER_KARBON_TO_SVG
FILTER_SVG_TO_KARBON
FILTER_KARBON_TO_WMF
FILTER_WMF_TO_SVG
FILTER_KARBON1X_TO_KARBON
)
......@@ -32,6 +32,48 @@ set( CALLIGRA_SHOULD_BUILD_PRODUCTS
PLUGIN_VECTORSHAPE
PLUGIN_REPORTING
PLUGIN_STAGING
# filters
FILTER_XLSX_TO_ODS
FILTER_XLS_TO_SHEETS
FILTER_SHEETS_TO_XLS
FILTER_CSV_TO_SHEETS
FILTER_SHEETS_TO_CSV
FILTER_APPLIXSPREAD_TO_KSPREAD
FILTER_DBASE_TO_KSPREAD
FILTER_GNUMERIC_TO_SHEETS
FILTER_SHEETS_TO_GNUMERIC
FILTER_OPENCALC_TO_SHEETS
FILTER_SHEETS_TO_OPENCALC
FILTER_QUATTROPRO_TO_SHEETS
FILTER_HTML_TO_ODS
FILTER_SHEETS_TO_HTML
FILTER_KSPREAD_TO_LATEX
FILTER_VISIO_TO_ODG
FILTER_KPR_TO_OPD
FILTER_PPT_TO_ODP
FILTER_PPTX_TO_ODP
FILTER_DOC_TO_ODT
FILTER_DOCX_TO_ODT
FILTER_WORDPERFECT_TO_ODT
FILTER_WORKS_TO_ODT
FILTER_APPLIXWORD_TO_ODT
FILTER_ASCII_TO_WORDS
FILTER_ODT_TO_ASCII
FILTER_RTF_TO_ODT
FILTER_ODT_TO_MOBI
FILTER_ODT_TO_EPUB2
FILTER_ODT_TO_HTML
FILTER_MPXJ_IMPORT
FILTER_EPS_TO_SVG_AI
FILTER_XFIG_TO_ODG
FILTER_PDF_TO_SVG
FILTER_WPG_TO_SVG
FILTER_KARBON_TO_IMAGE
FILTER_KARBON_TO_SVG
FILTER_SVG_TO_KARBON
FILTER_KARBON_TO_WMF
FILTER_WMF_TO_SVG
FILTER_KARBON1X_TO_KARBON
# feature
SCRIPTING
# extras
......
......@@ -16,9 +16,6 @@ macro_log_feature(TIFF_FOUND "tiff" "TIFF Library and Utilities" "http://www.rem
macro_optional_find_package(JPEG)
macro_log_feature(JPEG_FOUND "jpeg" "Free library for JPEG image compression" "http://www.ijg.org" FALSE "" "Required by the Krita JPEG filter")
macro_optional_find_package(Poppler)
macro_log_feature( POPPLER_FOUND "poppler-qt4" "The Poppler Qt4 interface library" "http://poppler.freedesktop.org" FALSE "" "Required by the Krita PDF filter")
macro_optional_find_package(Kdcraw)
macro_log_feature( KDCRAW_FOUND "kdcraw" "The KDCraw library" "http://www.digikam.org/" FALSE "" "Required by the Krita RAW filter")
......
......@@ -35,8 +35,13 @@ install(TARGETS kritaoraexport DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES krita_ora_import.desktop krita_ora_export.desktop krita_ora_thumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install( FILES krita_ora_import.desktop krita_ora_export.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install( PROGRAMS krita_ora.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
if(SHOULD_BUILD_EXTRA_THUMBNAIL)
install( FILES krita_ora_thumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR})
endif(SHOULD_BUILD_EXTRA_THUMBNAIL)
install(FILES krita_ora.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
add_subdirectory( koplugin )
add_subdirectory( widgetutils )
add_subdirectory( widgets )
add_subdirectory( odf )
add_subdirectory( textlayout )
add_subdirectory( kotext )
add_subdirectory( flake )
add_subdirectory( basicflakes )
add_subdirectory( pigment )
add_subdirectory( main )
add_subdirectory( kundo2 )
if (SHOULD_BUILD_CALLIGRA_LIBS)
add_subdirectory( koplugin )
add_subdirectory( widgetutils )
add_subdirectory( widgets )
add_subdirectory( odf )
add_subdirectory( textlayout )
add_subdirectory( kotext )
add_subdirectory( flake )
add_subdirectory( basicflakes )
add_subdirectory( pigment )
add_subdirectory( main )
add_subdirectory( kundo2 )
endif (SHOULD_BUILD_CALLIGRA_LIBS)
if (SHOULD_BUILD_SCRIPTING)
add_subdirectory( kokross )
......
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