Git Product home page Git Product logo

cef-cmake's Introduction

CEF-CMake

CMake files for sane usage of CEF (the Chromium Embedded Framework).

This project is still a work in progress. Things will change quickly with no regard for backwards compatibility until this note is removed.

Note that this project is not applicable for building CEF itself, but only for using it as a library in another project.

Rationale

The CEF project provide their own CMake files, but they have several outstanding issues:

  • They use old-style CMake (no target_* macros).
  • They force the use of many potentially unwanted compiler settings (no exceptions, no RTTI, C++11)

Hence projects which don't want to conform to any of this are forced to use their own solutions.

CEF-CMake fixes this and provides a CMakeLists.txt file to make using CEF easy.

CEF-CMake features

  • Uses modern CMake
  • Doesn't force any compiler settings except the minimum required:
    • /MT instead of /MTd for Visual C when sandbox mode is enabled
  • Provides the cefdll_wrapper static library target
  • Downloads a CEF binary build from Spotify's CEF automated builds
  • Copies CEF binaries and resources next to target executables appropriately

Usage

  • You can have this project as a submodule of yours or somewhere in your directory tree. Doesn't matter.
  • In your root CMakeLists.txt include <this_project_dir>/cmake/cef_cmake.cmake.
  • Add this project's directory as a subdirectory. This defines the static library target cefdll_wrapper
  • Add cefdll_wrapper to the link libraries of your CEF executables

Mac-specific instructions to come

Example

Another project of mine - cef-demos - includes this one as a submodule and provides some CEF demos, all using CEF-CMake.

License and copyright

This software is distributed under the MIT Software License.

See accompanying file LICENSE.txt or copy here.

Copyright © 2019 Borislav Stanimirov

cef-cmake's People

Contributors

ibob avatar al185154 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.