Remove games from building

This commit is contained in:
raysan5 2020-04-13 15:10:42 +02:00
parent fd5d1dfcb6
commit 26f39e41a9
4 changed files with 3 additions and 9 deletions

View File

@ -134,7 +134,7 @@ script:
- $RUNNER cmake $CMAKE_ARCH_ARGS - $RUNNER cmake $CMAKE_ARCH_ARGS
-DMACOS_FATLIB=ON -DMACOS_FATLIB=ON
-DSTATIC=$STATIC -DSHARED=$SHARED -DSTATIC=$STATIC -DSHARED=$SHARED
-DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON -DBUILD_EXAMPLES=ON
-DUSE_EXTERNAL_GLFW=$USE_EXTERNAL_GLFW -DUSE_EXTERNAL_GLFW=$USE_EXTERNAL_GLFW
-DUSE_WAYLAND=$WAYLAND -DUSE_WAYLAND=$WAYLAND
-DINCLUDE_EVERYTHING=ON -DINCLUDE_EVERYTHING=ON

View File

@ -3,7 +3,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# Config options # Config options
option(BUILD_EXAMPLES "Build the examples." ON) option(BUILD_EXAMPLES "Build the examples." ON)
option(BUILD_GAMES "Build the example games." ON)
option(ENABLE_ASAN "Enable AddressSanitizer (ASAN) for debugging (degrades performance)" OFF) option(ENABLE_ASAN "Enable AddressSanitizer (ASAN) for debugging (degrades performance)" OFF)
option(ENABLE_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan) for debugging" OFF) option(ENABLE_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan) for debugging" OFF)
option(ENABLE_MSAN "Enable MemorySanitizer (MSan) for debugging (not recommended to run with ASAN)" OFF) option(ENABLE_MSAN "Enable MemorySanitizer (MSan) for debugging (not recommended to run with ASAN)" OFF)
@ -45,8 +44,4 @@ if (${BUILD_EXAMPLES})
add_subdirectory(examples) add_subdirectory(examples)
endif() endif()
if (${BUILD_GAMES})
add_subdirectory(games)
endif()
enable_testing() enable_testing()

View File

@ -39,7 +39,7 @@ before_build:
- cd build - cd build
build_script: build_script:
- cmake -G %GENERATOR% -DCMAKE_BUILD_TYPE=Release -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=%examples% -DBUILD_GAMES=%examples% -DINCLUDE_EVERYTHING=ON .. - cmake -G %GENERATOR% -DCMAKE_BUILD_TYPE=Release -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=%examples% -DINCLUDE_EVERYTHING=ON ..
- cmake --build . --target install - cmake --build . --target install
after_build: after_build:

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11) # FetchContent is available in 3.11+
project(example) project(example)
# Set this to the minimal version you want to support # Set this to the minimal version you want to support
find_package(raylib 2.5 QUIET) # Let CMake search for a raylib-config.cmake find_package(raylib 3.0 QUIET) # Let CMake search for a raylib-config.cmake
# You could change the QUIET above to REQUIRED and remove this if() clause # You could change the QUIET above to REQUIRED and remove this if() clause
# This part downloads raylib and builds it if it's not installed on your system # This part downloads raylib and builds it if it's not installed on your system
@ -20,7 +20,6 @@ if (NOT raylib_FOUND) # If there's none, fetch and build raylib
FetchContent_Populate(raylib) FetchContent_Populate(raylib)
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # or games
# build raylib # build raylib
add_subdirectory(${raylib_SOURCE_DIR} ${raylib_BINARY_DIR}) add_subdirectory(${raylib_SOURCE_DIR} ${raylib_BINARY_DIR})