浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

chromiumembedded - A simple framework for embedding chromium browser windows in other applications. - Google Project Hosting

CEF3 has been released in source code form. See the CEF3 Development Status thread for details.

Introduction

The Chromium Embedded Framework (CEF) is an open source project founded by Marshall Greenblatt in 2008 to develop a Web browser control based on the Google Chromium project. CEF currently supports a range of programming languages and operating systems and can be easily integrated into both new and existing applications. It was designed from the ground up with both performance and ease of use in mind. The base framework includes C and C++ programming interfaces exposed via native libraries that insulate the host application from Chromium and WebKit implementation details. It provides close integration between the browser control and the host application including support for custom plugins, protocols, JavaScript objects and JavaScript extensions. The host application can optionally control resource loading, navigation, context menus, printing and more, while taking advantage of the same performance and HTML5 technologies available in the Google Chrome Web browser.

Numerous individuals and organizations contribute time and resources to support CEF development, but more involvement from the community is always welcome. This includes support for both the core CEF project and external projects that integrate CEF with additional programming languages and frameworks (see the "External Projects" section below). If you are interested in donating time to help with CEF development please see the "Helping Out" section below. If you are interested in donating money to support general CEF development and infrastructure efforts please visit the CEF Donations page.

Binary Distributions

Binary distributions, which include all files necessary to build a CEF-based application, are available in the Downloads section. Binary distributions are stand-alone and do not require the download of CEF or Chromium source code.

Source Distributions

The CEF project is an extension of the Chromium project hosted at http://www.chromium.org. To build CEF from source code you must first download Chromium as described at http://dev.chromium.org/developers/how-tos/get-the-code and install all of the prerequisites listed under the build instructions for your platform. The CEF files must then be placed in the top-level Chromium "src" directory, at the same level as the "base", "chrome", and "third-party" directories. For instance, if your Chromium installation directory is C:\svn\Chromium\src then the CEF files should reside in C:\svn\Chromium\src\cef. The CHROMIUM_BUILD_COMPATIBILITY.txt file provides information about compatibility between CEF and Chromium revisions.

To update to a specific Chromium revision, use

gclient sync --revision src@#### --jobs 8 --force

and the DEPS file will make sure you get the other directories in their matching forms.

Building on most platforms will require at least 4GB of system memory.

Building on Windows

Follow the Windows build instructions for your version of Visual Studio. Note that component build is not currently supported by CEF.

Run the cef_create_projects.bat script in the CEF root directory to generate Visual Studio project files from the GYP configuration. If both VS2005 and VS2008 are installed on your system you can set the GYP_MSVS_VERSION environment variable to "2005" or "2008" before running cef_create_projects.bat to create project files for that version.

To download CEF source code updates and run the cef_create_projects.bat script automatically every time Chromium sources are updated you can integrate CEF with the gclient tool. Edit the .gclient file that resides in the parent directory of Chromium "src" ("C:\svn\Chromium" in the above example) and add the following lines to the existing solutions array:

solutions = [
  { #Existing definitions here...
  },
  # BEGIN NEW LINES
  { "name"        : "src/cef",
    "url"         : "http://chromiumembedded.googlecode.com/svn/trunk/cef1",
  },
  #END NEW LINES
]
posted on 2012-05-01 23:09  lexus  阅读(291)  评论(0)    收藏  举报