Add MCPI_OPEN_SOURCE_ONLY Build Option

This commit is contained in:
TheBrokenRail 2021-12-19 16:09:16 -05:00
parent e1e2977c29
commit 654c719187
3 changed files with 7 additions and 1 deletions

View File

@ -6,6 +6,7 @@ option(MCPI_SERVER_MODE "Server Mode" FALSE)
option(MCPI_HEADLESS_MODE "Headless Mode" ${MCPI_SERVER_MODE}) option(MCPI_HEADLESS_MODE "Headless Mode" ${MCPI_SERVER_MODE})
set(MCPI_BUILD_MODE "both" CACHE STRING "\"arm\" = Build Only Code That Must Be ARM; \"native\" = Build Architecture-Independent Code; \"both\" = Build All Code As ARM") set(MCPI_BUILD_MODE "both" CACHE STRING "\"arm\" = Build Only Code That Must Be ARM; \"native\" = Build Architecture-Independent Code; \"both\" = Build All Code As ARM")
set_property(CACHE MCPI_BUILD_MODE PROPERTY STRINGS "both" "arm" "native") set_property(CACHE MCPI_BUILD_MODE PROPERTY STRINGS "both" "arm" "native")
option(MCPI_OPEN_SOURCE_ONLY "Only Install Open-Source Code (Will Result In Broken Install)" FALSE)
# Configure Build Mode # Configure Build Mode
if(MCPI_BUILD_MODE STREQUAL "arm") if(MCPI_BUILD_MODE STREQUAL "arm")

View File

@ -5,4 +5,6 @@ add_subdirectory(zlib)
# LibPNG # LibPNG
add_subdirectory(libpng) add_subdirectory(libpng)
# Minecraft: Pi Edition # Minecraft: Pi Edition
if(NOT MCPI_OPEN_SOURCE_ONLY)
add_subdirectory(minecraft-pi) add_subdirectory(minecraft-pi)
endif()

View File

@ -14,6 +14,9 @@
* ``MCPI_USE_MEDIA_LAYER_PROXY`` * ``MCPI_USE_MEDIA_LAYER_PROXY``
* ``ON``: Enable The Media Layer Proxy * ``ON``: Enable The Media Layer Proxy
* ``OFF`` (Default): Disable The Media Layer Proxy * ``OFF`` (Default): Disable The Media Layer Proxy
* ``MCPI_OPEN_SOURCE_ONLY``
* ``ON``: Only Install Open-Source Code (Will Result In Broken Install)
* ``OFF`` (Default): Install All Code
## Build Dependencies ## Build Dependencies
* Common * Common