Add Windows resources

This commit is contained in:
Jon Lund Steffensen
2017-07-30 15:39:08 -07:00
parent 944bd07956
commit 4e6f2fa7ab
5 changed files with 57 additions and 4 deletions
+23 -2
View File
@@ -18,6 +18,27 @@ AC_LANG([C])
AC_PROG_INTLTOOL([0.50])
AC_CANONICAL_HOST
# Test host platform
build_windows=no
case "${host_os}" in
mingw*)
build_windows=yes
;;
esac
# Test whether to compile Windows resources
AC_CHECK_TOOL([WINDRES], [windres], [])
AS_IF([test "x$build_windows" = "xyes" -a -n "x$WINDRES"], [
enable_windows_resource=yes
], [
enable_windows_resource=no
])
AM_CONDITIONAL([ENABLE_WINDOWS_RESOURCE],
[test "x$enable_windows_resource" = xyes])
# Test whether Objective C compiler works
AC_MSG_CHECKING([whether Objective C compiler works])
AC_LANG_PUSH([Objective C])
@@ -128,7 +149,7 @@ AS_IF([test "x$enable_randr" != xno], [
])
AM_CONDITIONAL([ENABLE_RANDR], [test "x$enable_randr" = xyes])
# Check VidMode method
# Check VidMode method
AC_MSG_CHECKING([whether to enable VidMode method])
AC_ARG_ENABLE([vidmode], [AC_HELP_STRING([--enable-vidmode],
[enable VidMode method])],
@@ -180,7 +201,7 @@ AM_CONDITIONAL([ENABLE_QUARTZ], [test "x$enable_quartz" = xyes])
AC_SUBST([QUARTZ_CFLAGS])
AC_SUBST([QUARTZ_LIBS])
# Check Windows GDI method
# Check Windows GDI method
AC_MSG_CHECKING([whether to enable WinGDI method])
AC_ARG_ENABLE([wingdi], [AC_HELP_STRING([--enable-wingdi],
[enable WinGDI method])],
+13 -2
View File
@@ -25,11 +25,13 @@ EXTRA_redshift_SOURCES = \
gamma-vidmode.c gamma-vidmode.h \
gamma-quartz.c gamma-quartz.h \
gamma-w32gdi.c gamma-w32gdi.h \
location-geoclue.c location-geoclue.h
location-geoclue.c location-geoclue.h \
windows/appicon.rc \
windows/versioninfo.rc
AM_CFLAGS =
redshift_LDADD = @LIBINTL@
EXTRA_DIST =
EXTRA_DIST = windows/redshift.ico
if ENABLE_DRM
redshift_SOURCES += gamma-drm.c gamma-drm.h
@@ -99,3 +101,12 @@ liblocation_corelocation_la_LIBADD = \
$(CORELOCATION_CFLAGS) $(CORELOCATION_LIBS)
redshift_LDADD += liblocation-corelocation.la
endif
# Windows resources
if ENABLE_WINDOWS_RESOURCE
redshift_SOURCES += windows/appicon.rc windows/versioninfo.rc
endif
.rc.o:
$(AM_V_GEN)$(WINDRES) -I$(top_builddir) -i $< -o $@
+1
View File
@@ -0,0 +1 @@
AppIcon ICON redshift.ico
Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

+20
View File
@@ -0,0 +1,20 @@
#include "config.h"
1 VERSIONINFO
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "Redshift Open Source Project"
VALUE "FileDescription", "Redshift"
VALUE "OriginalFilename", "redshift.exe"
VALUE "ProductName", "Redshift"
VALUE "ProductVersion", PACKAGE_VERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END