aboutsummaryrefslogtreecommitdiff
path: root/src/util
ModeNameSize
-rw-r--r--CMakeLists.txt575logplain
-rw-r--r--areastore.cpp7694logplain
-rw-r--r--areastore.h5698logplain
-rw-r--r--auth.cpp4567logplain
-rw-r--r--auth.h1849logplain
-rw-r--r--base64.cpp3692logplain
-rw-r--r--base64.h250logplain
-rw-r--r--basic_macros.h1830logplain
-rw-r--r--container.h6127logplain
-rw-r--r--cpp11_container.h1271logplain
-rw-r--r--directiontables.cpp2888logplain
-rw-r--r--directiontables.h1045logplain
-rw-r--r--enriched_string.cpp4136logplain
-rw-r--r--enriched_string.h2860logplain
-rw-r--r--hex.h1689logplain
-rw-r--r--mathconstants.h103logplain
-rw-r--r--md32_common.h16104logplain
-rw-r--r--numeric.cpp7270logplain
-rw-r--r--numeric.h8459logplain
-rw-r--r--pointedthing.cpp2857logplain
-rw-r--r--pointedthing.h1389logplain
-rw-r--r--pointer.h5392logplain
-rw-r--r--serialize.cpp13320logplain
-rw-r--r--serialize.h15976logplain
-rw-r--r--sha1.cpp5680logplain
-rw-r--r--sha1.h1623logplain
-rw-r--r--sha2.h5839logplain
-rw-r--r--sha256.c12994logplain
-rw-r--r--srp.cpp27828logplain
-rw-r--r--srp.h6883logplain
-rw-r--r--strfnd.h2132logplain
-rw-r--r--string.cpp19979logplain
-rw-r--r--string.h15830logplain
-rw-r--r--thread.h5309logplain
-rw-r--r--timetaker.cpp1724logplain
-rw-r--r--timetaker.h1232logplain
INATION "${DOCDIR}" COMPONENT "Docs") install(FILES "doc/lua_api.txt" DESTINATION "${DOCDIR}" COMPONENT "Docs") install(FILES "doc/client_lua_api.txt" DESTINATION "${DOCDIR}" COMPONENT "Docs") install(FILES "doc/menu_lua_api.txt" DESTINATION "${DOCDIR}" COMPONENT "Docs") install(FILES "doc/texture_packs.txt" DESTINATION "${DOCDIR}" COMPONENT "Docs") install(FILES "doc/world_format.txt" DESTINATION "${DOCDIR}" COMPONENT "Docs") install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}") if(UNIX AND NOT APPLE) install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6") install(FILES "misc/net.minetest.minetest.desktop" DESTINATION "${XDG_APPS_DIR}") install(FILES "misc/net.minetest.minetest.appdata.xml" DESTINATION "${APPDATADIR}") install(FILES "misc/minetest.svg" DESTINATION "${ICONDIR}/hicolor/scalable/apps") install(FILES "misc/minetest-xorg-icon-128.png" DESTINATION "${ICONDIR}/hicolor/128x128/apps" RENAME "minetest.png") endif() if(APPLE) install(FILES "misc/minetest-icon.icns" DESTINATION "${SHAREDIR}") install(FILES "misc/Info.plist" DESTINATION "${BUNDLE_PATH}/Contents") endif() # Library pack find_package(GMP REQUIRED) find_package(Json REQUIRED) find_package(Lua REQUIRED) # JsonCPP doesn't compile well on GCC 4.8 if(NOT ENABLE_SYSTEM_JSONCPP) set(GCC_MINIMUM_VERSION "4.9") endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "${GCC_MINIMUM_VERSION}") message(FATAL_ERROR "Insufficient gcc version, found ${CMAKE_CXX_COMPILER_VERSION}. " "Version ${GCC_MINIMUM_VERSION} or higher is required.") endif() elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "${CLANG_MINIMUM_VERSION}") message(FATAL_ERROR "Insufficient clang version, found ${CMAKE_CXX_COMPILER_VERSION}. " "Version ${CLANG_MINIMUM_VERSION} or higher is required.") endif() endif() # Subdirectories # Be sure to add all relevant definitions above this add_subdirectory(src) # CPack set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A free open-source voxel game engine with easy modding and game creation.") set(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH}) set(CPACK_PACKAGE_VENDOR "celeron55") set(CPACK_PACKAGE_CONTACT "Perttu Ahola <celeron55@gmail.com>") include(CPackComponent) cpack_add_component(Docs DISPLAY_NAME "Documentation" DESCRIPTION "Documentation about Minetest and Minetest modding" ) cpack_add_component(SUBGAME_MINETEST_GAME DISPLAY_NAME "Minetest Game" DESCRIPTION "The official subgame for the Minetest engine, that can easily extended by mods." GROUP "Subgames" ) cpack_add_component(SUBGAME_MINIMAL DISPLAY_NAME "Development Test" DESCRIPTION "A minimal test game helping to develop the engine." DISABLED #DISABLED does not mean it is disabled, and is just not selected by default. GROUP "Subgames" ) cpack_add_component_group(Subgames DESCRIPTION "Games for the Minetest engine." ) if(WIN32) # Include all dynamically linked runtime libaries such as MSVCRxxx.dll include(InstallRequiredSystemLibraries) if(RUN_IN_PLACE) if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION_STRING}-win64") else() set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION_STRING}-win32") endif() set(CPACK_GENERATOR ZIP) else() set(CPACK_GENERATOR WIX ZIP) set(CPACK_PACKAGE_NAME "${PROJECT_NAME_CAPITALIZED}") set(CPACK_PACKAGE_INSTALL_DIRECTORY "${PROJECT_NAME_CAPITALIZED}") set(CPACK_PACKAGE_EXECUTABLES ${PROJECT_NAME} "${PROJECT_NAME_CAPITALIZED}") set(CPACK_CREATE_DESKTOP_LINKS ${PROJECT_NAME}) set(CPACK_WIX_PRODUCT_ICON "${CMAKE_CURRENT_SOURCE_DIR}/misc/minetest-icon.ico") # Supported languages can be found at # http://wixtoolset.org/documentation/manual/v3/wixui/wixui_localization.html #set(CPACK_WIX_CULTURES "ar-SA,bg-BG,ca-ES,hr-HR,cs-CZ,da-DK,nl-NL,en-US,et-EE,fi-FI,fr-FR,de-DE") set(CPACK_WIX_UI_BANNER "${CMAKE_CURRENT_SOURCE_DIR}/misc/CPACK_WIX_UI_BANNER.BMP") set(CPACK_WIX_UI_DIALOG "${CMAKE_CURRENT_SOURCE_DIR}/misc/CPACK_WIX_UI_DIALOG.BMP") set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/doc/lgpl-2.1.txt") # The correct way would be to include both x32 and x64 into one installer # and install the appropriate one. # CMake does not support that, so there are two separate GUID's if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(CPACK_WIX_UPGRADE_GUID "745A0FB3-5552-44CA-A587-A91C397CCC56") else() set(CPACK_WIX_UPGRADE_GUID "814A2E2D-2779-4BBD-9ACD-FC3BD51FBBA2") endif() endif() elseif(APPLE) set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0) set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION_STRING}-osx") set(CPACK_GENERATOR ZIP) else() set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION_STRING}-linux") set(CPACK_GENERATOR TGZ) set(CPACK_SOURCE_GENERATOR TGZ) endif() include(CPack) # Add a target to generate API documentation with Doxygen find_package(Doxygen) if(DOXYGEN_FOUND) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile @ONLY) add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc COMMENT "Generating API documentation with Doxygen" VERBATIM ) endif()