Giter Club home page Giter Club logo

cef3-raw's Introduction

Linux Build Status Mac Build Status Windows Build Status

Haskell bindings to cef3.

There is also a WIP cef3-simple for some higher level functionality of some common tasks. For usage example you can check the cef3-example repo.

Installation

If you use nix or if you are on windows - see the specific subsections below.

Here is a general gist if you'd like to do it in some alternative way.

First you will need libcef (branch 1750) installed somewhere on your machine. For linux or windows 64bit you can download it from the release page of this repo. Alternatively you can build it from source if you prefer.

Next you will need to tell ghc where the required lib and include dirs are, with cabal you can do it like so:

cabal configure \
  --extra-lib-dirs="<cef3-location>/Release" \
  --extra-include-dirs="<cef3-location>" \
  --extra-include-dirs="<cef3-location>/include" \
  --extra-include-dirs="<cef3-location>/include/capi"

Then you should be able to install and use it.

Linux - Nix/NixOS

If you don't have nix:

curl https://nixos.org/nix/install | sh

Otherwise

nix-build default.nix

Beware: It takes about 20min and ~800M ram to build it on my machine. I will add this package to nixpkgs in the future so you will be able to automatically download it prebuild from binary caches, but for now beware.

Windows - Stack

You will need to have stack, curl and 7zip installed and in your PATH for setup.bat to work.

.\scripts\setup.bat

This will download cef lib and place it in C:\cef3-dev

stack setup
.\scripts\configure.bat

The configure.bat will point stack to where setup.bat installed the library.

Alternatively if you already have cef (branch 1750) installed somewhere you can just point the configure in that direction:

.\scripts\configure.bat <path-to-cef>

Finally run stack install and you're golden.

Mac

TODO...


Disclaimer: This bindings are based on one done by Daniel Austin here.

cef3-raw's People

Contributors

maxow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.