Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get this binding to work on windows #2

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Odin binding for a tiny cross-platform **webview** library to build modern cross
<img src="https://raw.githubusercontent.com/thechampagne/webview-odin/main/.github/assets/screenshot.png"/>
</p>

## Getting Started
### Windows

Include the built DLL in the directory of your project

### References
- [webview](https://github.com/webview/webview)

Expand Down
2 changes: 1 addition & 1 deletion examples/basic.odin
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "webview"
import webview ".."

main :: proc() {
w := webview.create(0, nil)
Expand Down
Binary file added examples/webview.dll
Binary file not shown.
Binary file added webview.dll
Binary file not shown.
Binary file added webview.lib
Binary file not shown.
4 changes: 2 additions & 2 deletions webview.odin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package webview

foreign import "system:webview"

when ODIN_OS == .Windows do foreign import webview "webview.lib"
when ODIN_OS != .Windows do foreign import webview "system:webview"
import "core:c"

VERSION_MAJOR :: 0
Expand Down