summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 4 insertions, 3 deletions
diff --git a/wscript b/wscript
index 04414e1..e77b01a 100644
--- a/wscript
+++ b/wscript
@@ -151,9 +151,10 @@ def build(bld):
if bld.is_defined('HAVE_GIR'):
bld.add_group()
- top_level = (len(bld.stack_path) > 1)
- bld_dir = os.path.join(out, APPNAME) if top_level else out
- pc_path = os.path.abspath(os.path.join(bld_dir, 'ganv-1.pc'))
+ bld_dir = os.path.join(out, APPNAME)
+ pc_path = os.path.abspath(os.path.join(bld_dir, 'ganv-1.pc'))
+ if not (len(bld.stack_path) > 1): # not top-level
+ bld_dir = out
gir = bld(
name = 'ganv-gir',