Skip to content

Commit fa738ea

Browse files
committed
Add project logo and initial Windows resource data
1 parent 8c32598 commit fa738ea

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

MIDIMonster.svg

+1
Loading

Makefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ midimonster: LDLIBS = -ldl
1818
ifneq "$(GITVERSION)" ""
1919
midimonster: CFLAGS += -DMIDIMONSTER_VERSION=\"$(GITVERSION)\"
2020
midimonster.exe: CFLAGS += -DMIDIMONSTER_VERSION=\"$(GITVERSION)\"
21+
resource.o: RCCFLAGS += -DMIDIMONSTER_VERSION=\\\"$(GITVERSION)\\\"
2122
endif
2223

2324
# Work around strange linker passing convention differences in Linux and OSX
@@ -54,17 +55,21 @@ backends-full:
5455
midimonster: midimonster.c portability.h $(OBJS)
5556
$(CC) $(CFLAGS) $(LDFLAGS) $< $(OBJS) $(LDLIBS) -o $@
5657

58+
resource.o: midimonster.rc
59+
x86_64-w64-mingw32-windres $(RCCFLAGS) $< -o $@ --output-format=coff
60+
5761
midimonster.exe: export CC = x86_64-w64-mingw32-gcc
5862
midimonster.exe: CFLAGS += -Wno-format
5963
midimonster.exe: LDLIBS = -lws2_32
6064
midimonster.exe: LDFLAGS += -Wl,--out-implib,libmmapi.a
61-
midimonster.exe: midimonster.c portability.h $(OBJS)
62-
$(CC) $(CFLAGS) $(LDFLAGS) $< $(OBJS) $(LDLIBS) -o $@
65+
midimonster.exe: midimonster.c portability.h $(OBJS) resource.o
66+
$(CC) $(CFLAGS) $(LDFLAGS) $< $(OBJS) resource.o $(LDLIBS) -o $@
6367

6468
clean:
6569
$(RM) midimonster
6670
$(RM) midimonster.exe
6771
$(RM) libmmapi.a
72+
$(RM) resource.o
6873
$(RM) $(OBJS)
6974
$(MAKE) -C backends clean
7075

midimonster.ico

5.3 KB
Binary file not shown.

midimonster.rc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include "midimonster.h"
2+
3+
0 ICON "midimonster.ico"
4+
1 VERSIONINFO
5+
BEGIN
6+
BLOCK "StringFileInfo"
7+
BEGIN
8+
BLOCK "040904E4"
9+
BEGIN
10+
VALUE "CompanyName", "control8r"
11+
VALUE "FileDescription", "MIDIMonster"
12+
VALUE "InternalName", "MIDIMonster Core (Windows Build)"
13+
VALUE "FileVersion", MIDIMONSTER_VERSION
14+
VALUE "OriginalFilename", "midimonster.exe"
15+
VALUE "ProductName", "MIDIMonster"
16+
END
17+
END
18+
BLOCK "VarFileInfo"
19+
BEGIN
20+
VALUE "Translation", 0x0409, 1252
21+
END
22+
END

0 commit comments

Comments
 (0)