diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-10-04 20:52:08 -0400 |
---|---|---|
committer | John Ericson <git@JohnEricson.me> | 2019-06-09 13:13:31 -0400 |
commit | 8a09434cd4e171001bb649989d520112a58c9123 (patch) | |
tree | e7dff99c79eb51279085e46ee2f66a237c6b5705 /mesonbuild/mesonlib.py | |
parent | 2ddb1af29462fb645d522aea31f4caba57311adf (diff) | |
download | meson-8a09434cd4e171001bb649989d520112a58c9123.zip meson-8a09434cd4e171001bb649989d520112a58c9123.tar.gz meson-8a09434cd4e171001bb649989d520112a58c9123.tar.bz2 |
remove `for_XXX` functions from mesonlib
All uses now use `env.machines.YYY.is_XXX` instead.
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 1b07d85..d052a2b 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -463,76 +463,6 @@ def is_dragonflybsd() -> bool: def is_freebsd() -> bool: return platform.system().lower() == 'freebsd' -def for_windows(env): - """ - Host machine is windows? - - Deprecated: Please use `env.machines.host.is_windows()`. - - Note: 'host' is the machine on which compiled binaries will run - """ - return env.machines.host.is_windows() - -def for_cygwin(env): - """ - Host machine is cygwin? - - Deprecated: Please use `env.machines.host.is_cygwin()`. - - Note: 'host' is the machine on which compiled binaries will run - """ - return env.machines.host.is_cygwin() - -def for_linux(env): - """ - Host machine is linux? - - Deprecated: Please use `env.machines.host.is_linux()`. - - Note: 'host' is the machine on which compiled binaries will run - """ - return env.machines.host.is_linux() - -def for_darwin(env): - """ - Host machine is Darwin (iOS/OS X)? - - Deprecated: Please use `env.machines.host.is_darwin()`. - - Note: 'host' is the machine on which compiled binaries will run - """ - return env.machines.host.is_darwin() - -def for_android(env): - """ - Host machine is Android? - - Deprecated: Please use `env.machines.host.is_android()`. - - Note: 'host' is the machine on which compiled binaries will run - """ - return env.machines.host.is_android() - -def for_haiku(env): - """ - Host machine is Haiku? - - Deprecated: Please use `env.machines.host.is_haiku()`. - - Note: 'host' is the machine on which compiled binaries will run - """ - return env.machines.host.is_haiku() - -def for_openbsd(env): - """ - Host machine is OpenBSD? - - Deprecated: Please use `env.machines.host.is_openbsd()`. - - Note: 'host' is the machine on which compiled binaries will run - """ - return env.machines.host.is_openbsd() - def exe_exists(arglist: List[str]) -> bool: try: if subprocess.run(arglist, timeout=10).returncode == 0: |