From fa738ea4a3d78046c100fd953f33bbc902821d67 Mon Sep 17 00:00:00 2001 From: cbdev Date: Fri, 17 Jan 2020 19:43:08 +0100 Subject: Add project logo and initial Windows resource data --- MIDIMonster.svg | 1 + Makefile | 9 +++++++-- midimonster.ico | Bin 0 -> 5430 bytes midimonster.rc | 22 ++++++++++++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 MIDIMonster.svg create mode 100644 midimonster.ico create mode 100644 midimonster.rc diff --git a/MIDIMonster.svg b/MIDIMonster.svg new file mode 100644 index 0000000..492feb5 --- /dev/null +++ b/MIDIMonster.svg @@ -0,0 +1 @@ +Asset 1 \ No newline at end of file diff --git a/Makefile b/Makefile index 27f7994..6a835ac 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ midimonster: LDLIBS = -ldl ifneq "$(GITVERSION)" "" midimonster: CFLAGS += -DMIDIMONSTER_VERSION=\"$(GITVERSION)\" midimonster.exe: CFLAGS += -DMIDIMONSTER_VERSION=\"$(GITVERSION)\" +resource.o: RCCFLAGS += -DMIDIMONSTER_VERSION=\\\"$(GITVERSION)\\\" endif # Work around strange linker passing convention differences in Linux and OSX @@ -54,17 +55,21 @@ backends-full: midimonster: midimonster.c portability.h $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) $< $(OBJS) $(LDLIBS) -o $@ +resource.o: midimonster.rc + x86_64-w64-mingw32-windres $(RCCFLAGS) $< -o $@ --output-format=coff + midimonster.exe: export CC = x86_64-w64-mingw32-gcc midimonster.exe: CFLAGS += -Wno-format midimonster.exe: LDLIBS = -lws2_32 midimonster.exe: LDFLAGS += -Wl,--out-implib,libmmapi.a -midimonster.exe: midimonster.c portability.h $(OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) $< $(OBJS) $(LDLIBS) -o $@ +midimonster.exe: midimonster.c portability.h $(OBJS) resource.o + $(CC) $(CFLAGS) $(LDFLAGS) $< $(OBJS) resource.o $(LDLIBS) -o $@ clean: $(RM) midimonster $(RM) midimonster.exe $(RM) libmmapi.a + $(RM) resource.o $(RM) $(OBJS) $(MAKE) -C backends clean diff --git a/midimonster.ico b/midimonster.ico new file mode 100644 index 0000000..012fef6 Binary files /dev/null and b/midimonster.ico differ diff --git a/midimonster.rc b/midimonster.rc new file mode 100644 index 0000000..45a88aa --- /dev/null +++ b/midimonster.rc @@ -0,0 +1,22 @@ +#include "midimonster.h" + +0 ICON "midimonster.ico" +1 VERSIONINFO +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + BEGIN + VALUE "CompanyName", "control8r" + VALUE "FileDescription", "MIDIMonster" + VALUE "InternalName", "MIDIMonster Core (Windows Build)" + VALUE "FileVersion", MIDIMONSTER_VERSION + VALUE "OriginalFilename", "midimonster.exe" + VALUE "ProductName", "MIDIMonster" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1252 + END +END -- cgit v1.2.3