Skip to content

Commit ddfcb8c

Browse files
committed
configure: remove CONFIG_FILEVERSION and CONFIG_PRODUCTVERSION
version.rc can just use existing preprocessor symbols. Reviewed-by: Marc-André Lureau <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent fd6fc21 commit ddfcb8c

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

configure

-9
Original file line numberDiff line numberDiff line change
@@ -5928,15 +5928,6 @@ if test "$bigendian" = "yes" ; then
59285928
fi
59295929
if test "$mingw32" = "yes" ; then
59305930
echo "CONFIG_WIN32=y" >> $config_host_mak
5931-
rc_version=$(cat $source_path/VERSION)
5932-
version_major=${rc_version%%.*}
5933-
rc_version=${rc_version#*.}
5934-
version_minor=${rc_version%%.*}
5935-
rc_version=${rc_version#*.}
5936-
version_subminor=${rc_version%%.*}
5937-
version_micro=0
5938-
echo "CONFIG_FILEVERSION=$version_major,$version_minor,$version_subminor,$version_micro" >> $config_host_mak
5939-
echo "CONFIG_PRODUCTVERSION=$version_major,$version_minor,$version_subminor,$version_micro" >> $config_host_mak
59405931
if test "$guest_agent_with_vss" = "yes" ; then
59415932
echo "CONFIG_QGA_VSS=y" >> $config_host_mak
59425933
echo "QGA_VSS_PROVIDER=$qga_vss_provider" >> $config_host_mak

version.rc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#include "config-host.h"
33

44
VS_VERSION_INFO VERSIONINFO
5-
FILEVERSION CONFIG_FILEVERSION
6-
PRODUCTVERSION CONFIG_PRODUCTVERSION
5+
FILEVERSION QEMU_VERSION_MAJOR,QEMU_VERSION_MINOR,QEMU_VERSION_MICRO,0
6+
PRODUCTVERSION QEMU_VERSION_MAJOR,QEMU_VERSION_MINOR,QEMU_VERSION_MICRO,0
77
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
88
FILEOS VOS_NT_WINDOWS32
99
FILETYPE VFT_APP

0 commit comments

Comments
 (0)