fix: makefile i cmakes

fix: initSDLVideo en opengl de linux
This commit is contained in:
2026-03-08 15:18:48 +01:00
parent 9ebf259525
commit 8d9c838be2
3 changed files with 51 additions and 5 deletions

View File

@@ -236,3 +236,24 @@ if(CLANG_FORMAT_EXE)
else()
message(STATUS "clang-format no encontrado - targets 'format' y 'format-check' no disponibles")
endif()
# --- 6. PACK RESOURCES TARGETS ---
set(PACK_TOOL_SOURCES
${CMAKE_SOURCE_DIR}/tools/pack_resources/pack_resources.cpp
${CMAKE_SOURCE_DIR}/source/core/resources/resource_pack.cpp
)
add_executable(pack_tool ${PACK_TOOL_SOURCES})
target_include_directories(pack_tool PRIVATE ${CMAKE_SOURCE_DIR}/source)
set_target_properties(pack_tool PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/tools/pack_resources
)
add_custom_target(pack
COMMAND ${CMAKE_SOURCE_DIR}/tools/pack_resources/pack_tool
${CMAKE_SOURCE_DIR}/data
${CMAKE_SOURCE_DIR}/resources.pack
DEPENDS pack_tool
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Generando resources.pack desde data/..."
)