Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Win32 build adjustments #6

Copy link
Copy link
@rotoglup

Description

@rotoglup
Issue body actions

First, thanks for the nice work :) I'm writing thise issue for potential future reference/memory as this repo is mentionned as "Python bindings" in the webview repo

I've been giving webview-python a try on Win32, and I had to make some adjustments to get the build running - see below.

Also, the current master (2e5462f from July 2018) embeds IE11, which is well deprecated/abandonned now (2021).

diff --git a/setup.py b/setup.py
index 4084d94..6d05c30 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +34,7 @@ elif OSNAME == 'Darwin':
 elif OSNAME == 'Windows':
     define_macros = [('WEBVIEW_WINAPI', '1')]
     extra_cflags = ""
-    extra_ldflags = ['-framework', 'CoreAudio']
+    extra_ldflags = ['Advapi32.lib', 'Gdi32.lib']

 webview = Extension(
     'webview',
diff --git a/webview/webview.c b/webview/webview.c
index 8ae7244..755beea 100644
--- a/webview/webview.c
+++ b/webview/webview.c
@@ -5,6 +5,10 @@
 #define WEBVIEW_IMPLEMENTATION
 #include "webview.h"

+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 typedef struct { PyObject_HEAD struct webview w; } WebView;

 static void WebView_dealloc(WebView *self) {
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.