Skip to content

Commit 5dc9e8b

Browse files
horardwmw2
authored andcommitted
Windows application icon
This tool is console application only, but many terminals re-use the icon if exists. In addition window tab-switching with that terminal window is decorated by this icon as well. Signed-off-by: Ľubomír Carik <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
1 parent fdaba77 commit 5dc9e8b

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

Makefile.am

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ openconnect_SOURCES = xml.c main.c
2424
openconnect_CFLAGS = $(AM_CFLAGS) $(SSL_CFLAGS) $(DTLS_SSL_CFLAGS) $(LIBXML2_CFLAGS) $(LIBPROXY_CFLAGS) $(ZLIB_CFLAGS) $(LIBSTOKEN_CFLAGS) $(LIBPSKC_CFLAGS) $(GSSAPI_CFLAGS) $(INTL_CFLAGS) $(ICONV_CFLAGS) $(LIBPCSCLITE_CFLAGS)
2525
openconnect_LDADD = libopenconnect.la $(SSL_LIBS) $(LIBXML2_LIBS) $(LIBPROXY_LIBS) $(INTL_LIBS) $(ICONV_LIBS)
2626

27+
if OPENCONNECT_WIN32
28+
openconnect_SOURCES += openconnect.rc
29+
endif
2730
library_srcs = ssl.c http.c http-auth.c auth-common.c library.c compat.c lzs.c mainloop.c script.c ntlm.c digest.c
2831
lib_srcs_cisco = auth.c cstp.c
2932
lib_srcs_juniper = oncp.c lzo.c auth-juniper.c
@@ -77,6 +80,10 @@ library_srcs += $(lib_srcs_iconv)
7780
endif
7881
if OPENCONNECT_WIN32
7982
library_srcs += $(lib_srcs_win32)
83+
.rc.o:
84+
$(WINDRES) $^ -o $@
85+
%.o : %.rc
86+
$(WINDRES) $^ -o $@
8087
else
8188
library_srcs += $(lib_srcs_posix)
8289
endif

configure.ac

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ case $host_os in
5757
# Win32 does have the SCard API
5858
system_pcsc_libs="-lwinscard"
5959
system_pcsc_cflags=
60+
AC_CHECK_TOOL([WINDRES], [windres], [])
6061
;;
6162
*darwin*)
6263
system_pcsc_libs="-Wl,-framework -Wl,PCSC"

openconnect.ico

148 KB
Binary file not shown.

openconnect.rc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// application icon
2+
IDI_ICON1 ICON DISCARDABLE "openconnect.ico"
3+

0 commit comments

Comments
 (0)