Skip to content

Instantly share code, notes, and snippets.

@longht021189
Last active June 7, 2021 02:28
Show Gist options
  • Select an option

  • Save longht021189/4e05d54f6adbb96a347c904f544036ed to your computer and use it in GitHub Desktop.

Select an option

Save longht021189/4e05d54f6adbb96a347c904f544036ed to your computer and use it in GitHub Desktop.

Revisions

  1. longht021189 revised this gist Jan 14, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Build V8 - Note.md
    Original file line number Diff line number Diff line change
    @@ -31,4 +31,6 @@ gn args out/foo --list
    - Example for ios build
    ```
    enable_ios_bitcode=true ios_deployment_target=10 is_component_build=false is_debug=false target_os="ios" use_custom_libcxx=false use_xcode_clang=true v8_enable_i18n_support=false v8_monolithic=true v8_use_external_startup_data=false is_clang=true cppgc_enable_caged_heap=false is_official_build=true fatal_linker_warnings=false treat_warnings_as_errors=false
    ```
    ```
    ## Turn off iOS Signing
    Find ios_sdk.gni in v8/build/config/ios and set `ios_enable_code_signing` to false
  2. longht021189 revised this gist Jan 13, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Build V8 - Note.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # Build V8 Note
    ## Step by step:

    - Checkout by depot-tools [https://v8.dev/docs/source-code]
  3. longht021189 created this gist Jan 13, 2021.
    33 changes: 33 additions & 0 deletions Build V8 - Note.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    ## Step by step:

    - Checkout by depot-tools [https://v8.dev/docs/source-code]
    ```
    git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ~/.v8/depot_tools
    export PATH=~/.v8//depot_tools:$PATH
    gclient
    cd path/to/v8/folder
    fetch v8
    ```

    - Generate Ninja Folder (with '...' is v8 input)
    ```
    cd path/to/v8/folder/v8
    gn gen out/foo --args='...'
    ```

    - Build
    ```
    ninja -C out/foo v8_monolith
    ```

    - Out here: out/foo/obj/libv8_monolith.a

    ## V8 Input
    - Print all
    ```
    gn args out/foo --list
    ```
    - Example for ios build
    ```
    enable_ios_bitcode=true ios_deployment_target=10 is_component_build=false is_debug=false target_os="ios" use_custom_libcxx=false use_xcode_clang=true v8_enable_i18n_support=false v8_monolithic=true v8_use_external_startup_data=false is_clang=true cppgc_enable_caged_heap=false is_official_build=true fatal_linker_warnings=false treat_warnings_as_errors=false
    ```