webview-zig
webview-zig copied to clipboard
update to 0.14.0
The current repository encountered an error when attempting to compile at version 0.14.0:
error: no field or member function named 'defineCMacro' in 'Build.Step.Compile'
staticLib.defineCMacro("WEBVIEW_STATIC", null);
defineCMacro has been removed, defineCMacro should be replaced with:
staticLib.root_module.addCMacro("WEBVIEW_STATIC", "");
Additionally, build.zig.zon has been handled according to the following changes, see New Package Hash Format
-
namemust be a valid bare Zig-identifier. -
new
fingerprintfield
It is worth noting that the new addLibrary Function has replaced the original addStaticLibrary and addSharedLibrary, as I am not familiar with this part and these two functions have not been fully deprecated in version 0.14.0, so I have not handled them.