Skip to content

Commit 6bd367f

Browse files
committed
build instructions
1 parent dab976c commit 6bd367f

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,54 @@ From NodeJS code, you can manipulate the DOM or run Javascript in the DOM contex
3636
Dependencies
3737
============
3838

39-
A patched version of CEF (Chromium Embedded Framework) is needed to make this possible. Prebuilt binaries are available for Linux (Debian and Ubuntu), Windows and OSX.
39+
A patched version of CEF (Chromium Embedded Framework) is needed to make this possible. Prebuilt binaries will be available for Linux (Debian and Ubuntu), Windows and OSX.
4040

4141
The source of Chromium is at https://github.com/rogerwang/chromium
4242

43-
Other hacks on the dependencies are:
43+
Other hacks on the dependencies are in https://github.com/rogerwang/ , e.g.:
4444

4545
https://github.com/rogerwang/node
46+
4647
https://github.com/rogerwang/libuv
4748

49+
The dependencies are managed by .DEPS.git in the 'chromium' repository.
4850

4951
Build from source
5052
=================
5153

54+
Since we are a patch on CEF, the build process is very similiar with CEF's. So it's recommended to read CEF and Chromium's build documentation first. Then download and install 'depot_tools'.
55+
56+
The difference is that we are using our own (git) repositories for some projects needed. So in the next step you need a different .gclient file to download and sync the code:
57+
58+
solutions = [
59+
{ "name" : "src",
60+
"url" : "git://github.com/rogerwang/chromium.git@node",
61+
"deps_file" : ".DEPS.git",
62+
"managed" : True,
63+
"custom_deps" : {
64+
"src/third_party/WebKit/LayoutTests": None,
65+
"src/chrome_frame/tools/test/reference_build/chrome": None,
66+
"src/chrome_frame/tools/test/reference_build/chrome_win": None,
67+
"src/chrome/tools/test/reference_build/chrome": None,
68+
"src/chrome/tools/test/reference_build/chrome_linux": None,
69+
"src/chrome/tools/test/reference_build/chrome_mac": None,
70+
"src/chrome/tools/test/reference_build/chrome_win": None,
71+
},
72+
"safesync_url": "",
73+
},
74+
]
75+
76+
and then download 'cef' repository under the 'src' directory from:
77+
78+
git://github.com/rogerwang/cef.git
79+
80+
Then execute 'cef_create_projects.{bat|sh}' in the 'cef' directory.
81+
82+
At last you should be able to build it with make or Visual Studio as documented in the CEF project.
83+
84+
If the build is successful then try to run 'cefclient /path/to/testfs.html'.
85+
86+
Good luck!
5287

5388
How it works
5489
============

0 commit comments

Comments
 (0)