mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Add option to exclude Development Test from release packages (#13081)
* `INSTALL_DEVTEST` is the option name
This commit is contained in:
parent
390b5caaaa
commit
d0b6f217ae
3
.github/workflows/macos.yml
vendored
3
.github/workflows/macos.yml
vendored
@ -46,7 +46,8 @@ jobs:
|
|||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
|
||||||
-DCMAKE_FIND_FRAMEWORK=LAST \
|
-DCMAKE_FIND_FRAMEWORK=LAST \
|
||||||
-DCMAKE_INSTALL_PREFIX=../build/macos/ \
|
-DCMAKE_INSTALL_PREFIX=../build/macos/ \
|
||||||
-DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE
|
-DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE \
|
||||||
|
-DINSTALL_DEVTEST=TRUE
|
||||||
make -j2
|
make -j2
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
@ -249,8 +249,13 @@ endif()
|
|||||||
|
|
||||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/minetest_game" DESTINATION "${SHAREDIR}/games/"
|
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/minetest_game" DESTINATION "${SHAREDIR}/games/"
|
||||||
COMPONENT "SUBGAME_MINETEST_GAME" OPTIONAL PATTERN ".git*" EXCLUDE )
|
COMPONENT "SUBGAME_MINETEST_GAME" OPTIONAL PATTERN ".git*" EXCLUDE )
|
||||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/devtest" DESTINATION "${SHAREDIR}/games/"
|
|
||||||
COMPONENT "SUBGAME_MINIMAL" OPTIONAL PATTERN ".git*" EXCLUDE )
|
set(INSTALL_DEVTEST FALSE CACHE BOOL "Install Development Test")
|
||||||
|
|
||||||
|
if(INSTALL_DEVTEST)
|
||||||
|
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/devtest" DESTINATION "${SHAREDIR}/games/"
|
||||||
|
PATTERN ".git*" EXCLUDE )
|
||||||
|
endif()
|
||||||
|
|
||||||
if(BUILD_CLIENT)
|
if(BUILD_CLIENT)
|
||||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/client/shaders" DESTINATION "${SHAREDIR}/client")
|
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/client/shaders" DESTINATION "${SHAREDIR}/client")
|
||||||
@ -322,13 +327,6 @@ cpack_add_component(SUBGAME_MINETEST_GAME
|
|||||||
GROUP "Games"
|
GROUP "Games"
|
||||||
)
|
)
|
||||||
|
|
||||||
cpack_add_component(SUBGAME_MINIMAL
|
|
||||||
DISPLAY_NAME "Development Test"
|
|
||||||
DESCRIPTION "A basic testing environment used for engine development and sometimes for testing mods."
|
|
||||||
DISABLED #DISABLED does not mean it is disabled, and is just not selected by default.
|
|
||||||
GROUP "Games"
|
|
||||||
)
|
|
||||||
|
|
||||||
cpack_add_component_group(Subgames
|
cpack_add_component_group(Subgames
|
||||||
DESCRIPTION "Games for the Minetest engine."
|
DESCRIPTION "Games for the Minetest engine."
|
||||||
)
|
)
|
||||||
|
@ -262,6 +262,7 @@ General options and their default values:
|
|||||||
ENABLE_SYSTEM_JSONCPP=ON - Use JsonCPP from system
|
ENABLE_SYSTEM_JSONCPP=ON - Use JsonCPP from system
|
||||||
RUN_IN_PLACE=FALSE - Create a portable install (worlds, settings etc. in current directory)
|
RUN_IN_PLACE=FALSE - Create a portable install (worlds, settings etc. in current directory)
|
||||||
ENABLE_UPDATE_CHECKER=TRUE - Whether to enable update checks by default
|
ENABLE_UPDATE_CHECKER=TRUE - Whether to enable update checks by default
|
||||||
|
INSTALL_DEVTEST=FALSE - Whether the Development Test game should be installed alongside Minetest
|
||||||
USE_GPROF=FALSE - Enable profiling using GProf
|
USE_GPROF=FALSE - Enable profiling using GProf
|
||||||
VERSION_EXTRA= - Text to append to version (e.g. VERSION_EXTRA=foobar -> Minetest 0.4.9-foobar)
|
VERSION_EXTRA= - Text to append to version (e.g. VERSION_EXTRA=foobar -> Minetest 0.4.9-foobar)
|
||||||
ENABLE_TOUCH=FALSE - Enable Touchscreen support (requires support by IrrlichtMt)
|
ENABLE_TOUCH=FALSE - Enable Touchscreen support (requires support by IrrlichtMt)
|
||||||
|
Loading…
Reference in New Issue
Block a user