Patch mongoose to disable logging

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

View File

@ -24,6 +24,7 @@ RUN git clone https://github.com/microsoft/vcpkg.git && cd vcpkg && git checkout
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 cd /vcpkg/ && ./bootstrap-vcpkg.sh

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)