Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 <Lubomir.Carik@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
horar authored and dwmw2 committed Feb 26, 2018
1 parent fdaba77 commit 5dc9e8b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.am
Expand Up @@ -24,6 +24,9 @@ openconnect_SOURCES = xml.c main.c
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)
openconnect_LDADD = libopenconnect.la $(SSL_LIBS) $(LIBXML2_LIBS) $(LIBPROXY_LIBS) $(INTL_LIBS) $(ICONV_LIBS)

if OPENCONNECT_WIN32
openconnect_SOURCES += openconnect.rc
endif
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
lib_srcs_cisco = auth.c cstp.c
lib_srcs_juniper = oncp.c lzo.c auth-juniper.c
Expand Down Expand Up @@ -77,6 +80,10 @@ library_srcs += $(lib_srcs_iconv)
endif
if OPENCONNECT_WIN32
library_srcs += $(lib_srcs_win32)
.rc.o:
$(WINDRES) $^ -o $@
%.o : %.rc
$(WINDRES) $^ -o $@
else
library_srcs += $(lib_srcs_posix)
endif
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -57,6 +57,7 @@ case $host_os in
# Win32 does have the SCard API
system_pcsc_libs="-lwinscard"
system_pcsc_cflags=
AC_CHECK_TOOL([WINDRES], [windres], [])
;;
*darwin*)
system_pcsc_libs="-Wl,-framework -Wl,PCSC"
Expand Down
Binary file added openconnect.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions openconnect.rc
@@ -0,0 +1,3 @@
// application icon
IDI_ICON1 ICON DISCARDABLE "openconnect.ico"

0 comments on commit 5dc9e8b

Please sign in to comment.