File tree 4 files changed +30
-2
lines changed
4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ midimonster: LDLIBS = -ldl
18
18
ifneq "$(GITVERSION ) " ""
19
19
midimonster : CFLAGS += -DMIDIMONSTER_VERSION=\"$(GITVERSION ) \"
20
20
midimonster.exe : CFLAGS += -DMIDIMONSTER_VERSION=\"$(GITVERSION ) \"
21
+ resource.o : RCCFLAGS += -DMIDIMONSTER_VERSION=\\\"$(GITVERSION ) \\\"
21
22
endif
22
23
23
24
# Work around strange linker passing convention differences in Linux and OSX
@@ -54,17 +55,21 @@ backends-full:
54
55
midimonster : midimonster.c portability.h $(OBJS )
55
56
$(CC ) $(CFLAGS ) $(LDFLAGS ) $< $(OBJS ) $(LDLIBS ) -o $@
56
57
58
+ resource.o : midimonster.rc
59
+ x86_64-w64-mingw32-windres $(RCCFLAGS ) $< -o $@ --output-format=coff
60
+
57
61
midimonster.exe : export CC = x86_64-w64-mingw32-gcc
58
62
midimonster.exe : CFLAGS += -Wno-format
59
63
midimonster.exe : LDLIBS = -lws2_32
60
64
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 $@
63
67
64
68
clean :
65
69
$(RM ) midimonster
66
70
$(RM ) midimonster.exe
67
71
$(RM ) libmmapi.a
72
+ $(RM ) resource.o
68
73
$(RM ) $(OBJS )
69
74
$(MAKE ) -C backends clean
70
75
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments