Skip to content

Instantly share code, notes, and snippets.

@pkulchenko
Created October 11, 2018 15:49
Show Gist options
  • Save pkulchenko/4ef77ff9a40976a4ada23fb60e519852 to your computer and use it in GitHub Desktop.
Save pkulchenko/4ef77ff9a40976a4ada23fb60e519852 to your computer and use it in GitHub Desktop.
Patch to enable webview in win32 build of ZeroBrane Studio
diff --git a/build/build-win32.sh b/build/build-win32.sh
index 2a6c87ac..4949d199 100644
--- a/build/build-win32.sh
+++ b/build/build-win32.sh
@@ -316,8 +316,8 @@ if [ $BUILD_WXLUA ]; then
cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" -DCMAKE_BUILD_TYPE=$WXLUABUILD -DBUILD_SHARED_LIBS=FALSE \
-DCMAKE_CXX_FLAGS="-DLUA_COMPAT_MODULE" \
-DwxWidgets_CONFIG_EXECUTABLE="$INSTALL_DIR/bin/wx-config" \
- -DwxWidgets_COMPONENTS="stc;gl;html;aui;adv;core;net;base" \
- -DwxLuaBind_COMPONENTS="stc;gl;html;aui;adv;core;net;base" -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \
+ -DwxWidgets_COMPONENTS="stc;gl;webview;html;aui;adv;core;net;base" \
+ -DwxLuaBind_COMPONENTS="stc;gl;webview;html;aui;adv;core;net;base" -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \
-DwxLua_LUA_INCLUDE_DIR="$INSTALL_DIR/include" -DwxLua_LUA_LIBRARY="$INSTALL_DIR/lib/lua$LUAV.dll" .
(cd modules/luamodule; make $MAKEFLAGS) || { echo "Error: failed to build wxLua"; exit 1; }
(cd modules/luamodule; make install)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment