[upstream_utils] Disable glfw docs build by default (#6863)

Fixes #6862.
This commit is contained in:
Tyler Veness
2024-07-21 07:15:22 -07:00
committed by GitHub
parent 45f3e3a069
commit 57205c8d15
4 changed files with 25 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ endif()
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" ${GLFW_STANDALONE})
option(GLFW_BUILD_TESTS "Build the GLFW test programs" ${GLFW_STANDALONE})
option(GLFW_BUILD_DOCS "Build the GLFW documentation" ON)
option(GLFW_BUILD_DOCS "Build the GLFW documentation" OFF)
option(GLFW_INSTALL "Generate installation target" ON)
include(GNUInstallDirs)

View File

@@ -73,6 +73,7 @@ def main():
patch_list = [
"0001-Suppress-Compiler-Warnings.patch",
"0002-Disable-docs-build-by-default.patch",
]
glfw = Lib(name, url, tag, patch_list, copy_upstream_src)

View File

@@ -1,7 +1,7 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: PJ Reiniger <pj.reiniger@gmail.com>
Date: Wed, 10 Jul 2024 03:16:58 -0400
Subject: [PATCH] Suppress Compiler Warnings
Subject: [PATCH 1/2] Suppress Compiler Warnings
---
src/input.c | 4 ++++

View File

@@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tyler Veness <calcmogul@gmail.com>
Date: Sat, 20 Jul 2024 23:18:56 -0700
Subject: [PATCH 2/2] Disable docs build by default
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5e538bf7cc1807e85a53361ee732122650708b7..cf2dc45788d75adc90c3bc9e49964462740e0723 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,7 @@ endif()
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" ${GLFW_STANDALONE})
option(GLFW_BUILD_TESTS "Build the GLFW test programs" ${GLFW_STANDALONE})
-option(GLFW_BUILD_DOCS "Build the GLFW documentation" ON)
+option(GLFW_BUILD_DOCS "Build the GLFW documentation" OFF)
option(GLFW_INSTALL "Generate installation target" ON)
include(GNUInstallDirs)