Browse Source

Add MCPI_OPEN_SOURCE_ONLY Build Option

pull/36/head 2.2.8-flatpak
TheBrokenRail 4 weeks ago
parent
commit
654c719187
  1. 1
      CMakeLists.txt
  2. 4
      dependencies/CMakeLists.txt
  3. 3
      docs/BUILDING.md

1
CMakeLists.txt

@ -6,6 +6,7 @@ option(MCPI_SERVER_MODE "Server Mode" FALSE)
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_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
if(MCPI_BUILD_MODE STREQUAL "arm")

4
dependencies/CMakeLists.txt

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

3
docs/BUILDING.md

@ -14,6 +14,9 @@
* ``MCPI_USE_MEDIA_LAYER_PROXY``
* ``ON``: Enable 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
* Common

Loading…
Cancel
Save