modificat makefile per a windows_release

This commit is contained in:
2025-10-25 13:27:25 +02:00
parent 4164cc8e88
commit 0a269449a3
3 changed files with 8 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ TARGET_NAME := shadertoy
TARGET_FILE := $(DIR_BIN)$(TARGET_NAME) TARGET_FILE := $(DIR_BIN)$(TARGET_NAME)
APP_NAME := Shadertoy APP_NAME := Shadertoy
RELEASE_FOLDER := shadertoy_release RELEASE_FOLDER := shadertoy_release
RESOURCE_FILE := release/shadertoy.res
# Versión automática basada en la fecha actual (específica por SO) # Versión automática basada en la fecha actual (específica por SO)
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
@@ -74,7 +75,8 @@ endif
windows: windows:
@echo off @echo off
@echo Compilando para Windows con nombre: "$(APP_NAME).exe" @echo Compilando para Windows con nombre: "$(APP_NAME).exe"
$(CXX) $(APP_SOURCES) $(INCLUDES) $(CXXFLAGS) $(LDFLAGS) -o "$(WIN_TARGET_FILE).exe" windres release/shadertoy.rc -O coff -o $(RESOURCE_FILE)
$(CXX) $(APP_SOURCES) $(RESOURCE_FILE) $(INCLUDES) $(CXXFLAGS) $(LDFLAGS) -o "$(WIN_TARGET_FILE).exe"
strip -s -R .comment -R .gnu.version "$(WIN_TARGET_FILE).exe" --strip-unneeded strip -s -R .comment -R .gnu.version "$(WIN_TARGET_FILE).exe" --strip-unneeded
windows_debug: windows_debug:
@@ -98,8 +100,11 @@ windows_release:
powershell Copy-Item "README.md" -Destination "$(RELEASE_FOLDER)" powershell Copy-Item "README.md" -Destination "$(RELEASE_FOLDER)"
powershell Copy-Item "release\*.dll" -Destination "$(RELEASE_FOLDER)" powershell Copy-Item "release\*.dll" -Destination "$(RELEASE_FOLDER)"
# Compila el recurso de icono
@windres release/shadertoy.rc -O coff -o $(RESOURCE_FILE)
# Compila # Compila
$(CXX) $(APP_SOURCES) $(INCLUDES) -DRELEASE_BUILD $(CXXFLAGS) $(LDFLAGS) -o "$(WIN_RELEASE_FILE).exe" $(CXX) $(APP_SOURCES) $(RESOURCE_FILE) $(INCLUDES) -DRELEASE_BUILD $(CXXFLAGS) $(LDFLAGS) -o "$(WIN_RELEASE_FILE).exe"
strip -s -R .comment -R .gnu.version "$(WIN_RELEASE_FILE).exe" --strip-unneeded strip -s -R .comment -R .gnu.version "$(WIN_RELEASE_FILE).exe" --strip-unneeded
# Crea el fichero .zip # Crea el fichero .zip

View File

@@ -1,2 +1,2 @@
// coffee.rc // shadertoy.rc
IDI_ICON1 ICON "icon.ico" IDI_ICON1 ICON "icon.ico"

Binary file not shown.