zoukankan      html  css  js  c++  java
  • The old instructions for getting the code

    The old instructions for getting the code

    This page is obsolete. Please see Get the Code: Checkout, Build, & Run Chromium instead.

    Prerequisites

    Chromium supports building on Windows, Mac and Linux host systems. Linux is required for building Android, and a Mac is required for building iOS.

    Platform-specific requirements

    This page documents common checkout and build instructions. There are platform-specific pages with additional information and requirements:

    Set up your environment

    Check out and install the depot_tools package. This contains the custom tools necessary to check out and build.

    Create a chromium directory for the checkout and change to it (you can call this whatever you like and put it wherever you like, as long as the full path has no spaces):

    mkdir chromium
    cd chromium

    Check out the source code

    Use the "fetch" tool that came with depot_tools:

    fetch chromium    # [fetch --no-history chromium]
    cd src    # All other commands are executed from the src/ directory.

    Use --no-history if you don't need repo history and want a faster checkout. Expect a checkout to take at least 30 minutes on fast connections, and many hours on slower connections.

    Post-sync hooks

    Some platform-specific pages (linked above) may have extra instructions. In particular, on Ubuntu Linux run:

    ./build/install-build-deps.sh

    Optional: install API keys which allow your build to use certain Google services. This isn't necessary for most development and testing purposes.

    Run hooks to fetch everything needed for your build setup.

    gclient runhooks

    Update the checkout

    To sync to newer versions of the code (not necessary the first time), run the following in your src/ directory:

    git rebase-update
    gclient sync

    The first command updates the primary Chromium source repository and rebases your local development branches on top of tip-of-tree. The second command updates all of the dependencies specified in the DEPS file. See also "More help managing your checkout" below.

    Setting up the build

    GN is our meta-build system. It reads build configuration from BUILD.gn files and writes Ninja files to your build directory. To create a GN build directory:

    gn gen out/Default
    • You only have to do this once, it will regenerate automatically when you build if the build files changed.
    • You can replace out/Default with another name inside the out directory.
    • To specify build parameters for GN builds, including release settings, see GN build configuration. The default will be a debug component build matching the current host operating system and CPU.
    • For more info on GN, run gn help on the command line or read the quick start guide.

    Building

    Build Chromium (the "chrome" target) with Ninja using the command:

    ninja -C out/Default chrome

    List all GN targets by running  gn ls out/Default  from the command line. To compile one, pass to Ninja the GN label with no preceding "//" (so for //ui/display:display_unittests use ninja -C out/Default ui/display:display_unittests).

  • 相关阅读:
    【神经网络】LSTM 网络
    【Linux】利用Xvfb关闭chrome的图形化输出
    性能测试面试题:如何找到并发数、平均响应时间、tps的最佳平衡点?
    jmeter引用jar包的3种方式
    flask如何返回真正意义上的json字符串?以及中文如何正常显示?
    记录一次群答问:requests获取cookie
    【笔试题】python文件操作
    JMeter5.1开发http协议接口之form表单脚本
    【笔试题】面向对象小测试(二)
    【笔试题】面向对象小测试(一)
  • 原文地址:https://www.cnblogs.com/bigben0123/p/12556032.html
Copyright © 2011-2022 走看看