|
|
@ -16,7 +16,6 @@ import os |
|
|
|
import sys |
|
|
|
import sys |
|
|
|
import argparse |
|
|
|
import argparse |
|
|
|
import pickle |
|
|
|
import pickle |
|
|
|
import platform |
|
|
|
|
|
|
|
import subprocess |
|
|
|
import subprocess |
|
|
|
|
|
|
|
|
|
|
|
from .. import mesonlib |
|
|
|
from .. import mesonlib |
|
|
@ -30,14 +29,6 @@ def buildparser(): |
|
|
|
parser.add_argument('--capture') |
|
|
|
parser.add_argument('--capture') |
|
|
|
return parser |
|
|
|
return parser |
|
|
|
|
|
|
|
|
|
|
|
def is_windows(): |
|
|
|
|
|
|
|
platname = platform.system().lower() |
|
|
|
|
|
|
|
return platname == 'windows' or 'mingw' in platname |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def is_cygwin(): |
|
|
|
|
|
|
|
platname = platform.system().lower() |
|
|
|
|
|
|
|
return 'cygwin' in platname |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def run_exe(exe): |
|
|
|
def run_exe(exe): |
|
|
|
if exe.exe_runner: |
|
|
|
if exe.exe_runner: |
|
|
|
if not exe.exe_runner.found(): |
|
|
|
if not exe.exe_runner.found(): |
|
|
|