diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-05-19 14:07:46 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-05-25 08:22:21 +0200 |
commit | 7d20f16d9f746399811b1c4582e83efde1416bff (patch) | |
tree | f9aed7799918e930e43ab7ed834afdea9623b0d2 /python/servo/devenv_commands.py | |
parent | a56abe44e02ddf3e634fd1a3953cd0cffc22d460 (diff) | |
download | servo-7d20f16d9f746399811b1c4582e83efde1416bff.tar.gz servo-7d20f16d9f746399811b1c4582e83efde1416bff.zip |
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>
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r-- | python/servo/devenv_commands.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index f69a1c8231f..77b95ba743f 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -48,9 +48,8 @@ class MachCommands(CommandBase): self.ensure_bootstrapped(target=target) self.ensure_clobbered() - env = self.build_env() - status = self.run_cargo_build_like_command("check", params, env=env, features=features, **kwargs) + status = self.run_cargo_build_like_command("check", params, features=features, **kwargs) if status == 0: print('Finished checking, binary NOT updated. Consider ./mach build before ./mach run') @@ -142,9 +141,8 @@ class MachCommands(CommandBase): self.ensure_bootstrapped(target=target) self.ensure_clobbered() - env = self.build_env() - return self.run_cargo_build_like_command("fix", params, env=env, features=features, **kwargs) + return self.run_cargo_build_like_command("fix", params, features=features, **kwargs) @Command('cargo-clippy', description='Run "cargo clippy"', @@ -166,9 +164,8 @@ class MachCommands(CommandBase): self.ensure_bootstrapped(target=target) self.ensure_clobbered() - env = self.build_env() - return self.run_cargo_build_like_command("clippy", params, env=env, features=features, **kwargs) + return self.run_cargo_build_like_command("clippy", params, features=features, **kwargs) @Command('grep', description='`git grep` for selected directories.', |