mirror of
https://github.com/webui-dev/webui
synced 2025-03-28 21:13:17 +00:00
Update linked lib and frameworks
This commit is contained in:
parent
736cd41f9c
commit
6ec0c7bd6c
12
build.zig
12
build.zig
@ -75,11 +75,19 @@ fn build_lib(b: *Build, optimize: OptimizeMode, target: CrossTarget, is_dynamic:
|
||||
webui.addIncludePath(.{ .path = "include" });
|
||||
webui.installHeader("include/webui.h", "webui.h");
|
||||
|
||||
if (target.os_tag == .windows or (target.os_tag == null and builtin.os.tag == .windows)) {
|
||||
if (target.isDarwin()) {
|
||||
webui.addCSourceFile(.{
|
||||
.file = .{ .path = "src/webview/wkwebview.m" },
|
||||
.flags = &.{},
|
||||
});
|
||||
webui.linkFramework("Cocoa");
|
||||
webui.linkFramework("WebKit");
|
||||
} else if (target.isWindows()) {
|
||||
webui.linkSystemLibrary("ws2_32");
|
||||
webui.linkSystemLibrary("Ole32");
|
||||
if (target.abi == .msvc) {
|
||||
webui.linkSystemLibrary("shell32");
|
||||
webui.linkSystemLibrary("Advapi32");
|
||||
webui.linkSystemLibrary("Shell32");
|
||||
webui.linkSystemLibrary("user32");
|
||||
}
|
||||
if (enable_tls) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user