mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:07:45 +00:00
67 lines
2.7 KiB
Diff
67 lines
2.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Edwin Hoksberg <mail@edwinhoksberg.nl>
|
|
Date: Sun, 6 Jun 2021 13:56:15 +0200
|
|
Subject: [PATCH] Disable some unneeded options
|
|
|
|
Co-Authored-By: Manuel Palenzuela <manuelpalenzuelamerino@gmail.com>
|
|
Co-Authored-By: Panagiotis Vasilopoulos <hello@alwayslivid.com>
|
|
---
|
|
CMakeLists.txt | 32 ++++++++++++++++++--------------
|
|
1 file changed, 18 insertions(+), 14 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index b2e77241a2fbbb91c9057af038a3dea280b4ae7a..3e8899da4ed9871f0a1bc097e96925a9ad2e0766 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -9,22 +9,26 @@ project(libzip
|
|
VERSION 1.10.1
|
|
LANGUAGES C)
|
|
|
|
-option(ENABLE_COMMONCRYPTO "Enable use of CommonCrypto" ON)
|
|
-option(ENABLE_GNUTLS "Enable use of GnuTLS" ON)
|
|
-option(ENABLE_MBEDTLS "Enable use of mbed TLS" ON)
|
|
-option(ENABLE_OPENSSL "Enable use of OpenSSL" ON)
|
|
-option(ENABLE_WINDOWS_CRYPTO "Enable use of Windows cryptography libraries" ON)
|
|
+set(ZLIB_LIBRARY ${SERENITY_INSTALL_ROOT}/usr/local/lib/libz.a)
|
|
+set(ZLIB_INCLUDE_DIRS ${SERENITY_INSTALL_ROOT}/usr/local/include/zlib.h)
|
|
+add_compile_definitions(HAVE_STRINGS_H)
|
|
|
|
-option(ENABLE_BZIP2 "Enable use of BZip2" ON)
|
|
-option(ENABLE_LZMA "Enable use of LZMA" ON)
|
|
-option(ENABLE_ZSTD "Enable use of Zstandard" ON)
|
|
+option(ENABLE_COMMONCRYPTO "Enable use of CommonCrypto" OFF)
|
|
+option(ENABLE_GNUTLS "Enable use of GnuTLS" OFF)
|
|
+option(ENABLE_MBEDTLS "Enable use of mbed TLS" OFF)
|
|
+option(ENABLE_OPENSSL "Enable use of OpenSSL" OFF)
|
|
+option(ENABLE_WINDOWS_CRYPTO "Enable use of Windows cryptography libraries" OFF)
|
|
+
|
|
+option(ENABLE_BZIP2 "Enable use of BZip2" OFF)
|
|
+option(ENABLE_LZMA "Enable use of LZMA" OFF)
|
|
+option(ENABLE_ZSTD "Enable use of Zstandard" OFF)
|
|
|
|
option(ENABLE_FDOPEN "Enable zip_fdopen, which is not allowed in Microsoft CRT secure libraries" ON)
|
|
|
|
-option(BUILD_TOOLS "Build tools in the src directory (zipcmp, zipmerge, ziptool)" ON)
|
|
-option(BUILD_REGRESS "Build regression tests" ON)
|
|
-option(BUILD_EXAMPLES "Build examples" ON)
|
|
-option(BUILD_DOC "Build documentation" ON)
|
|
+option(BUILD_TOOLS "Build tools in the src directory (zipcmp, zipmerge, ziptool)" OFF)
|
|
+option(BUILD_REGRESS "Build regression tests" OFF)
|
|
+option(BUILD_EXAMPLES "Build examples" OFF)
|
|
+option(BUILD_DOC "Build documentation" OFF)
|
|
|
|
include(CheckFunctionExists)
|
|
include(CheckIncludeFiles)
|
|
@@ -56,10 +60,10 @@ if(WIN32)
|
|
endif()
|
|
endif()
|
|
|
|
-option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
|
+option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
|
|
option(LIBZIP_DO_INSTALL "Install libzip and the related files" ON)
|
|
|
|
-option(SHARED_LIB_VERSIONNING "Add SO version in .so build" ON)
|
|
+option(SHARED_LIB_VERSIONNING "Add SO version in .so build" OFF)
|
|
|
|
find_program(MDOCTOOL NAMES mandoc groff)
|
|
if (MDOCTOOL)
|