diff options
author | Ron Yorston <rmy@pobox.com> | 2022-10-25 08:28:42 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-10-25 08:28:42 +0100 |
commit | 62654c448c4f0dfc0fdb72220adc33af0be7cb65 (patch) | |
tree | 1639bc58e75736c8123aa72817988a25d486f467 | |
parent | acae4cd5bedf12c476470a1c836e4117eb983875 (diff) | |
download | busybox-w32-62654c448c4f0dfc0fdb72220adc33af0be7cb65.tar.gz busybox-w32-62654c448c4f0dfc0fdb72220adc33af0be7cb65.tar.bz2 busybox-w32-62654c448c4f0dfc0fdb72220adc33af0be7cb65.zip |
win32: revise creation of resources
As reported in https://github.com/skeeto/w64devkit/issues/35
there's a problem creating Windows resources using the native
version of `windres`.
Avoid passing arguments to `windres` that it can't handle by
stringizing the version string locally in resource.rc.
(GitHub issue #239)
-rw-r--r-- | win32/resources/Kbuild.src | 2 | ||||
-rw-r--r-- | win32/resources/resources.rc | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/win32/resources/Kbuild.src b/win32/resources/Kbuild.src index 550eddaa0..9e5fe4e10 100644 --- a/win32/resources/Kbuild.src +++ b/win32/resources/Kbuild.src | |||
@@ -12,7 +12,7 @@ obj-$(CONFIG_FEATURE_RESOURCES) += dummy.o | |||
12 | # return commit level if available or 0 | 12 | # return commit level if available or 0 |
13 | bb_level = $(or $(word 2,$(subst -, ,$1)),0) | 13 | bb_level = $(or $(word 2,$(subst -, ,$1)),0) |
14 | 14 | ||
15 | WRFLAGS := -D"KBUILD_STR(s)=\#s" -D"BB_VER=KBUILD_STR($(BB_VER))" \ | 15 | WRFLAGS := -D"BB_VER=$(BB_VER)" \ |
16 | -D"BB_VERSION=$(VERSION)" -D"BB_PATCHLEVEL=$(PATCHLEVEL)" \ | 16 | -D"BB_VERSION=$(VERSION)" -D"BB_PATCHLEVEL=$(PATCHLEVEL)" \ |
17 | -D"BB_SUBLEVEL=$(SUBLEVEL)" \ | 17 | -D"BB_SUBLEVEL=$(SUBLEVEL)" \ |
18 | -D"BB_EXTRAVERSION=$(call bb_level,$(EXTRAVERSION))" \ | 18 | -D"BB_EXTRAVERSION=$(call bb_level,$(EXTRAVERSION))" \ |
diff --git a/win32/resources/resources.rc b/win32/resources/resources.rc index 2b9619cef..f459ebb73 100644 --- a/win32/resources/resources.rc +++ b/win32/resources/resources.rc | |||
@@ -1,4 +1,6 @@ | |||
1 | #include <autoconf.h> | 1 | #include <autoconf.h> |
2 | #define xstr(s) str(s) | ||
3 | #define str(s) #s | ||
2 | 4 | ||
3 | #if ENABLE_FEATURE_ICON_ATERM || ENABLE_FEATURE_ICON_ALL | 5 | #if ENABLE_FEATURE_ICON_ATERM || ENABLE_FEATURE_ICON_ALL |
4 | 1 ICON "aterm.ico" | 6 | 1 ICON "aterm.ico" |
@@ -18,12 +20,12 @@ BEGIN | |||
18 | BEGIN | 20 | BEGIN |
19 | VALUE "CompanyName", "frippery.org" | 21 | VALUE "CompanyName", "frippery.org" |
20 | VALUE "FileDescription", "BusyBox multi-call binary" | 22 | VALUE "FileDescription", "BusyBox multi-call binary" |
21 | VALUE "FileVersion", BB_VER | 23 | VALUE "FileVersion", xstr(BB_VER) |
22 | VALUE "InternalName", "busybox" | 24 | VALUE "InternalName", "busybox" |
23 | VALUE "LegalCopyright", "(C) 1998-2022 Many authors" | 25 | VALUE "LegalCopyright", "(C) 1998-2022 Many authors" |
24 | VALUE "OriginalFilename", "busybox.exe" | 26 | VALUE "OriginalFilename", "busybox.exe" |
25 | VALUE "ProductName", "busybox-w32" | 27 | VALUE "ProductName", "busybox-w32" |
26 | VALUE "ProductVersion", BB_VER | 28 | VALUE "ProductVersion", xstr(BB_VER) |
27 | END | 29 | END |
28 | END | 30 | END |
29 | BLOCK "VarFileInfo" | 31 | BLOCK "VarFileInfo" |