aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-07-24 16:34:52 +0100
committerRon Yorston <rmy@pobox.com>2018-07-24 16:34:52 +0100
commit43dd125914c7cc4656cf06b23230031e3444c5ff (patch)
tree61369021266ecd974df55c84e55225fc0279824b
parent2d0cdc18eca3d8a0d6732d239145c233bd93bf08 (diff)
downloadbusybox-w32-43dd125914c7cc4656cf06b23230031e3444c5ff.tar.gz
busybox-w32-43dd125914c7cc4656cf06b23230031e3444c5ff.tar.bz2
busybox-w32-43dd125914c7cc4656cf06b23230031e3444c5ff.zip
win32: make version info and manifest resources configurable
-rw-r--r--Config.in24
-rw-r--r--configs/mingw32_defconfig5
-rw-r--r--configs/mingw64_defconfig5
-rw-r--r--win32/icon/Kbuild.src2
-rw-r--r--win32/icon/icon.rc8
5 files changed, 38 insertions, 6 deletions
diff --git a/Config.in b/Config.in
index 10d8382a5..ed5427cb8 100644
--- a/Config.in
+++ b/Config.in
@@ -401,10 +401,32 @@ config FEATURE_PRNG_ISAAC
401 401
402endchoice 402endchoice
403 403
404config FEATURE_RESOURCES
405 bool "Include resources in binary"
406 default y
407 depends on PLATFORM_MINGW32
408 help
409 Microsoft Windows applications can contain non-executable resources
410 of various sorts.
411
412config FEATURE_VERSIONINFO
413 bool "Include version information in binary (1.0 kb)"
414 default y
415 depends on FEATURE_RESOURCES
416 help
417 Include version information in the application.
418
419config FEATURE_MANIFEST
420 bool "Include manifest in binary (1.5 kb)"
421 default y
422 depends on FEATURE_RESOURCES
423 help
424 Include a manifest which declares privleges required by the application.
425
404config FEATURE_ICON 426config FEATURE_ICON
405 bool "Include application icon in binary" 427 bool "Include application icon in binary"
406 default y 428 default y
407 depends on PLATFORM_MINGW32 429 depends on FEATURE_RESOURCES
408 help 430 help
409 Microsoft Windows applications can contain icons which are used in 431 Microsoft Windows applications can contain icons which are used in
410 various places in the user interface. Each icon adds 15 Kbytes to 432 various places in the user interface. Each icon adds 15 Kbytes to
diff --git a/configs/mingw32_defconfig b/configs/mingw32_defconfig
index 249ae2072..7587f71da 100644
--- a/configs/mingw32_defconfig
+++ b/configs/mingw32_defconfig
@@ -1,7 +1,7 @@
1# 1#
2# Automatically generated make config: don't edit 2# Automatically generated make config: don't edit
3# Busybox version: 1.29.0.git 3# Busybox version: 1.29.0.git
4# Sun May 13 08:24:17 2018 4# Tue Jul 24 16:29:13 2018
5# 5#
6CONFIG_HAVE_DOT_CONFIG=y 6CONFIG_HAVE_DOT_CONFIG=y
7# CONFIG_PLATFORM_POSIX is not set 7# CONFIG_PLATFORM_POSIX is not set
@@ -40,6 +40,9 @@ CONFIG_BUSYBOX_EXEC_PATH=""
40# CONFIG_GLOBBING is not set 40# CONFIG_GLOBBING is not set
41CONFIG_FEATURE_PRNG_SHELL=y 41CONFIG_FEATURE_PRNG_SHELL=y
42# CONFIG_FEATURE_PRNG_ISAAC is not set 42# CONFIG_FEATURE_PRNG_ISAAC is not set
43CONFIG_FEATURE_RESOURCES=y
44CONFIG_FEATURE_VERSIONINFO=y
45CONFIG_FEATURE_MANIFEST=y
43CONFIG_FEATURE_ICON=y 46CONFIG_FEATURE_ICON=y
44# CONFIG_FEATURE_ICON_ATERM is not set 47# CONFIG_FEATURE_ICON_ATERM is not set
45# CONFIG_FEATURE_ICON_STERM is not set 48# CONFIG_FEATURE_ICON_STERM is not set
diff --git a/configs/mingw64_defconfig b/configs/mingw64_defconfig
index 147e1e266..ab36a9ff2 100644
--- a/configs/mingw64_defconfig
+++ b/configs/mingw64_defconfig
@@ -1,7 +1,7 @@
1# 1#
2# Automatically generated make config: don't edit 2# Automatically generated make config: don't edit
3# Busybox version: 1.29.0.git 3# Busybox version: 1.29.0.git
4# Sun May 13 08:24:17 2018 4# Tue Jul 24 16:29:13 2018
5# 5#
6CONFIG_HAVE_DOT_CONFIG=y 6CONFIG_HAVE_DOT_CONFIG=y
7# CONFIG_PLATFORM_POSIX is not set 7# CONFIG_PLATFORM_POSIX is not set
@@ -40,6 +40,9 @@ CONFIG_BUSYBOX_EXEC_PATH=""
40# CONFIG_GLOBBING is not set 40# CONFIG_GLOBBING is not set
41CONFIG_FEATURE_PRNG_SHELL=y 41CONFIG_FEATURE_PRNG_SHELL=y
42# CONFIG_FEATURE_PRNG_ISAAC is not set 42# CONFIG_FEATURE_PRNG_ISAAC is not set
43CONFIG_FEATURE_RESOURCES=y
44CONFIG_FEATURE_VERSIONINFO=y
45CONFIG_FEATURE_MANIFEST=y
43CONFIG_FEATURE_ICON=y 46CONFIG_FEATURE_ICON=y
44# CONFIG_FEATURE_ICON_ATERM is not set 47# CONFIG_FEATURE_ICON_ATERM is not set
45# CONFIG_FEATURE_ICON_STERM is not set 48# CONFIG_FEATURE_ICON_STERM is not set
diff --git a/win32/icon/Kbuild.src b/win32/icon/Kbuild.src
index b9c322529..15e59e474 100644
--- a/win32/icon/Kbuild.src
+++ b/win32/icon/Kbuild.src
@@ -6,7 +6,7 @@
6 6
7obj-y := 7obj-y :=
8 8
9obj-$(CONFIG_FEATURE_ICON) += icon.o 9obj-$(CONFIG_FEATURE_RESOURCES) += icon.o
10 10
11# return commit level if available or 0 11# return commit level if available or 0
12bb_level = $(or $(word 2,$(subst -, ,$1)),0) 12bb_level = $(or $(word 2,$(subst -, ,$1)),0)
diff --git a/win32/icon/icon.rc b/win32/icon/icon.rc
index 77332428b..891f8a485 100644
--- a/win32/icon/icon.rc
+++ b/win32/icon/icon.rc
@@ -1,12 +1,13 @@
1#include "../../include/autoconf.h" 1#include "../../include/autoconf.h"
2 2
3#if CONFIG_FEATURE_ICON_ATERM || CONFIG_FEATURE_ICON_ALL 3#if ENABLE_FEATURE_ICON_ATERM || ENABLE_FEATURE_ICON_ALL
41 ICON "aterm.ico" 41 ICON "aterm.ico"
5#endif 5#endif
6#if CONFIG_FEATURE_ICON_STERM || CONFIG_FEATURE_ICON_ALL 6#if ENABLE_FEATURE_ICON_STERM || ENABLE_FEATURE_ICON_ALL
72 ICON "sterm.ico" 72 ICON "sterm.ico"
8#endif 8#endif
9 9
10#if ENABLE_FEATURE_VERSIONINFO
101 VERSIONINFO 111 VERSIONINFO
11FILEVERSION BB_VERSION,BB_PATCHLEVEL,BB_SUBLEVEL,BB_EXTRAVERSION 12FILEVERSION BB_VERSION,BB_PATCHLEVEL,BB_SUBLEVEL,BB_EXTRAVERSION
12PRODUCTVERSION BB_VERSION,BB_PATCHLEVEL,BB_SUBLEVEL,BB_EXTRAVERSION 13PRODUCTVERSION BB_VERSION,BB_PATCHLEVEL,BB_SUBLEVEL,BB_EXTRAVERSION
@@ -30,5 +31,8 @@ BEGIN
30 VALUE "Translation", 0x809, 1252 31 VALUE "Translation", 0x809, 1252
31 END 32 END
32END 33END
34#endif
33 35
36#if ENABLE_FEATURE_MANIFEST
341 RT_MANIFEST "busybox-w32.manifest" 371 RT_MANIFEST "busybox-w32.manifest"
38#endif