mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
REMOVE: all build actions
This commit is contained in:
@@ -381,60 +381,4 @@ else()
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_SOURCE_DIR}/misc/web/index.html" $<TARGET_FILE_DIR:${PROJECT_NAME}>
|
||||
)
|
||||
endif()
|
||||
|
||||
# Installing and packing
|
||||
|
||||
find_package(Git REQUIRED)
|
||||
|
||||
execute_process(
|
||||
COMMAND ${GIT_EXECUTABLE} log -1 --format=%h
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE GIT_SHORTSHA
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME)
|
||||
set(CPACK_PACKAGE_NAME "MCPE-0.6.1-for-all")
|
||||
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${SYSTEM_NAME})
|
||||
set(CPACK_PACKAGE_VENDOR "MCPE-0.6.1-for-all")
|
||||
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
|
||||
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/package")
|
||||
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install")
|
||||
set(CPACK_GENERATOR "ZIP")
|
||||
|
||||
set(GIT_REPO "https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1")
|
||||
|
||||
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION .)
|
||||
|
||||
if(NOT UNIX)
|
||||
install(FILES
|
||||
$<TARGET_RUNTIME_DLLS:${PROJECT_NAME}>
|
||||
DESTINATION .
|
||||
)
|
||||
endif()
|
||||
|
||||
install(DIRECTORY "${CMAKE_SOURCE_DIR}/data" DESTINATION .)
|
||||
|
||||
string(TIMESTAMP CURRENT_DATE "%Y-%m-%d")
|
||||
string(TIMESTAMP CURRENT_TIME "%H:%M:%S")
|
||||
|
||||
set(VERSION_STR "${PROJECT_VERSION}")
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
set(VERSION_STR "${VERSION_STR} - Development Build")
|
||||
endif()
|
||||
|
||||
file(WRITE "${CMAKE_BINARY_DIR}/version.txt"
|
||||
"Minecraft PE 0.6.1
|
||||
|
||||
Autogenerated file by cmake-${CMAKE_VERSION}
|
||||
Report issues ${GIT_REPO}/issues
|
||||
|
||||
Build date: ${CURRENT_DATE} ${CURRENT_TIME}
|
||||
Build configuration: ${CMAKE_BUILD_TYPE}
|
||||
Git commit: ${GIT_SHORTSHA}
|
||||
Platform: ${CMAKE_SYSTEM_NAME}")
|
||||
|
||||
install(FILES "${CMAKE_BINARY_DIR}/version.txt" DESTINATION .)
|
||||
|
||||
include(CPack)
|
||||
endif()
|
||||
Reference in New Issue
Block a user