mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-11-25 07:31:52 +00:00
Add win32 ico and properties
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@119 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
parent
06e2612a5b
commit
f22907849c
59
contrib/toacme/src/Makefile.mingw
Normal file
59
contrib/toacme/src/Makefile.mingw
Normal file
@ -0,0 +1,59 @@
|
||||
CFLAGS = -O3 -Wall -Wstrict-prototypes
|
||||
#LIBS = -lm
|
||||
CC = gcc
|
||||
RM = rm
|
||||
|
||||
#SRC =
|
||||
|
||||
PROGS = toacme.exe
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
vis.o: config.h acme.h io.h mnemo.h scr2iso.h vis.c
|
||||
|
||||
ab3.o: config.h ab.h acme.h io.h mnemo.h scr2iso.h ab3.c
|
||||
|
||||
ab.o: config.h ab.h acme.h io.h scr2iso.h ab.c
|
||||
|
||||
f8ab.o: config.h ab.h acme.h io.h mnemo.h scr2iso.h f8ab.c
|
||||
|
||||
giga.o: config.h acme.h gighyp.h io.h mnemo.h pet2iso.h giga.c
|
||||
|
||||
gighyp.o: config.h acme.h io.h pet2iso.h gighyp.h gighyp.c
|
||||
|
||||
hypra.o: config.h acme.h gighyp.h io.h pet2iso.h hypra.c
|
||||
|
||||
obj.o: config.h acme.h io.h mnemo.h obj.c
|
||||
|
||||
acme.o: config.h acme.h acme.c
|
||||
|
||||
main.o: config.h version.h main.c
|
||||
|
||||
mnemo.o: config.h mnemo.c
|
||||
|
||||
pet2iso.o: config.h pet2iso.h pet2iso.c
|
||||
|
||||
platform.o: config.h platform.h platform.c
|
||||
|
||||
prof.o: config.h prof.c
|
||||
|
||||
scr2iso.o: config.h scr2iso.h scr2iso.c
|
||||
|
||||
version.o: config.h version.c
|
||||
|
||||
toacme.exe: vis.o ab.o ab3.o acme.o f8ab.o giga.o gighyp.o hypra.o io.o main.o mnemo.o obj.o pet2iso.o platform.o prof.o scr2iso.o version.o resource.res
|
||||
$(CC) $(LIBS) $(CFLAGS) -o toacme vis.o ab.o ab3.o acme.o f8ab.o giga.o gighyp.o hypra.o io.o main.o mnemo.o obj.o pet2iso.o platform.o prof.o scr2iso.o version.o resource.res
|
||||
strip toacme.exe
|
||||
|
||||
win/resource.rc: main.c
|
||||
cd win; sh setRelease.sh
|
||||
|
||||
resource.res: win/resource.rc win/logo.ico
|
||||
cd win; windres resource.rc -O coff -o ../resource.res
|
||||
cp -f win/logo.ico .
|
||||
|
||||
clean:
|
||||
-$(RM) -f *.o $(PROGS) *~ core resource.res logo.ico win/resource.rc
|
||||
|
||||
|
||||
# DO NOT DELETE
|
BIN
contrib/toacme/src/win/logo.ico
Normal file
BIN
contrib/toacme/src/win/logo.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 119 KiB |
58
contrib/toacme/src/win/setRelease.sh
Normal file
58
contrib/toacme/src/win/setRelease.sh
Normal file
@ -0,0 +1,58 @@
|
||||
#/bin/bash
|
||||
#
|
||||
# Get release and create RC-File
|
||||
#
|
||||
function DEBUG()
|
||||
{
|
||||
[ "$_DEBUG" == "on" ] && $@
|
||||
}
|
||||
function pause()
|
||||
{
|
||||
read -p "Weiter mit Eingabe" $a
|
||||
}
|
||||
FILE="resource.rc"
|
||||
RELEASE=`grep -m1 "define RELEASE" ../version.c | cut -f2 | tr -d '"'`
|
||||
DEBUG echo $RELEASE
|
||||
VERSION=${RELEASE//./,},0
|
||||
DEBUG echo $VERSION
|
||||
FILEVERSION=\""$RELEASE ${CODENAME//\"/}"\"
|
||||
DEBUG echo $FILEVERSION
|
||||
CHANGE_YEAR=`grep -m1 "define CHANGE_YEAR" ../version.c | cut -f2 | tr -d '"'`
|
||||
DEBUG echo $CHANGE_YEAR
|
||||
|
||||
cat << EndOfFile > $FILE
|
||||
// Iconfile (64/32/16)
|
||||
ID ICON "Logo.ico"
|
||||
|
||||
// Infos for windows
|
||||
1 VERSIONINFO
|
||||
FILEVERSION $VERSION
|
||||
PRODUCTVERSION $VERSION
|
||||
FILEFLAGSMASK 0x3fL
|
||||
FILEFLAGS 0x0L
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904E4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Smørbrød Software"
|
||||
VALUE "FileDescription", "ToAcme Converter"
|
||||
VALUE "FileVersion", $FILEVERSION
|
||||
VALUE "InternalName", "ToACME Converter"
|
||||
VALUE "LegalCopyright", "Copyright © $CHANGE_YEAR Marco Baye"
|
||||
VALUE "OriginalFilename", "toacme.exe"
|
||||
VALUE "ProductName", "ToACME Converter"
|
||||
VALUE "ProductVersion", $FILEVERSION
|
||||
VALUE "PorductLicence","GNU General Public License"
|
||||
VALUE "WindowsPort","Dirk Höpfner hoeppie@gmx.de"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1252
|
||||
END
|
||||
END
|
||||
EndOfFile
|
Loading…
Reference in New Issue
Block a user