diff --git a/Makefile.port b/Makefile.port index f94f1f858..7db675130 100644 --- a/Makefile.port +++ b/Makefile.port @@ -326,6 +326,9 @@ $(B_DIR)/%.o: %.cpp $(JSON_HEADERS) @mkdir -p $(dir $@) $(CXX) -c $(CXXFLAGS) $(OPT_LVL) -o $@ $< +dist/windows/%.rc: + tools/mkresource.sh $(VERSION_HASH) $(VERSION_BRANCH) $(ROMID) $(BIN_NAME) + $(B_DIR)/%.res: dist/windows/%.rc windres $< -O coff -o $@ diff --git a/dist/windows/icon.rc b/dist/windows/icon.rc deleted file mode 100644 index f2e2d4d79..000000000 --- a/dist/windows/icon.rc +++ /dev/null @@ -1 +0,0 @@ -id ICON icon.ico diff --git a/tools/mkresource.sh b/tools/mkresource.sh new file mode 100644 index 000000000..d8f11bf47 --- /dev/null +++ b/tools/mkresource.sh @@ -0,0 +1,27 @@ +tee dist/windows/icon.rc <