aboutsummaryrefslogtreecommitdiffstats
path: root/servobuild.example
Commit message (Collapse)AuthorAgeFilesLines
* Add `medium` profile for daily work scenario (#34035)Jonathan Schwender2024-11-211-0/+2
| | | | | | | | | | | | - The standard `dev` mode is often too slow for daily work on servo - Increasing the optimization level to 2 improves the performance noticably. - Build time for opt-level = 1 is slightly higher than 2 on my machine - Reducing debug info to `line-tables-only` improves link and build times, while still keeping relevant info for backtraces. Also extend .servobuild to allow setting custom cargo profiles instead of just release and dev. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* Add OpenHarmony support to mach and CI (#32507)Jonathan Schwender2024-06-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | * Add ohos to mach Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Add OpenHarmony build to CI * Rename ohos sdk action I decided to rename the upstream ohos sdk action to setup-ohos-sdk, making it clearer that is a github action repository. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Remove commented line Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> --------- Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* Preliminary Android build support (#31086)Mukilan Thiyagarajan2024-01-221-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Android build * Fixes * More fixes - Still failing in the linking step * More work on getting linking working Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: use mozjs with ndk r25c. loads servo.org more android build fixes. * fix ./mach run for android and make it follow logs Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * add experimental logic for compositor pause/resume Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * pass DPI from android to simpleservo Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * ci: add android workflow Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * switch to ANDROID_SDK_ROOT and ANDROID_NDK_ROOT vars Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * upgrade gradle to 4.10.1 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * upgrade to gradle 5.1.1 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * upgrade to gradle 8 and agp 8 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * make compositing work again with external present Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: improve mach support for non-NixOS and CI Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * fix sampler compilation bug introduced in #30490 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * ci: add android build to main workflow Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * gradle: set MinSdk = targetSdk = 30 NDK requires we compile against the minSdk API level which is 30 in our case. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * add instructions for android in README.md Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: move servosurface to servoview Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: uncomment the mediasession callbacks on MainActivity Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: fix crash on MainAtivity.onDestroy Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: drop VR, arm 5 and unused code This commit drops: * support for google, oculusvr * support for arm5 architecture and also removes * fakeld scripts * unused java code Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * cleanup shell.nix Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: add FIXMEs for gstreamer code Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: remove commented code and debug logs Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * cleanup ServoView.java Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * mach: comment call to download gstreamer deps for android Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * disable bluetooth for jniapi as blurdroid is broken Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * fixup! README.md * fixup! remove change in Cargo.toml * fixup! move shell variables together * fixup! cleanup jniapi/Cargo.toml comments * delete commented gstreamer related android code Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * remove unused config variable in servbuild Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: more cleanup Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * force no_static_freetype only for android * use actions to manage sdk, ndk and java Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * rename embedder event names to be more clear. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * link to startup crash issue Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * fix lint issues Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * upgrade env_logger to 0.10 with duplicate exception libservo and android_logger can use env_logger 0.10 but quickcheck is still stuck on 0.8 and has not seen any activity in the last 2 years. This commit adds a duplicate exception until the quickcheck dependency can be upgraded (or replaced) Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: fix comments Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * disable jemalloc on android Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * fixup! replace linux with android in cfg --------- Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Remove thinlto servobuild.config option (#30830)Martin Robinson2023-12-061-3/+0
| | | | | | | | | | | Rust uses a version of ThinLTO by default now [1]. This can be tweaked by adjusting rust compiler flags, which is probably a better way of controlling this than a custom servo configuration considering: 1. We want to remove the custom servo configuration eventually. 2. The -Z option that this configuration currently uses is unsupported by stable rust. 1. https://blog.rust-lang.org/inside-rust/2020/06/29/lto-improvements.html
* Enable debug assertions for all builds other than official releases (#30509)Delan Azabani2023-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Run main and try jobs with debug assertions * use single quotes in workflow expressions * set force-debug-assertions in main.yml * set force-debug-assertions as part of decision job * fix typo in MachCommands.build * fix more hardcoded profile names * fix tidy * split cargo_profile_option on windows * Fix running servoshell and unit tests through a symlink * rename steps to make them less confusing * fix more hardcoded cargo profile options * fix missing inputs in linux-wpt and mac-wpt * make filename an inherent method of Resource * rework release-with-debug-assertions profile to production profile * rework resource logic to eliminate std_test_override * set production flag in nightly release builds * clean up servobuild.example and windows.yml * oops forgot to check in embedder_traits/build.rs * fix mach test-unit behaviour through symlink * unit tests only need current_dir and ancestors * fix macOS package smoketest breakage * expect css/css-color/currentcolor-003 to crash under layout 2013 * fix more references to {force,release-with}-debug-assertions * fix local build failures under --profile production
* Remove gold config option and use lld on Linux (#30100)Martin Robinson2023-08-151-3/+0
| | | | | | | | | | | | | | | | There are a few motivations for this change: 1. lld is demonstrably faster than gold, but is really only stable on Linux at the moment. There's a good chance that it will be ready for all platforms soon though. 2. Most people do not have gold installed on MacOS and Windows. You'd have to do this manually through homebrew. I think it's a safe assumption that this probably won't be slowing things down much on those platforms. 3. We need to remove all configuration of the build that happens while running `./mach build` if we ever hope to make `cargo build` equivalent to the mach build. This unlocks static configuration of the rustflags. One of the big blockers for proper `cargo build` support.
* Make rustup a requirement and switch to `rust-toolchain.toml` (#30056)Martin Robinson2023-08-011-6/+0
| | | | | | | | | | | | | | This change makes rustup a requirement for building Servo with `./mach` and switches to the newer `rust-toolchain.toml` format. The goal here is to make mach builds more similar to non-mach builds. - The new format allows listing the required components, removing some of the complexity from our mach scripts. - This means we must raise the required version of rustup to 1.23. The current version is 1.26. - We no longer wrap every call to cargo and rustc in "rustup run" calls as both cargo and rustc will take care of installing and using all necessary components specified in `rust-toolchain.toml` when run inside the project directory.
* Use layout 2020 by defaultMukilan Thiyagarajan2023-06-081-1/+1
| | | | Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in>
* Add `.servobuild` configuration for the choice of media stackSimon Sapin2020-07-061-0/+3
|
* Add `layout-2020` option to the `.servobuild` fileSimon Sapin2019-12-161-0/+3
| | | | … and `--with-layout-2013` command-line option to disable it.
* Add a .servobuild option for --with-debug-assertionsSimon Sapin2019-11-261-0/+3
|
* script: Optionally store backtraces when throwing DOM exceptions.Josh Matthews2018-10-011-0/+8
|
* servobuild: remove obsolete commentSimon Sapin2018-01-161-2/+0
|
* servobuild: comment some more on the default valueSimon Sapin2018-01-161-1/+4
|
* Restore the ability to disable incremental compilationSimon Sapin2018-01-141-1/+3
| | | | It became the default in debug mode in the last Rust/Cargo update.
* Use rustup.rs instead of custom bootstrapSimon Sapin2018-01-101-16/+5
| | | | Fixes #11361, closes #18874
* Stop using "alternate" rustc builds.Simon Sapin2017-11-141-3/+0
| | | | | With https://github.com/rust-lang/rust/pull/45810, normal Nightly now has LLVM assertions disabled.
* Update Rust to 1.22.0-nightly (a47c9f870 2017-10-11)Anthony Ramine2017-10-121-0/+3
| | | | This allows us to start experimenting with -Z thinlto
* Disable LLVM assertions by default, on supported platforms.Simon Sapin2017-02-161-1/+1
| | | | But keep them on linux-dev CI.
* Allow disabling LLVM assertions in rustc (fixes #15548)Anthony Ramine2017-02-151-0/+3
|
* Option configuration to enable incremental compilation.Simon Sapin2017-02-051-0/+7
| | | | https://internals.rust-lang.org/t/incremental-compilation-beta/4721
* Add config to do desktop notifications by running an abitrary command.Simon Sapin2017-01-131-0/+6
|
* Support build.rustflags in .servobuildVladimir Vukicevic2016-11-211-0/+2
|
* Remove the gonk portLars Bergstrom2016-05-271-8/+0
|
* Reduce 'android-18' duplication, as originally done by wenderenMitchell Hentges2016-05-201-1/+2
| | | | Use android.platform (and $ANDROID_PLATFORM) for configuration, apply 'android-18' default
* Rename rust-snapshot-hash to rust-nightly-dateSimon Sapin2015-12-301-3/+3
| | | | | | … and remove mentions of "snapshots". We now use rust-lang.org nightly builds rather than our own snapshots.
* Add CCACHE infra and turn it on in travisLars Bergstrom2015-11-051-0/+2
|
* Make the use of gold linker configurableAkos Kiss2015-09-081-0/+4
| | | | | | | | Currently, ld.gold is always used for linking if found on the system. There are some cases however when one may want to opt out from using it. This patch adds the boolean field `rustc-with-gold` to the `[tools]` section of `.servobuild`, which if set false, disables the use of ld.gold.
* Fix typos in servobuild.exampleKinder Sung2015-08-231-3/+3
|
* Entries in servobuild.example fileSumith2015-06-131-8/+12
| | | | | Entries in the servobuild.example file that are not defaults were commented out, defaults were mentioned in comments
* Add --dev option to mach buildJinank Jain2015-05-131-0/+3
| | | | | Require either --dev or --release, unless a default build.mode is set in .servobuild. Fixes #5933.
* Add support for $CARGO_HOME in servobuildManish Goregaokar2015-03-081-1/+7
|
* Add ./mach build-gonk commandManish Goregaokar2015-02-211-0/+11
|
* Move snapshot dir inside the source dir by defaultMatt Brubeck2015-01-281-0/+3
| | | | | | | | | This avoids changing any directories outside the repo, which is better for some automation scenarios. The servobuild.example file has a "cache-dir" setting that restores the previous default location of `~/.servo`, which is useful for developers working with multiple clones on the same machine.
* Issue #3804 : Allow enabling debug-mozjs from servobuild configFabrice Desré2014-11-061-0/+2
|
* Add Android build config to mach/servobuildMatt Brubeck2014-10-031-0/+4
|
* Cargoify servoJack Moffitt2014-09-081-0/+16