|
|
@ -15,7 +15,7 @@ |
|
|
|
# limitations under the License. |
|
|
|
# limitations under the License. |
|
|
|
|
|
|
|
|
|
|
|
from glob import glob |
|
|
|
from glob import glob |
|
|
|
import os, subprocess, shutil, sys, platform, signal |
|
|
|
import os, subprocess, shutil, sys, signal |
|
|
|
from io import StringIO |
|
|
|
from io import StringIO |
|
|
|
import sys |
|
|
|
import sys |
|
|
|
import environment |
|
|
|
import environment |
|
|
@ -91,11 +91,11 @@ def setup_commands(backend): |
|
|
|
install_commands = [ninja_command, 'install'] |
|
|
|
install_commands = [ninja_command, 'install'] |
|
|
|
|
|
|
|
|
|
|
|
def platform_fix_filename(fname): |
|
|
|
def platform_fix_filename(fname): |
|
|
|
if platform.system() == 'Darwin': |
|
|
|
if mesonlib.is_osx(): |
|
|
|
if fname.endswith('.so'): |
|
|
|
if fname.endswith('.so'): |
|
|
|
return fname[:-2] + 'dylib' |
|
|
|
return fname[:-2] + 'dylib' |
|
|
|
return fname.replace('.so.', '.dylib.') |
|
|
|
return fname.replace('.so.', '.dylib.') |
|
|
|
elif platform.system() == 'Windows': |
|
|
|
elif mesonlib.is_windows(): |
|
|
|
if fname.endswith('.so'): |
|
|
|
if fname.endswith('.so'): |
|
|
|
(p, f) = os.path.split(fname) |
|
|
|
(p, f) = os.path.split(fname) |
|
|
|
f = f[3:-2] + 'dll' |
|
|
|
f = f[3:-2] + 'dll' |
|
|
@ -105,7 +105,7 @@ def platform_fix_filename(fname): |
|
|
|
return fname |
|
|
|
return fname |
|
|
|
|
|
|
|
|
|
|
|
def validate_install(srcdir, installdir): |
|
|
|
def validate_install(srcdir, installdir): |
|
|
|
if platform.system() == 'Windows': |
|
|
|
if mesonlib.is_windows(): |
|
|
|
# Don't really know how Windows installs should work |
|
|
|
# Don't really know how Windows installs should work |
|
|
|
# so skip. |
|
|
|
# so skip. |
|
|
|
return '' |
|
|
|
return '' |
|
|
|