Skip to content

Commit

Permalink
data.zip is made by cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy authored Jan 9, 2024
1 parent bca6c4d commit d395da8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -324,20 +324,12 @@ include(SuperTux/BuildInstall)
## Create config.h now that INSTALL_SUBDIR_* have been set.
configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h )

#[[
## Configure main menu logo
if(("${SUPERTUX_VERSION_STRING}" MATCHES "^v[0-9]+\\.[0-9]+\\.[0-9]+$") OR IS_SUPERTUX_RELEASE OR STEAM_BUILD)
set(LOGO_FILE "logo_final.sprite")
else()
set(LOGO_FILE "logo.sprite")
endif()
configure_file(data/levels/misc/menu.stl.in ${CMAKE_BINARY_DIR}/data/levels/misc/menu.stl )
# Make android data.zip
if(ANDROID)
get_filename_component(DATADIR ${PROJECT_SOURCE_DIR}/data REALPATH)
if(NOT EXISTS ${PROJECT_SOURCE_DIR}/build.android/app/src/main/assets)
file(MAKE_DIRECTORY ${PROJECT_SOURCE_DIR}/build.android/app/src/main/assets)
endif()
file(COPY_FILE ${CMAKE_BINARY_DIR}/data/levels/misc/menu.stl ${DATADIR}/levels/misc/menu.stl)
file(GLOB DATA_CONTENTS RELATIVE ${DATADIR} ${DATADIR}/*)
message("DATA: ${DATA_CONTENTS}")
#file(ARCHIVE_CREATE OUTPUT ${PROJECT_SOURCE_DIR}/build.android/app/src/main/assets/data.zip PATHS ${DATA_CONTENTS} FORMAT zip)
Expand All @@ -349,7 +341,6 @@ if(ANDROID)
WORKING_DIRECTORY ${DATADIR}
)
endif()
#]]

## Build tests
include(SuperTux/BuildTests)
Expand Down

0 comments on commit d395da8

Please sign in to comment.