aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
Commit message (Collapse)AuthorAgeFilesLines
* Make the `--release`/`--dev` more consistent and less surprising (#30091)Martin Robinson2023-08-141-43/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were some issues with the way that the `--release` and `--dev` arguments were handled in mach commands. - Not all commands accepted them in the same way. For instance `./mach test-wpt` didn't really accept them at all. - If you did not pass either of them, mach would try to guess which build you meant. This guess was often quite surprising as it wasn't printed and it depended on the state of the your target directory, which is difficult to remember. - The `dev` profile is colloquially called a "debug" profile and some commands accepted `-d` or `--debug...` like arguments, but `--debug` with `./mach run` meant run in a debugger. It was easy to mix this up. This change: - Centralizes where build type argument processing happens. Now it the same shared decorator in CommandBase. - Uses a `BuildType` enum instead of passing around two different booleans. This reduces the error checking for situations where both are true. - Be much less clever about guessing what build to use. Now if you don't specify a build type, `--dev` is chosen. I think this behavior matches cargo. - Makes it so that `./mach test-wpt` accepts the exact same arguments and has the same behavior as other commands. In addition, the suite correct for `test-wpt` is removed. There are only two suites now and it's quite unlikely that people will confuse WPT tests for rust unit tests.
* Fix the docs build (#30058)Martin Robinson2023-08-021-1/+3
| | | | | | Type inference was incorrectly inferring that our `check_output()` helper was returning `str` when in reality, it returns `bytes`. This fixes the caller that was no longer decoding those bytes and fixes the type annotation on the function.
* Make rustup a requirement and switch to `rust-toolchain.toml` (#30056)Martin Robinson2023-08-011-4/+2
| | | | | | | | | | | | | | 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.
* Clean up rustdoc runMartin Robinson2023-06-201-10/+2
| | | | | | | | | 1. The options specified in `rustdoc-with-private` are essentially the default now so we can remove this script. 2. `./mach browse-doc` is redundant with `./mach doc --open` which uses the underlying cargo functionality to browse the documentation. Fixes #29888.
* Clean up cross-compilation and featuresMartin Robinson2023-05-251-11/+3
| | | | | | | | | | | | Integrate cross-compilation and media-stack handling into the `build_like_command_arguments` decorator. This removes a lot of repetition in the code and standardizes how targets are selected for all similar commands. Now cross compilation targets, feature flags, and helper variables are stored in the CommandBase instance. This also avoids having to continuously pass these arguments down to functions called by the commands.
* Implement `bootstrap-gstreamer` for all platformsMartin Robinson2023-05-251-10/+11
| | | | | | | | | | | | | | | | | | This change makes it so that the Platform classes can now handle installing GStreamer dependencies and properly setting up the environment including when cross-compiling. For Windows and Linux is now installed into `target/dependencies/gstreamer` when not installed system-wide. In addition: 1. Creating and moving existing environment path append helpers to `util.py`. 2. Combining the `set_run_env` and `build_dev` functions and moving some outside code into them so that it can be shared. Now code that used to call `set_run_env` calls `build_dev` and then `os.environ.update(...)`. 3. Adding Python typing information in many places. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Removed MagicLeap occurrences from Python filesmichaelgrigoryan252023-05-221-2/+2
|
* Improve winit/mach segfault outputDelan Azabani2023-02-281-1/+4
|
* Unbreak lldb invocations.Josh Matthews2022-03-081-2/+1
|
* Support extra arguments when running with --debug.Josh Matthews2021-03-051-1/+1
|
* Port some code to Python3Vincent Ricard2021-02-181-1/+2
|
* Fix Gstreamer undefined symbol errorKunal Mohan2020-07-021-0/+1
|
* Fix doc buildFernando Jiménez Moreno2020-06-301-1/+3
|
* Fix remaining flake8 warningsKagami Sascha Rosylight2020-06-211-4/+4
|
* Update surfman to 0.2 and remove glutinAlan Jeffrey2020-04-171-2/+1
|
* Add missing argument to set_osmesa_env.Josh Matthews2020-02-241-1/+1
|
* Install `rust-docs` rustup component in `./mach doc`Simon Sapin2020-01-021-1/+1
|
* mach: run `rustup target add` in `ensure_bootstrapped`Simon Sapin2020-01-021-1/+1
|
* Mach: rename default_toolchain to rust_toolchainSimon Sapin2020-01-021-3/+2
|
* Extract media_stack pick into CommandBaseTuncer Ayaz2019-11-211-12/+1
|
* Implement `./mach check --media-stack`Tuncer Ayaz2019-11-211-4/+0
| | | | While at it, extract --media-stack flag into command_base.py.
* Implement `./mach doc --media-stack={dummy|gstreamer}`Tuncer Ayaz2019-11-211-1/+22
|
* Allow setting GST_DEBUG on Android through machFernando Jiménez Moreno2019-10-141-0/+3
|
* Generate apis.html and css-properties.json for docs as part of crates’ ↵Simon Sapin2019-07-301-13/+0
| | | | | | | | build scripts … rather than as an extra step after `cargo doc`. This helps always using the correct set of CSS properties (for layout 2013 v.s. 2020).
* Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}Simon Sapin2019-07-291-3/+8
| | | | Renaming the variable helped make sure I looked at every use.
* Share more `./mach build` logic with mach check, doc, test-unitSimon Sapin2019-07-021-6/+3
| | | | Fixes #23659
* Rename {azure,raqote}_backend feature flags to canvas2d-{azure,raqote}Simon Sapin2019-07-011-1/+1
|
* Fix docs.Josh Matthews2019-06-031-0/+2
|
* Refactoring of the Glutin port in preparation of the compositor refactoring.Paul Rouget2019-04-291-1/+1
|
* Generate apis.html in ./mach docSimon Sapin2018-12-121-0/+5
|
* Generate CSS properties docs in ./mach docSimon Sapin2018-12-121-0/+4
|
* Copy from etc/doc.servo.org in `./mach doc`Simon Sapin2018-12-121-3/+8
|
* com.mozilla to org.mozillaPaul Rouget2018-10-021-3/+3
|
* Enable use of RUST_LOG with mach run --android.Josh Matthews2018-09-201-0/+3
|
* new android port: fix android build and testsPaul Rouget2018-07-311-8/+12
|
* Add ./mach test-android-startupSimon Sapin2018-07-021-4/+2
|
* mach android-emulator: avoid mach error messages for Python exceptionsSimon Sapin2018-07-021-1/+1
|
* Add "./mach android-emulator"Simon Sapin2018-07-021-0/+14
|
* Typo fixesSimon Sapin2018-07-021-2/+2
|
* Fix copy/paste mistakeSimon Sapin2018-07-021-1/+1
|
* mach {package,install} --android: add --emulator and --usbSimon Sapin2018-07-021-2/+16
|
* mach run --android: show PIDSimon Sapin2018-07-021-0/+2
|
* mach: android install/run: infer adb path from SDK dirAndrew Shu2018-03-251-1/+1
|
* Add a --nightly | -n flag to download and extract a specific nightly version ↵o0Ignition0o2018-03-061-4/+9
| | | | to run mach commands against. This currently only work on linux, but windows and mac os support will follow in subsequent PRs.
* remove bhtmlPaul Rouget2018-02-111-19/+2
|
* Add a --bin flag to the |mach run and rr-record commands to specify which ↵o0Ignition0o2018-02-041-4/+8
| | | | servo binary to run
* Use rustup.rs instead of custom bootstrapSimon Sapin2018-01-101-8/+12
| | | | Fixes #11361, closes #18874
* Android life cycle improvements and Gradle integrationImanol Fernandez2017-04-211-2/+3
|
* Allow running servo in software rendering mode from ./mach runMatthias Devlamynck2017-01-211-2/+11
|
* Fix browserhtml pathRavi Shankar2017-01-031-2/+2
|