Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit b62559a

Browse files
committed
[[ libCEF ]] Updating CEF Docs & Script
This patch adds some CEF update docs and a script.
1 parent 8605495 commit b62559a

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

libcef/UPDATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Steps for updating CEF
2+
3+
- Go to http://opensource.spotify.com/cefbuilds/index.html
4+
- Download the latest standard distribution for Windows or Linux and extract
5+
- Delete `thirdparty/libcef/include` and `thirdparty/libcef/libcef_dll`
6+
- Copy `include` and `libcef_dll` from the CEF build to `thirdparty/libcef`
7+
- CD to `thirdparty/libcef`
8+
- Execute `python gen_libcef_paths.py libcef_dll > libcef.gypi`
9+
- Execute `python gen_libcef_stubs.py include > libcef.stubs`
10+
- Stderr will list unknown parameter or return types so edit `gen_libcef_stubs.py`
11+
to add them and run again
12+
- Copy binaries and resources from the CEF build to the prebuilt folders checking
13+
for any new file names to update in the gyp files and prebuilt builder. Note copy
14+
the binaries from the Release folder even to the debug prebuilt folders.
15+
- Reconfigure and build
16+
- Fix any API changes and make sure things work
17+
- Update `prebuilt/versions/cef` and `prebuilt/versions/cef_buildrevision`
18+
- Push up a patch to livecode and thirdparty
19+
- Kick off prebuilts

libcef/gen_libcef_paths.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env python
2+
3+
import os
4+
import sys
5+
import posixpath
6+
7+
def log(pMsg):
8+
sys.stderr.write(pMsg + "\n")
9+
sys.stderr.flush()
10+
11+
def gen_paths_file(pPaths):
12+
tFileList = []
13+
14+
for tPath in pPaths:
15+
for tRoot, tFolders, tFiles in os.walk(tPath):
16+
if os.path.basename(tRoot) != "test":
17+
tFileNames = filter(lambda(s) : s.endswith(".h") or s.endswith(".cc"), tFiles)
18+
19+
tRoot = tRoot.replace(os.path.sep, "/")
20+
21+
for tFile in tFileNames:
22+
tFileList.append("\t\t\t'" + posixpath.join(tRoot, tFile) + "',")
23+
24+
tFileList.sort()
25+
26+
print "{\n"
27+
print "\t'variables': {\n"
28+
print "\t\t'libcef_dll_sources': [\n"
29+
30+
print "\n".join(tFileList)
31+
32+
print "\t\t]\n\t}\n}\n"
33+
34+
35+
#get include folder from the command line
36+
tPaths = ["."]
37+
if len(sys.argv) > 1:
38+
tPaths = sys.argv[1:]
39+
40+
gen_paths_file(tPaths)

0 commit comments

Comments
 (0)