Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Windows application icon

  • Loading branch information...
commit 784d15c7cdab84c4bd03e22408169dabe1d89c01 1 parent 888d1e0
Jukka Lehtosalo authored
1  .gitignore
View
@@ -4,6 +4,7 @@ alorec
alore.exe
alorec.exe
libalore.a
+alore.res
build.h
config.h
config.status
9 Makefile.in
View
@@ -29,6 +29,7 @@ LDFLAGS = @LDFLAGS@ @LD_EXPORT_FLAGS@ @LIBS@
MOD_LDFLAGS = @MOD_LDFLAGS@ @LIBS@
MOD_CFLAGS = $(CFLAGS) @CC_SHARED_FLAGS@
IMPLIB = @IMPLIB@
+RESFILE = @RESFILE@
# Either buildversion or empty (depending on whether we are building from a
# git working copy or not).
@@ -123,8 +124,8 @@ ALOREC_SRC += util/compiler/platdeps.alo util/compiler/options.alo
all: alore alorec $(MODULES) $(IMPLIB)
-alore $(IMPLIB): $(INTERP_OBJ)
- $(LD) -o $@ $(INTERP_OBJ) $(LDFLAGS)
+alore $(IMPLIB): $(INTERP_OBJ) $(RESFILE)
+ $(LD) -o $@ $(INTERP_OBJ) $(LDFLAGS) $(RESFILE)
alorec: alore lib/libalorec.a $(ALOREC_SRC) $(MODULE_LIBS) $(MODULES)
./alore util/alorec.alo -L lib util/alorec.alo
@@ -134,6 +135,10 @@ lib/libalorec.a: $(COMPILED_OBJ)
ar rc $@ $(COMPILED_OBJ)
ranlib $@
+# Windows resource file (contains the icon)
+alore.res: windows/alore.rc windows/alore.ico
+ windres windows/alore.rc -O coff -o alore.res
+
test: alore $(MODULES)
test/test.sh
9 configure.ac
View
@@ -182,6 +182,15 @@ windows) IMPLIB="libalore.a";;
esac
AC_MSG_RESULT([$IMPLIB])
+# In Mingw, we need to build a resource file.
+AC_SUBST(RESFILE)
+AC_MSG_CHECKING([for resource file])
+case $PLATFORM in
+windows) RESFILE="alore.res";;
+*) RESFILE="";;
+esac
+AC_MSG_RESULT([$RESFILE])
+
# Determine shared library extension.
AC_SUBST(SOEXT)
AC_MSG_CHECKING([for suffix of shared libraries])
BIN  windows/alore.ico
View
Binary file not shown
1  windows/alore.rc
View
@@ -0,0 +1 @@
+1 ICON "windows/alore.ico"
Please sign in to comment.
Something went wrong with that request. Please try again.