README.md 1.1 KB
Newer Older
R
Richard Wilkes 已提交
1
# cef
R
Richard Wilkes 已提交
2 3
Go bindings for the
[Chromium Embedded Framework (CEF)](https://bitbucket.org/chromiumembedded/cef).
R
Richard Wilkes 已提交
4

5 6 7
Currently works for macOS and Windows. Linux support will be coming at some
point as well.

8
## Initial setup required for Windows
R
Richard Wilkes 已提交
9 10 11 12 13 14
- Download and run the installer from http://www.msys2.org/
- In the mingw64 msys2 console, run the following:
  - `pacman -Syu`
  - `pacman -Su`
  - `pacman -S mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-go msys/git`

15 16 17 18 19 20 21
## Initial setup
In the root of the repo, run (if using Windows, do this from a mingw64 msys2
console):
```
./cef.sh --headers cef --libs cef/lib
```

R
Richard Wilkes 已提交
22
## Example application
R
Richard Wilkes 已提交
23 24
https://github.com/richardwilkes/webapp and
https://github.com/richardwilkes/webapp-example use these bindings to create
R
Richard Wilkes 已提交
25 26 27
an example desktop application.

## Updating the CEF version to be used
28 29
The CEF version can be updated in the `cef.sh` script file by changing the
`CEF_VERSION` variable. If a different CEF version is pulled, the source files
R
Richard Wilkes 已提交
30 31 32
should be generated again by running `go generate ./...` on a macOS machine.
Code generation might be possible on other platforms, but has not been tested
there.