aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2017-07-29 16:17:16 -0700
committerJon Lund Steffensen <jonlst@gmail.com>2017-07-30 15:39:08 -0700
commit4e6f2fa7ab00c3342d04f543ac1b27b2e3a4ab77 (patch)
treedf3b326ec190c79a27a52f761e0a3a6e1e42bd9d /src
parentAppveyor: Change to use MSYSTEM with MSYS to get correct MinGW tools (diff)
downloadredshift-ng-4e6f2fa7ab00c3342d04f543ac1b27b2e3a4ab77.tar.gz
redshift-ng-4e6f2fa7ab00c3342d04f543ac1b27b2e3a4ab77.tar.bz2
redshift-ng-4e6f2fa7ab00c3342d04f543ac1b27b2e3a4ab77.tar.xz
Add Windows resources
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am15
-rw-r--r--src/windows/appicon.rc1
-rw-r--r--src/windows/redshift.icobin0 -> 87891 bytes
-rw-r--r--src/windows/versioninfo.rc20
4 files changed, 34 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 318fc2c..d6dc149 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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 $@
diff --git a/src/windows/appicon.rc b/src/windows/appicon.rc
new file mode 100644
index 0000000..9980b7e
--- /dev/null
+++ b/src/windows/appicon.rc
@@ -0,0 +1 @@
+AppIcon ICON redshift.ico
diff --git a/src/windows/redshift.ico b/src/windows/redshift.ico
new file mode 100644
index 0000000..751e6fa
--- /dev/null
+++ b/src/windows/redshift.ico
Binary files differ
diff --git a/src/windows/versioninfo.rc b/src/windows/versioninfo.rc
new file mode 100644
index 0000000..9ede49d
--- /dev/null
+++ b/src/windows/versioninfo.rc
@@ -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