From b7555409f60b9506cc3edb9fa3224dc051c027c6 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 27 Mar 2018 11:57:40 +0100 Subject: Allow icon resources to be included in the binary Include two styles of icon from the GNOME Adwaita theme. These are enabled by default and add 30 Kbytes to the size of the binary. --- win32/icon/COPYING_CCBYSA3 | 7 +++++++ win32/icon/Kbuild.src | 15 +++++++++++++++ win32/icon/README | 9 +++++++++ win32/icon/aterm.ico | Bin 0 -> 15086 bytes win32/icon/dummy.c | 0 win32/icon/icon.rc | 8 ++++++++ win32/icon/sterm.ico | Bin 0 -> 15086 bytes 7 files changed, 39 insertions(+) create mode 100644 win32/icon/COPYING_CCBYSA3 create mode 100644 win32/icon/Kbuild.src create mode 100644 win32/icon/README create mode 100644 win32/icon/aterm.ico create mode 100644 win32/icon/dummy.c create mode 100644 win32/icon/icon.rc create mode 100644 win32/icon/sterm.ico (limited to 'win32') diff --git a/win32/icon/COPYING_CCBYSA3 b/win32/icon/COPYING_CCBYSA3 new file mode 100644 index 000000000..fc45d7818 --- /dev/null +++ b/win32/icon/COPYING_CCBYSA3 @@ -0,0 +1,7 @@ +This work is licenced under the Creative Commons Attribution-Share Alike 3.0 +United States License. To view a copy of this licence, visit +http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative +Commons, 171 Second Street, Suite 300, San Francisco, California 94105, USA. + +When attributing the artwork, using "GNOME Project" is enough. +Please link to http://www.gnome.org where available. diff --git a/win32/icon/Kbuild.src b/win32/icon/Kbuild.src new file mode 100644 index 000000000..bde74091f --- /dev/null +++ b/win32/icon/Kbuild.src @@ -0,0 +1,15 @@ +# Makefile for busybox +# +# Copyright (C) 2018 by R M Yorston +# +# Licensed under GPLv2, see file LICENSE in this source tree. + +obj-y := + +obj-$(CONFIG_FEATURE_ICON) += icon.o + +quiet_cmd_windres = WINDRES $@ + cmd_windres = $(WINDRES) $< $@ + +win32/icon/icon.o: win32/icon/icon.rc .config + $(call cmd,windres) diff --git a/win32/icon/README b/win32/icon/README new file mode 100644 index 000000000..33a245386 --- /dev/null +++ b/win32/icon/README @@ -0,0 +1,9 @@ +The icons are based on those for GNOME terminal in the Adwaita theme. + +They were generated by importing the 16x16, 32x32 and 48x48 PNG files +into GIMP as separate layers then exporting as a single .ico file. + +The original files are dual-licensed under either the GNU LGPL v3 or +Creative Commons Attribution-Share Alike 3.0 United States License. + +The .ico files are licensed under the latter. diff --git a/win32/icon/aterm.ico b/win32/icon/aterm.ico new file mode 100644 index 000000000..e680216a2 Binary files /dev/null and b/win32/icon/aterm.ico differ diff --git a/win32/icon/dummy.c b/win32/icon/dummy.c new file mode 100644 index 000000000..e69de29bb diff --git a/win32/icon/icon.rc b/win32/icon/icon.rc new file mode 100644 index 000000000..d91c4a482 --- /dev/null +++ b/win32/icon/icon.rc @@ -0,0 +1,8 @@ +#include "../../include/autoconf.h" + +#if CONFIG_FEATURE_ICON_ATERM || CONFIG_FEATURE_ICON_ALL +1 ICON "aterm.ico" +#endif +#if CONFIG_FEATURE_ICON_STERM || CONFIG_FEATURE_ICON_ALL +2 ICON "sterm.ico" +#endif diff --git a/win32/icon/sterm.ico b/win32/icon/sterm.ico new file mode 100644 index 000000000..b9125b34d Binary files /dev/null and b/win32/icon/sterm.ico differ -- cgit v1.2.3-55-g6feb