SquallATF / chromium-base

Full Chromium’s base library
2 stars 0 forks source link

Detail step to build #1

Open wxz879526 opened 2 years ago

wxz879526 commented 2 years ago

Detail step to build in windows, thanks

SquallATF commented 2 years ago
  1. git clone --recurse-submodules https://github.com/SquallATF/chromium-base.git
  2. git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
  3. set depot_tools to path, eg path C:\depot_tools;%path%
  4. set CHROMIUM_BUILDTOOLS_PATH env, eg set CHROMIUM_BUILDTOOLS_PATH=C:\chromium-base\src\buildtools
  5. Go to the chromium-base directory, eg cd C:\chromium-base
  6. run cipd ensure -root . -ensure-file gn-win.ensure to download gn.
  7. Go to the chromium-base/src directory, eg cd src
  8. If you want use chromium default toolchain Run python3 tools/clang/scripts/update.py
  9. set DEPOT_TOOLS_WIN_TOOLCHAIN=0
  10. run gn gen llvmout/ReleaseMD --args="use_custom_libcxx=false clang_use_chrome_plugins=false clang_base_path=\"to sume llvm path\" forbid_non_component_debug_builds=false treat_warnings_as_errors=false is_component_build=false is_debug=false symbol_level=0 use_allocator_shim=false use_allocator=\"none\"" to build static library. If you want build with default chromium toolchain remove clang_use_chrome_plugins and clang_base_path gn args. If you want build shared version change is_component_build to true
  11. run ninja -C llvmout/ReleaseMD base base:base_static base/third_party/dynamic_annotations base/third_party/double_conversion base/win:pe_image to build