diff options
-rw-r--r-- | desktop/Module_desktop.mk | 8 | ||||
-rw-r--r-- | libreofficekit/Executable_gtktiledviewer.mk (renamed from desktop/Executable_gtktiledviewer.mk) | 2 | ||||
-rw-r--r-- | libreofficekit/Module_libreofficekit.mk | 10 | ||||
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx (renamed from desktop/qa/gtktiledviewer/gtktiledviewer.cxx) | 7 |
4 files changed, 10 insertions, 17 deletions
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 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 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 ); |