Skip to content

Commit

Permalink
remove for_XXX functions from mesonlib
Browse files Browse the repository at this point in the history
All uses now use `env.machines.YYY.is_XXX` instead.
  • Loading branch information
Ericson2314 committed Jun 9, 2019
1 parent 2ddb1af commit 8a09434
Showing 1 changed file with 0 additions and 70 deletions.
70 changes: 0 additions & 70 deletions mesonbuild/mesonlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8a09434

Please sign in to comment.