arreglos en makefiles i cmakes
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -19,3 +19,5 @@ cppcheck-result*
|
|||||||
desktop.ini
|
desktop.ini
|
||||||
ccae_release/
|
ccae_release/
|
||||||
resources.pack
|
resources.pack
|
||||||
|
tools/pack_resources.cpp
|
||||||
|
pack_resources.cpp
|
||||||
|
|||||||
82
Makefile
82
Makefile
@@ -22,7 +22,7 @@ else
|
|||||||
PACK_CXX := $(CXX)
|
PACK_CXX := $(CXX)
|
||||||
endif
|
endif
|
||||||
PACK_SOURCES := $(DIR_TOOLS)pack_resources.cpp $(DIR_SOURCES)resource_pack.cpp
|
PACK_SOURCES := $(DIR_TOOLS)pack_resources.cpp $(DIR_SOURCES)resource_pack.cpp
|
||||||
PACK_INCLUDES := -I$(DIR_ROOT)
|
PACK_INCLUDES := -I$(DIR_ROOT) -I$(DIR_BUILD)
|
||||||
|
|
||||||
# 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)
|
||||||
@@ -49,45 +49,41 @@ RASPI_RELEASE := $(TARGET_FILE)-$(VERSION)-raspberry.tar.gz
|
|||||||
|
|
||||||
# Lista completa de archivos fuente (basada en CMakeLists.txt)
|
# Lista completa de archivos fuente (basada en CMakeLists.txt)
|
||||||
APP_SOURCES := \
|
APP_SOURCES := \
|
||||||
source/animated_sprite.cpp \
|
|
||||||
source/asset.cpp \
|
source/asset.cpp \
|
||||||
source/audio.cpp \
|
source/audio.cpp \
|
||||||
source/background.cpp \
|
|
||||||
source/balloon_formations.cpp \
|
|
||||||
source/balloon_manager.cpp \
|
|
||||||
source/balloon.cpp \
|
|
||||||
source/bullet.cpp \
|
|
||||||
source/color.cpp \
|
|
||||||
source/define_buttons.cpp \
|
|
||||||
source/difficulty.cpp \
|
|
||||||
source/director.cpp \
|
source/director.cpp \
|
||||||
source/enter_name.cpp \
|
|
||||||
source/explosions.cpp \
|
|
||||||
source/external/gif.cpp \
|
|
||||||
source/external/jail_audio.cpp \
|
|
||||||
source/external/jail_shader.cpp \
|
|
||||||
source/fade.cpp \
|
|
||||||
source/game_logo.cpp \
|
|
||||||
source/global_events.cpp \
|
source/global_events.cpp \
|
||||||
source/global_inputs.cpp \
|
source/global_inputs.cpp \
|
||||||
source/input_types.cpp \
|
|
||||||
source/input.cpp \
|
source/input.cpp \
|
||||||
source/item.cpp \
|
|
||||||
source/lang.cpp \
|
source/lang.cpp \
|
||||||
source/main.cpp \
|
source/main.cpp \
|
||||||
source/manage_hiscore_table.cpp \
|
|
||||||
source/mouse.cpp \
|
|
||||||
source/moving_sprite.cpp \
|
|
||||||
source/options.cpp \
|
|
||||||
source/param.cpp \
|
source/param.cpp \
|
||||||
source/path_sprite.cpp \
|
|
||||||
source/player.cpp \
|
|
||||||
source/resource.cpp \
|
source/resource.cpp \
|
||||||
source/resource_helper.cpp \
|
source/resource_helper.cpp \
|
||||||
source/resource_loader.cpp \
|
source/resource_loader.cpp \
|
||||||
source/resource_pack.cpp \
|
source/resource_pack.cpp \
|
||||||
source/scoreboard.cpp \
|
|
||||||
source/screen.cpp \
|
source/screen.cpp \
|
||||||
|
source/text.cpp \
|
||||||
|
source/writer.cpp \
|
||||||
|
source/ui/menu_option.cpp \
|
||||||
|
source/ui/menu_renderer.cpp \
|
||||||
|
source/ui/notifier.cpp \
|
||||||
|
source/ui/service_menu.cpp \
|
||||||
|
source/ui/ui_message.cpp \
|
||||||
|
source/ui/window_message.cpp \
|
||||||
|
source/balloon_formations.cpp \
|
||||||
|
source/balloon_manager.cpp \
|
||||||
|
source/balloon.cpp \
|
||||||
|
source/bullet.cpp \
|
||||||
|
source/bullet_manager.cpp \
|
||||||
|
source/enter_name.cpp \
|
||||||
|
source/explosions.cpp \
|
||||||
|
source/game_logo.cpp \
|
||||||
|
source/item.cpp \
|
||||||
|
source/manage_hiscore_table.cpp \
|
||||||
|
source/player.cpp \
|
||||||
|
source/scoreboard.cpp \
|
||||||
|
source/tabe.cpp \
|
||||||
source/sections/credits.cpp \
|
source/sections/credits.cpp \
|
||||||
source/sections/game.cpp \
|
source/sections/game.cpp \
|
||||||
source/sections/hiscore_table.cpp \
|
source/sections/hiscore_table.cpp \
|
||||||
@@ -95,26 +91,32 @@ APP_SOURCES := \
|
|||||||
source/sections/intro.cpp \
|
source/sections/intro.cpp \
|
||||||
source/sections/logo.cpp \
|
source/sections/logo.cpp \
|
||||||
source/sections/title.cpp \
|
source/sections/title.cpp \
|
||||||
source/shutdown.cpp \
|
source/animated_sprite.cpp \
|
||||||
|
source/background.cpp \
|
||||||
|
source/fade.cpp \
|
||||||
|
source/moving_sprite.cpp \
|
||||||
|
source/path_sprite.cpp \
|
||||||
source/smart_sprite.cpp \
|
source/smart_sprite.cpp \
|
||||||
source/sprite.cpp \
|
source/sprite.cpp \
|
||||||
source/stage.cpp \
|
|
||||||
source/system_utils.cpp \
|
|
||||||
source/tabe.cpp \
|
|
||||||
source/text.cpp \
|
|
||||||
source/texture.cpp \
|
source/texture.cpp \
|
||||||
source/tiled_bg.cpp \
|
source/tiled_bg.cpp \
|
||||||
source/ui/menu_option.cpp \
|
source/color.cpp \
|
||||||
source/ui/menu_renderer.cpp \
|
source/demo.cpp \
|
||||||
source/ui/notifier.cpp \
|
source/define_buttons.cpp \
|
||||||
source/ui/service_menu.cpp \
|
source/difficulty.cpp \
|
||||||
source/ui/ui_message.cpp \
|
source/input_types.cpp \
|
||||||
source/ui/window_message.cpp \
|
source/mouse.cpp \
|
||||||
|
source/options.cpp \
|
||||||
|
source/shutdown.cpp \
|
||||||
|
source/stage.cpp \
|
||||||
|
source/system_utils.cpp \
|
||||||
source/utils.cpp \
|
source/utils.cpp \
|
||||||
source/writer.cpp
|
source/external/jail_audio.cpp \
|
||||||
|
source/external/gif.cpp \
|
||||||
|
source/rendering/opengl/opengl_shader.cpp
|
||||||
|
|
||||||
# Includes
|
# Includes
|
||||||
INCLUDES := -Isource -Isource/external
|
INCLUDES := -Isource -Isource/external -Isource/rendering -I$(DIR_BUILD)
|
||||||
|
|
||||||
# Variables según el sistema operativo
|
# Variables según el sistema operativo
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
@@ -150,7 +152,7 @@ endif
|
|||||||
# Reglas para herramienta de empaquetado y resources.pack
|
# Reglas para herramienta de empaquetado y resources.pack
|
||||||
$(PACK_TOOL): $(PACK_SOURCES)
|
$(PACK_TOOL): $(PACK_SOURCES)
|
||||||
@echo "Compilando herramienta de empaquetado..."
|
@echo "Compilando herramienta de empaquetado..."
|
||||||
$(PACK_CXX) -std=c++17 -Wall -Os $(PACK_INCLUDES) $(PACK_SOURCES) -o $(PACK_TOOL)
|
$(PACK_CXX) -std=c++20 -Wall -Os $(PACK_INCLUDES) $(PACK_SOURCES) -o $(PACK_TOOL)
|
||||||
@echo "✓ Herramienta de empaquetado lista: $(PACK_TOOL)"
|
@echo "✓ Herramienta de empaquetado lista: $(PACK_TOOL)"
|
||||||
|
|
||||||
pack_tool: $(PACK_TOOL)
|
pack_tool: $(PACK_TOOL)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
CXX := g++
|
CXX := g++
|
||||||
CXXFLAGS := -std=c++17 -Wall -Os -I../
|
CXXFLAGS := -std=c++20 -Wall -Os -I../
|
||||||
SOURCES := pack_resources.cpp ../source/resource_pack.cpp
|
SOURCES := pack_resources.cpp ../source/resource_pack.cpp
|
||||||
TARGET := pack_resources
|
TARGET := pack_resources
|
||||||
CLEAN_FILES := pack_resources *.pack *.o
|
CLEAN_FILES := pack_resources *.pack *.o
|
||||||
|
|||||||
Reference in New Issue
Block a user