Skip to content

Commit

Permalink
Add icon to win64 .exe, delete old .png (too dark IMO)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbloch committed Jan 14, 2024
1 parent 40a6d8d commit c530c57
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 104 deletions.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ OBJS_DOT_O := $(addsuffix .o,${OBJS})

OBJS_WASM := $(addprefix build/wasm/,${OBJS_DOT_O}) build/wasm/hostfs-unix.o build/wasm/hostfs_emscripten.o
OBJS_NATIVE := $(addprefix build/native/,${OBJS_DOT_O}) build/native/hostfs-unix.o build/native/gl.o
OBJS_WIN64 := $(addprefix build/win64/,${OBJS_DOT_O}) build/win64/hostfs-win.o build/win64/gl.o
OBJS_WIN64 := $(addprefix build/win64/,${OBJS_DOT_O}) build/win64/hostfs-win.o build/win64/gl.o build/win64/icon.o

OBJS_WASM += $(addsuffix .a, $(addprefix build/wasm/podules/,${BUILD_PODULES}))
OBJS_NATIVE += $(addsuffix .a, $(addprefix build/native/podules/,${BUILD_PODULES}))
Expand Down Expand Up @@ -217,6 +217,18 @@ build/win64/%.o: src/%.c SDL2
@mkdir -p $(@D)
${W64CC} `./SDL2/x86_64-w64-mingw32/bin/sdl2-config --cflags` -c ${CFLAGS} ${PODULE_DEFINES} $< -o $@

build/win64/icon.o: build/win64/icon.rc
@mkdir -p $(@D)
x86_64-w64-mingw32-windres $< -O coff -o $@

build/win64/icon.rc: build/win64/icon.ico
@mkdir -p $(@D)
echo 'id ICON $<' > $@

build/win64/icon.ico: Archimedes.svg
@mkdir -p $(@D)
convert $< -crop 220x256 -define icon:auto-resize="256,128,96,64,48,32,16" $@

#### Get SDL externally ##############################################

SDL_VERSION=2.28.5
Expand Down
Binary file removed icon/arculator.png
Binary file not shown.
103 changes: 0 additions & 103 deletions icon/arculator.svg

This file was deleted.

0 comments on commit c530c57

Please sign in to comment.