From 0cea87d60cfdc2bbc7c6b5d5ee9918e283fc7b2c Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Fri, 13 Jun 2014 11:20:15 +0100 Subject: [PATCH] Move gtktiledviewer into libreofficekit. desktop is no longer the right place for it now that libreofficekit has its own directory. Change-Id: I207f1d642e7e35c460ff85bb57aa142cb98023c8 --- desktop/Module_desktop.mk | 8 -------- .../Executable_gtktiledviewer.mk | 2 +- libreofficekit/Module_libreofficekit.mk | 10 +++++++++- .../qa/gtktiledviewer/gtktiledviewer.cxx | 7 ------- 4 files changed, 10 insertions(+), 17 deletions(-) rename {desktop => libreofficekit}/Executable_gtktiledviewer.mk (95%) rename {desktop => libreofficekit}/qa/gtktiledviewer/gtktiledviewer.cxx (90%) diff --git a/desktop/Module_desktop.mk b/desktop/Module_desktop.mk index 04b71f7578c6..cfaf0d93ecd9 100644 --- a/desktop/Module_desktop.mk +++ b/desktop/Module_desktop.mk @@ -29,14 +29,6 @@ $(eval $(call gb_Module_add_l10n_targets,desktop,\ UIConfig_deployment \ )) -ifeq ($(OS),LINUX) -ifneq ($(ENABLE_GTK),) -$(eval $(call gb_Module_add_targets,desktop,\ - Executable_gtktiledviewer \ -)) -endif -endif - ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) $(eval $(call gb_Module_add_targets,desktop,\ Executable_soffice_bin \ diff --git a/desktop/Executable_gtktiledviewer.mk b/libreofficekit/Executable_gtktiledviewer.mk similarity index 95% rename from desktop/Executable_gtktiledviewer.mk rename to libreofficekit/Executable_gtktiledviewer.mk index a0bf8ead8baa..0ce922288165 100644 --- a/desktop/Executable_gtktiledviewer.mk +++ b/libreofficekit/Executable_gtktiledviewer.mk @@ -43,7 +43,7 @@ $(eval $(call gb_Executable_add_libs,gtktiledviewer,\ endif $(eval $(call gb_Executable_add_exception_objects,gtktiledviewer,\ - desktop/qa/gtktiledviewer/gtktiledviewer \ + libreofficekit/qa/gtktiledviewer/gtktiledviewer \ )) # vim: set noet sw=4 ts=4: diff --git a/libreofficekit/Module_libreofficekit.mk b/libreofficekit/Module_libreofficekit.mk index 0412a33f9799..55136a4b3412 100644 --- a/libreofficekit/Module_libreofficekit.mk +++ b/libreofficekit/Module_libreofficekit.mk @@ -10,10 +10,18 @@ $(eval $(call gb_Module_Module,libreofficekit)) ifeq ($(OS),LINUX) + $(eval $(call gb_Module_add_targets,libreofficekit,\ StaticLibrary_libreofficekit \ Library_libreofficekitgtk \ )) -endif + +ifneq ($(ENABLE_GTK),) +$(eval $(call gb_Module_add_targets,libreofficekit,\ + Executable_gtktiledviewer \ +)) +endif # ($(ENABLE_GTK),) + +endif # ($(OS),LINUX) # vim: set ts=4 sw=4 et: diff --git a/desktop/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx similarity index 90% rename from desktop/qa/gtktiledviewer/gtktiledviewer.cxx rename to libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index 2c80a8d65014..3549903b988a 100644 --- a/desktop/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -34,13 +34,6 @@ int main( int argc, char* argv[] ) } LibreOfficeKit* pOffice = lok_init( argv[1] ); - if( !pOffice ) - { - fprintf( stderr, "Failed to initialize\n" ); - return -1; - } - - ::lok::Document* pDocument = pOffice->documentLoad( argv[2] ); gtk_init( &argc, &argv );