Patch mongoose to disable logging

This commit is contained in:
simon987 2022-02-20 08:40:38 -05:00
parent ae21d785b0
commit 2ad738b6c8
2 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,7 @@ RUN cd vcpkg && ./bootstrap-vcpkg.sh
ADD patches/* /
RUN cd /vcpkg; patch -p1 < ../mupdf-curl-dep.patch
RUN cd /vcpkg; patch -p1 < ../mongoose-master.patch
RUN cd /vcpkg; patch -p1 < ../mongoose-nolog.patch
RUN cd /vcpkg; patch -p1 < ../libraw.patch
RUN VCPKG_FORCE_SYSTEM_BINARIES=true ./vcpkg/vcpkg install \

View File

@ -0,0 +1,10 @@
--- a/ports/mongoose/CMakeLists.txt
+++ b/ports/mongoose/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.14)
project(mongoose C)
+add_compile_definitions("MG_ENABLE_LOG=0")
+
include(GNUInstallDirs)