aboutsummaryrefslogtreecommitdiff
path: root/meson_install.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-03-03 16:06:06 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-03-03 16:06:06 +0200
commit273e9c73eb630a688f62925463dc8f39c88fd6d0 (patch)
tree18d7023ed6348aa642a649ac51a7dd2d90832d03 /meson_install.py
parent10bdd11e2ded797af6d953a020f3f6824bdd7604 (diff)
downloadmeson-273e9c73eb630a688f62925463dc8f39c88fd6d0.zip
meson-273e9c73eb630a688f62925463dc8f39c88fd6d0.tar.gz
meson-273e9c73eb630a688f62925463dc8f39c88fd6d0.tar.bz2
All test cases now pass on OSX except for pkg-config.
Diffstat (limited to 'meson_install.py')
-rwxr-xr-xmeson_install.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/meson_install.py b/meson_install.py
index a995173..0218664 100755
--- a/meson_install.py
+++ b/meson_install.py
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import sys, pickle, os, shutil, subprocess, gzip
+import sys, pickle, os, shutil, subprocess, gzip, platform
class InstallData():
def __init__(self, prefix, depfixer, dep_prefix):
@@ -77,6 +77,10 @@ def install_headers(d):
shutil.copyfile(fullfilename, outfilename)
shutil.copystat(fullfilename, outfilename)
+def is_elf_platform():
+ platname = platform.system().lower()
+
+
def install_targets(d):
for t in d.targets:
fname = t[0]
@@ -99,14 +103,15 @@ def install_targets(d):
sys.exit(1)
for alias in aliases:
os.symlink(fname, os.path.join(outdir, alias))
- p = subprocess.Popen([d.depfixer, outname, d.dep_prefix], stdout=subprocess.PIPE,
+ if is_elf_platform():
+ p = subprocess.Popen([d.depfixer, outname, d.dep_prefix], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
- (stdo, stde) = p.communicate()
- if p.returncode != 0:
- print('Could not fix dependency info.\n')
- print('Stdout:\n%s\n' % stdo.decode())
- print('Stderr:\n%s\n' % stde.decode())
- sys.exit(1)
+ (stdo, stde) = p.communicate()
+ if p.returncode != 0:
+ print('Could not fix dependency info.\n')
+ print('Stdout:\n%s\n' % stdo.decode())
+ print('Stderr:\n%s\n' % stde.decode())
+ sys.exit(1)
if __name__ == '__main__':
if len(sys.argv) != 2: