feat: resource.pack estil coffee_crisis — Fase 1 (pack + helper + eina pack_resources)
This commit is contained in:
@@ -22,6 +22,10 @@ set(APP_SOURCES
|
||||
# Core - Locale (nova capa)
|
||||
source/core/locale/locale.cpp
|
||||
|
||||
# Core - Resources (pack binari AEE1, estil coffee_crisis)
|
||||
source/core/resources/resource_pack.cpp
|
||||
source/core/resources/resource_helper.cpp
|
||||
|
||||
# Core - Capa de presentación (nueva)
|
||||
source/core/rendering/menu.cpp
|
||||
source/core/rendering/overlay.cpp
|
||||
@@ -225,6 +229,20 @@ if(NOT EMSCRIPTEN)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR})
|
||||
endif()
|
||||
|
||||
# --- EINA STANDALONE: pack_resources ---
|
||||
# Executable auxiliar que empaqueta `data/` a `resource.pack` (format AEE1).
|
||||
# No es compila per defecte (EXCLUDE_FROM_ALL). Build explícit:
|
||||
# cmake --build build --target pack_resources
|
||||
# Després executar: ./build/pack_resources data resource.pack
|
||||
if(NOT EMSCRIPTEN)
|
||||
add_executable(pack_resources EXCLUDE_FROM_ALL
|
||||
tools/pack_resources/pack_resources.cpp
|
||||
source/core/resources/resource_pack.cpp
|
||||
)
|
||||
target_include_directories(pack_resources PRIVATE "${CMAKE_SOURCE_DIR}/source")
|
||||
target_compile_options(pack_resources PRIVATE -Wall)
|
||||
endif()
|
||||
|
||||
# --- CLANG-FORMAT TARGETS ---
|
||||
find_program(CLANG_FORMAT_EXE NAMES clang-format)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user