Skip to content

iridium-browser/iridium-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Iridium Browser

Iridium is an open modification of the Chromium code base, with privacy being enhanced in several key areas. Automatic transmission of partial queries, keywords, metrics to central services is inhibited and only occurs with consent.

Some more information and binary downloads can be found at https://iridiumbrowser.de/ .

Development

The repository is at git://git.iridiumbrowser.de/iridium-browser and https://github.com/iridium-browser/iridium-browser/ .

To build from source, it is advised is to re-use the mechanisms of one's Linux distribution, that is, their build environment and description for chromium, and replacing the source tarball by the one from https://dl.iridiumbrowser.de/source/ .

Be aware there are different types of source code collections:

The current Git branch you are looking at and reading this README.rst from is in the tarball state.

Reporting bugs and issues

Use the Iridium Browser issue tracker on GitHub to report your findings.

Build steps for chromium-git state

The following is a collection of steps, saved here primarily as a note for ourselves. When starting off with the chromium-git state, the following preparatory steps may be needed:

  1. Download depot_tools and add it to your $PATH environment variable.
  1. Issue command: gclient sync (this utility comes from depot_tools). For gclient, you need to have python 2(!) and python2-virtualenv. The sync command will not necessary complete successfully due to webrtc.

  2. Download WebRTC if gclient did not do it for you. Google populates the Chromium DEPS file with a commit hash for WebRTC, and if there is no branch head which is exactly equal to the hash, gclient sync barfs about it. Then, you have to fetch the data manually:

    pushd third_party/webrtc/
    git ls-remote origin | grep 0b2302e5e0418b6716fbc0b3927874fd3a842caf abcdef... refs/branch-heads/m78
    git fetch origin refs/branch-heads/m78
    git reset --hard FETCH_HEAD
    popd
  3. Undo the PATH change from 1, since depot_tools ships an untrusted copy of ninja.

From here on, steps apply to both source builds of any kind, that is, chromium-git or tarball state.

Steps for tarball state

  1. The gn files in Iridium are edited to respect the $CC etc. environment variables. These env vars _must_ always be set, so issue

    export CC=gcc CXX=g++ AR=ar NM=nm

    or

    export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm

    (can pick any preferred toolchain, though).

  2. Link up nodejs:

    mkdir -p third_party/node/linux/node-linux-x64/bin
    ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/
  3. Generate Makefilery:

    export CFLAGS="-O2 -Wall $(pkg-config wayland-client xkbcommon --cflags)"
    export CXXFLAGS="$CFLAGS"
    gn gen '--args= custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:default" use_custom_libcxx=false host_cpu="x64" host_os="linux" is_debug=false dcheck_always_on=false enable_nacl=false use_swiftshader_with_subzero=true is_component_ffmpeg=true use_cups=true use_aura=true symbol_level=1 blink_symbol_level=0 use_kerberos=true enable_vr=false optimize_webui=false enable_reading_list=false use_pulseaudio=true link_pulseaudio=true is_component_build=false use_sysroot=false fatal_linker_warnings=false use_allocator_shim=true use_partition_alloc=true disable_fieldtrial_testing_config=true use_unofficial_version_number=false use_vaapi=true use_sysroot=false treat_warnings_as_errors=false enable_widevine=false use_dbus=true media_use_openh264=false rtc_use_h264=false use_v8_context_snapshot=true v8_use_external_startup_data=true enable_rust=false gtk_version=4 moc_qt5_path="/usr/lib64/qt5/bin" use_qt6=true moc_qt6_path="/usr/libexec/qt6" use_system_harfbuzz=true use_system_freetype=true enable_hangout_services_extension=true enable_vulkan=true rtc_use_pipewire=true rtc_link_pipewire=true is_clang=true clang_base_path="/usr" clang_use_chrome_plugins=false use_thin_lto=true use_lld=true icu_use_data_file=false proprietary_codecs=true ffmpeg_branding="Chrome"' out

    Note that gn embodies the environment variables' values (CC, CFLAGS, etc.) into Makefiles, so upon change of any of those variables, gn needs to be re-run.

  4. There are a number of dependencies, and they may vary across operating systems. The gn command fails if there are unmet dependencies, and it will tell you which. Install and repeat the gn command as needed. Consult your distribution's package manager. On openSUSE, it is possible to use zypper si -d chromium to do that in a single shot. On Debian, there is something like apt-get build-dep.

  5. Execute this to build:

    export PATH="$PATH:$PWD"
    ln -s /usr/libexec/qt6/moc moc-qt6
    LD_LIBRARY_PATH=$PWD/out nice -n20 ninja -C out chrome chromedriver

    Because chromium is too ignorant to look for moc in the right place and name, or query some qt utility for the desired info, the path to it needs to be manually specified.

  6. The just-built executable can be run thus

    cd out; LD_LIBRARY_PATH=$PWD ./chromium

Installation procedure

There is no "install" target. Thanks, Google. Every distro has to roll their own install procedure. For example,

This is why it was mentioned in one of the previous sections that you will have to re-use/leverage/adapt the chromium build recipe that your distro had.

About

Iridium Browser source code

Resources

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE
BSD-3-Clause
LICENSE.chromium_os

Code of conduct

Stars

Watchers

Forks

Packages

No packages published