Skip to content

Commit

Permalink
fix: compiling webview shared library on linux (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd authored Jun 25, 2022
1 parent 8fce693 commit f7e907b
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions script/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,25 +115,14 @@ switch (Deno.build.os) {
exit: ExitType.Fail,
args: [
"webview/webview.cc",
"-c",
"-DWEBVIEW_GTK",
"-shared",
"-std=c++11",
"-Wall",
"-Wextra",
"-pedantic",
"-fpic",
...stdout.split(" "),
"-o",
"build/webview.o",
],
},
});
await spawn("c++", {
opts: {
exit: ExitType.Fail,
args: [
"build/webview.o",
"-shared",
...stdout.trim().split(" "),
"-o",
"build/libwebview.so",
],
Expand Down

0 comments on commit f7e907b

Please sign in to comment.