GithubHelp home page GithubHelp logo

chromium's Introduction

chromium

##Get the code

  • check out and install the depot_tools package.

  • create chromium dir and clone the repository to src folder:

    git clone https://github.com/brave/chromium.git src

##Configure your build (You can only use a Linux build machine for Android builds)

  • create a a file called chromium.gyp_env with the following contents:

    /chromium$ echo "{ 'GYP_DEFINES': 'OS=android target_arch=arm', }" > chromium.gyp_env

  • once chromium.gyp_env is ready, you need to run the following command to update projects from gyp files. You may need to run this again when you have added new files, updated gyp files, or sync'ed your repository:

    /chromium$ gclient runhooks

  • create a build directory and set the build flags with:

    /chromium/src$ gn args out/Default

    This command will bring up your editor with the GN build args (re-run gn args on that directory to edit the flags in the future. ). In this file add:

    target_os = "android"
    target_cpu = "arm"  # (default)
    is_debug = true  # (default)
    
    is_component_build = true
    is_clang = true
    symbol_level = 1  # Faster build with fewer symbols. -g1 rather than -g2
    enable_incremental_javac = true  # Much faster; experimental
    
  • prepare the environment:

    /chromium/src$ . build/android/envsetup.sh

##Build the full browser

Note: When adding new resource files or java files in gyp builds, you need to run 'gclient runhooks' again to get them in the build.

  • build browser:

    /chromium/src$ ninja -C out/Default chrome_public_apk

  • deploy it to your Android device:

    /chromium/src$ build/android/adb_install_apk.py out/Default/apks/Brave.apk

##Debugging

  • follow that link for the general debug process;

  • follow that link to configure Eclipse IDE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.