Browse Source

Remove games from building

raysan5 5 years ago
parent
commit
26f39e41a9
4 changed files with 3 additions and 9 deletions
  1. 1 1
      .travis.yml
  2. 0 5
      CMakeLists.txt
  3. 1 1
      appveyor.yml
  4. 1 2
      projects/CMake/CMakeLists.txt

+ 1 - 1
.travis.yml

@@ -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

+ 0 - 5
CMakeLists.txt

@@ -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()

+ 1 - 1
appveyor.yml

@@ -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:

+ 1 - 2
projects/CMake/CMakeLists.txt

@@ -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})