Commit graph

109 commits

Author SHA1 Message Date
Martin Robinson
4d7f250159
Clean up rustdoc run
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.
2023-06-20 12:42:43 +02:00
Martin Robinson
debc37a7d3
Clean up cross-compilation and features
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.
2023-05-25 16:58:05 +02:00
Martin Robinson
7d20f16d9f
Implement bootstrap-gstreamer for all platforms
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>
2023-05-25 08:22:21 +02:00
michaelgrigoryan25
b25f9c2d75 Removed MagicLeap occurrences from Python files 2023-05-22 19:12:34 +04:00
Delan Azabani
07c1286334 Improve winit/mach segfault output 2023-02-28 21:54:48 +08:00
Josh Matthews
93db99c74f
Unbreak lldb invocations. 2022-03-08 11:05:45 -05:00
Josh Matthews
3b0b810093
Support extra arguments when running with --debug. 2021-03-05 19:43:33 -05:00
Vincent Ricard
a627dde0d0 Port some code to Python3 2021-02-18 09:35:46 -05:00
Kunal Mohan
c0df7e0a9a Fix Gstreamer undefined symbol error 2020-07-02 21:04:05 +05:30
Fernando Jiménez Moreno
c2968fa2e5 Fix doc build 2020-06-30 17:38:18 +02:00
Kagami Sascha Rosylight
d01648d637 Fix remaining flake8 warnings 2020-06-21 03:34:32 +02:00
Alan Jeffrey
8bb1732258 Update surfman to 0.2 and remove glutin 2020-04-17 23:44:53 -05:00
Josh Matthews
42f94a837d
Add missing argument to set_osmesa_env. 2020-02-24 09:35:49 -05:00
Simon Sapin
f93c03cda3 Install rust-docs rustup component in ./mach doc 2020-01-02 15:48:11 +01:00
Simon Sapin
e56e49e98f mach: run rustup target add in ensure_bootstrapped 2020-01-02 15:30:33 +01:00
Simon Sapin
cef92a2050 Mach: rename default_toolchain to rust_toolchain 2020-01-02 14:20:18 +01:00
Tuncer Ayaz
81c439a899 Extract media_stack pick into CommandBase 2019-11-21 20:08:04 +00:00
Tuncer Ayaz
d641585679 Implement ./mach check --media-stack
While at it, extract --media-stack flag into command_base.py.
2019-11-21 20:08:03 +00:00
Tuncer Ayaz
ba3169e65d Implement ./mach doc --media-stack={dummy|gstreamer} 2019-11-21 20:08:03 +00:00
Fernando Jiménez Moreno
11993bb8f5 Allow setting GST_DEBUG on Android through mach 2019-10-14 17:27:29 +02:00
Simon Sapin
0215d09ccb Generate apis.html and css-properties.json for docs as part of crates’ 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).
2019-07-30 08:37:33 +02:00
Simon Sapin
ddb4e369dd Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}
Renaming the variable helped make sure I looked at every use.
2019-07-29 17:37:03 +02:00
Simon Sapin
7c85dc09b5 Share more ./mach build logic with mach check, doc, test-unit
Fixes #23659
2019-07-02 18:29:24 +02:00
Simon Sapin
1df2605292 Rename {azure,raqote}_backend feature flags to canvas2d-{azure,raqote} 2019-07-01 15:46:33 +02:00
Josh Matthews
8467c00cf3 Fix docs. 2019-06-03 01:47:22 -04:00
Paul Rouget
21ed7653f4 Refactoring of the Glutin port in preparation of the compositor refactoring. 2019-04-29 10:04:51 +02:00
Simon Sapin
00a1e9391c Generate apis.html in ./mach doc 2018-12-12 08:28:15 +01:00
Simon Sapin
98c5710135 Generate CSS properties docs in ./mach doc 2018-12-12 08:28:15 +01:00
Simon Sapin
e2c3acf4d5 Copy from etc/doc.servo.org in ./mach doc 2018-12-12 08:28:14 +01:00
Paul Rouget
6d543dec28 com.mozilla to org.mozilla 2018-10-02 08:09:35 +02:00
Josh Matthews
f7516f57a7 Enable use of RUST_LOG with mach run --android. 2018-09-20 14:14:41 -04:00
Paul Rouget
bef2fe83cd new android port: fix android build and tests 2018-07-31 22:39:45 +08:00
Simon Sapin
eecbe83750 Add ./mach test-android-startup 2018-07-02 19:00:48 +02:00
Simon Sapin
bee3fd09c2 mach android-emulator: avoid mach error messages for Python exceptions 2018-07-02 19:00:48 +02:00
Simon Sapin
b6b9fe07e2 Add "./mach android-emulator" 2018-07-02 13:25:44 +02:00
Simon Sapin
f4d740f086 Typo fixes 2018-07-02 13:25:44 +02:00
Simon Sapin
7d7f2025b7 Fix copy/paste mistake 2018-07-02 13:25:44 +02:00
Simon Sapin
4cbf3dea05 mach {package,install} --android: add --emulator and --usb 2018-07-02 13:25:44 +02:00
Simon Sapin
fe24816d12 mach run --android: show PID 2018-07-02 13:25:44 +02:00
Andrew Shu
a631cb6b47 mach: android install/run: infer adb path from SDK dir 2018-03-25 10:40:26 -07:00
o0Ignition0o
10822ce730 Add a --nightly | -n flag to download and extract a specific nightly version to run mach commands against. This currently only work on linux, but windows and mac os support will follow in subsequent PRs. 2018-03-06 23:09:50 +01:00
Paul Rouget
019fdaa1bd remove bhtml 2018-02-11 08:02:39 +01:00
o0Ignition0o
c3b2751eef Add a --bin flag to the |mach run and rr-record commands to specify which servo binary to run 2018-02-04 13:00:30 +01:00
Simon Sapin
365a139716 Use rustup.rs instead of custom bootstrap
Fixes #11361, closes #18874
2018-01-10 18:05:44 +01:00
Imanol Fernandez
7a2a90959e Android life cycle improvements and Gradle integration 2017-04-21 18:24:10 +02:00
Matthias Devlamynck
a465fbb87a Allow running servo in software rendering mode from ./mach run 2017-01-21 18:15:42 +01:00
Ravi Shankar
b061ada836 Fix browserhtml path 2017-01-03 13:05:13 +05:30
Teodor Szente
48df976bcd Move get_browserhtml_path to command_base #14815
Remove unused import of find_dep_path_newest #14815

Move get_browserhtml_path top along with find_dep_path_newest #14815
2017-01-02 16:39:20 +02:00
KimSnj
b5b76e8053 Use software rendering when running servo in headless mode 2016-11-27 18:15:51 +01:00
Matt Brubeck
02f189060c Run cargo doc in the ports/servo directory
Running it in components/servo isn't guaranteed to work because there's
no Cargo.lock checked in there.  Followup to #14254.
2016-11-18 11:07:38 -08:00