aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-06-17 20:50:03 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-06-17 20:50:03 +0300
commit8f27cd399e19fb56ceaf98c3bfc477012312a632 (patch)
treeada475442866f9bf25b88ec68da8d21379e63526 /backends.py
parentec74616bbd7b16b3ce0b953e02e83c50252c73db (diff)
downloadmeson-8f27cd399e19fb56ceaf98c3bfc477012312a632.zip
meson-8f27cd399e19fb56ceaf98c3bfc477012312a632.tar.gz
meson-8f27cd399e19fb56ceaf98c3bfc477012312a632.tar.bz2
Fixed broken subdir object extraction and moved tests.
Diffstat (limited to 'backends.py')
-rw-r--r--backends.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends.py b/backends.py
index 424d900..cf8b90a 100644
--- a/backends.py
+++ b/backends.py
@@ -176,9 +176,12 @@ class Backend():
if pathsegs[0] == 'subprojects':
pathsegs = pathsegs[2:]
fixedpath = os.sep.join(pathsegs)
- objbase = os.path.join(fixedpath, osrc.fname).replace('/', '_').replace('\\', '_')
+ print('fname', osrc.fname)
+ objbase = osrc.fname.replace('/', '_').replace('\\', '_')
+ print('objbase', objbase)
objname = os.path.join(proj_dir_to_build_root,
targetdir, os.path.basename(objbase) + suffix)
+ print('objname', objname)
result.append(objname)
return result