sysui: remove Package_icons

- rename main_app.ico to soffice.ico (in case the name is relevant?)
- installer: hard-code path to sysui/desktop/icons/soffice.ico

Change-Id: Iacd6e28201c3f8e69375e0bfc516542e86131912
This commit is contained in:
Michael Stahl 2013-10-29 21:43:41 +01:00
parent 5de3b85f17
commit 3df5304ada
8 changed files with 11 additions and 32 deletions

View file

@ -16,7 +16,7 @@ $(eval $(call gb_WinResTarget_set_include,quickstart/QuickStart,\
))
$(eval $(call gb_WinResTarget_add_dependencies,quickstart/QuickStart,\
sysui/desktop/icons/main_app.ico \
sysui/desktop/icons/soffice.ico \
))
$(eval $(call gb_WinResTarget_set_rcfile,quickstart/QuickStart,desktop/win32/source/QuickStart/QuickStart))

View file

@ -17,13 +17,13 @@ $(eval $(call gb_WinResTarget_set_include,soffice/launcher,\
$(eval $(call gb_WinResTarget_add_defs,soffice/launcher,\
-DRES_APP_NAME=soffice \
-DRES_APP_FILEDESC="$(PRODUCTNAME)" \
-DRES_APP_ICON=icons/main_app.ico \
-DRES_APP_ICON=icons/soffice.ico \
-DVERVARIANT=$(LIBO_VERSION_PATCH) \
-DRES_APP_VENDOR="$(OOO_VENDOR)" \
))
$(eval $(call gb_WinResTarget_add_dependencies,soffice/launcher,\
sysui/desktop/icons/main_app.ico \
sysui/desktop/icons/soffice.ico \
))
$(eval $(call gb_WinResTarget_set_rcfile,soffice/launcher,desktop/win32/source/applauncher/launcher))

View file

@ -17,13 +17,13 @@ $(eval $(call gb_WinResTarget_set_include,sofficebin/officeloader,\
$(eval $(call gb_WinResTarget_add_defs,sofficebin/officeloader,\
-DRES_APP_NAME=soffice \
-DRES_APP_FILEDESC="$(PRODUCTNAME)" \
-DRES_APP_ICON=icons/main_app.ico \
-DRES_APP_ICON=icons/soffice.ico \
-DVERVARIANT=$(LIBO_VERSION_PATCH) \
-DRES_APP_VENDOR="$(OOO_VENDOR)" \
))
$(eval $(call gb_WinResTarget_add_dependencies,sofficebin/officeloader,\
sysui/desktop/icons/main_app.ico \
sysui/desktop/icons/soffice.ico \
sysui/desktop/icons/oasis-database.ico \
sysui/desktop/icons/oasis-drawing-template.ico \
sysui/desktop/icons/oasis-drawing.ico \

View file

@ -1,3 +1,3 @@
#include "resource.h"
ICON_ACTIVE ICON DISCARDABLE "icons/main_app.ico"
ICON_ACTIVE ICON DISCARDABLE "icons/soffice.ico"

View file

@ -633,17 +633,17 @@ sub create_shortcut_table
my $onefile = "";
my $sofficefile = "soffice.ico";
my $sourcepathref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\$sofficefile, $includepatharrayref, 0);
my $sourcepathref = $ENV{'SRCDIR'} . "/sysui/desktop/icons/" . $sofficefile;
if ($$sourcepathref eq "") { installer::exiter::exit_program("ERROR: Could not find $sofficefile as icon!", "create_shortcut_table"); }
if (! -f $sourcepathref) { installer::exiter::exit_program("ERROR: Could not find $sofficefile ($sourcepathref) as icon!", "create_shortcut_table"); }
if (! grep {$_ eq $$sourcepathref} @{$iconfilecollector})
if (! grep {$_ eq $sourcepathref} @{$iconfilecollector})
{
unshift(@{$iconfilecollector}, $$sourcepathref);
unshift(@{$iconfilecollector}, $sourcepathref);
$installer::globals::sofficeiconadded = 1;
}
my $localinfoline = "Added icon file $$sourcepathref for language pack into icon file collector.\n";
my $localinfoline = "Added icon file $sourcepathref for language pack into icon file collector.\n";
push(@installer::globals::logfileinfo, $localinfoline);
# Saving the file

View file

@ -19,7 +19,6 @@ $(eval $(call gb_Module_add_targets,sysui,\
$(if $(filter deb,$(PKGFORMAT)),CustomTarget_deb) \
$(if $(filter SOLARIS,$(OS)),CustomTarget_solaris) \
))
else # OS=MACOSX
$(eval $(call gb_Module_add_targets,sysui,\
Package_osxicons \
@ -27,10 +26,6 @@ $(eval $(call gb_Module_add_targets,sysui,\
Package_infoplist \
))
endif
else # OS=WNT
$(eval $(call gb_Module_add_targets,sysui,\
Package_icons \
))
endif
# vim: set noet sw=4 ts=4:

View file

@ -1,16 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,sysui/icons,$(SRCDIR)/sysui/desktop/icons))
$(eval $(call gb_Package_set_outdir,sysui/icons,$(OUTDIR)))
$(eval $(call gb_Package_add_file,sysui/icons,bin/soffice.ico,main_app.ico))
# vim: set noet sw=4 ts=4:

View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB