This is my personal solutions for C++ in Chromium 101 - Codelab. Some of my solutions will cover more things, just for practice.
- Get chromium source files.
- Put repository
CodeLabalong side withsrc. - Setup
ninja, which can be found in thedepot_toolsof chromium. - Run the following command to generate the ninja build files, build and run.
$ path/to/chromium/src/tools/gyp/gyp --depth=. cpp101.gyp\
-I/path/to/chromium/src/build/common.gypi
$ ninja -C out/Release
$ out/Release/use_base- open an administrator cmd console and delete the file build,chrome,tools,third_party
- run
c:\work\chrome\CodeLab-master> mklink /D build ..\src\build
c:\work\chrome\CodeLab-master> do the same for all other directories: \
chrome, tools, third_party
c:\work\chrome\CodeLab-master> ..\src\tools\gyp\gyp --depth=. \
--no-circular-check cpp101.gyp -I..\src\build\common.gypiNote: my chromium src path is "c:\work\chrome\src"