项目作者: jschmidt42

项目描述 :
Download, build and package CEF for the Stingray Editor, see
高级语言: JavaScript
项目地址: git://github.com/jschmidt42/stingray-cef-build.git
创建时间: 2017-02-08T05:14:06Z
项目社区:https://github.com/jschmidt42/stingray-cef-build

开源协议:

下载


Stingray - Gulp CEF Build Script

Download, build and package CEF for the Stingray Editor.

See https://www.stingrayengine.com for more information on Stingray.

Setup build script

Install NPM modules

npm install
npm install —global gulp-cli

Generate and build solution

Run gulp build task

gulp build —cef 3.2924.1564.g0ba0378

Builds are downloaded from http://opensource.spotify.com/cefbuilds/index.html#windows64_builds

Generate, build and package CEF

Run the following gulp tasks:

gulp download build package —cef 3.2924.1564.g0ba0378

What the script is doing…

  1. Download CEF standard package…

  2. Create cmake build folder

    mkdir build

    cd build

  3. Generate solution using cmake

    First we replace /MT compile options to /MD (Multithread DLL) in cmake scripts.

    cmake -G “Visual Studio 14 Win64” .. -DUSE_SANDBOX=OFF

  4. Build solution using cmake in Debug and Release

    cmake —build . —target libcef_dll_wrapper —config Release

  5. Create this structure in the cef packaged destination lib folder

    1. +---include
    2. +---Resources
    3. \---x64
    4. +---Debug
    5. \---Release
    1. Copy Debug/ to x64/
    2. Copy Release/ to x64/
    3. Copy include/ folder to lib folder
    4. Copy Resources/ to lib folder
    5. Move Resources/icudtl.dat to x64/Debug and x64/Release
    6. Copy “build\libcef_dll\Debug\libcef_dll_wrapper.lib” to x64/Debug/
    7. Copy “build\libcef_dll\Release\libcef_dll_wrapper.lib” to x64/Release/

Command Line Usages

  1. > gulp
  2. Options:
  3. --cef, -c CEF build version to be downloaded, see
  4. http://opensource.spotify.com/cefbuilds [string] [required]
  5. --libs Stingray libs destination folder, i.e. %SR_LIB_DIR%
  6. [string] [required] [default: "E:\\stingray-libs"]
  7. Examples:
  8. gulp --cef <cef build version #> i.e. 3.2924.1564.g0ba0378