Skip to content

Commit

Permalink
README.md Update
Browse files Browse the repository at this point in the history
  • Loading branch information
devjangid15 committed Dec 31, 2024
1 parent c185fa5 commit 7fcaf97
Showing 1 changed file with 36 additions and 42 deletions.
78 changes: 36 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,32 +56,8 @@ Once you've run install-build-deps at least once, you can now run the Chromium-s
gclient runhooks
```

#### Install WebUI deps
With node v18
```bash
cd src && npm i --legacy-peer-deps
```

#### Setting up the build

#### Build Options:

##### Reference .gclient
```gn
solutions = [
{
"name": "src",
"url": "https://chromium.googlesource.com/chromium/src.git",
"managed": False,
"custom_deps": {},
"custom_vars": {
"checkout_pgo_profiles": True
},
},
]
target_os = ["android"]
```

##### Option 1: Generate the default Chromium APK
Run following command in ```chromium/src``` directory
```bash
Expand All @@ -92,15 +68,6 @@ and add following arguments:
```bash
target_os = "android"
target_cpu = "arm64" # or x64

# basic debug
is_official_build = false
is_debug = true

enable_extensions = true

# if ccache is used
cc_wrapper="env CCACHE_SLOPPINESS=time_macros ccache"
```

##### Option 2: Generate an optimized APK (approximately 131 MB)
Expand All @@ -114,19 +81,13 @@ gn args out/Default
```bash
target_os = "android"
target_cpu = "arm64" # or x64

is_official_build = true
is_debug = false
symbol_level = 0
enable_nacl = false
proprietary_codecs = true
ffmpeg_branding = "Chrome"
remove_webcore_debug_symbols = true
enable_extensions = true
enable_cardboard = false

# if ccache is used
cc_wrapper="env CCACHE_SLOPPINESS=time_macros ccache"
```

#### Build Chromium
Expand All @@ -138,15 +99,48 @@ autoninja -C out/Default chrome_public_apk
### Installation Steps (building wootzapp):
Change path to root directory or parent directory of your chromium build.
```bash
cd ..
cd ../..
git clone --depth 1 https://github.com/wootzapp/wootz-browser.git
```
Final Step
Adding Wootzapp on the top of chromium build.
```bash
sudo chmod -R u+w chromium/src/
cp -r wootz-browser/src/* chromium/src/
cd ~/chromium
```
#### Build Options: Add ` checkout_pgo_profiles ` in .gclient which is present in chromium directory.

cd ~/chromium/src
##### Reference .gclient
```gn
solutions = [
{
"name": "src",
"url": "https://chromium.googlesource.com/chromium/src.git",
"managed": False,
"custom_deps": {},
"custom_vars": {
"checkout_pgo_profiles": True
},
},
]
target_os = ["android"]
```
#### Run Hooks
```bash
gclient runhooks
```

### Final Step

```bash
cd src

#### Install WebUI deps With node v18
npm i --legacy-peer-deps
```

#### Build Wootzapp
```bash
autoninja -C out/Default chrome_public_apk
```

Expand Down

0 comments on commit 7fcaf97

Please sign in to comment.