diff options
Diffstat (limited to 'libbuild2/buildfile')
-rw-r--r-- | libbuild2/buildfile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libbuild2/buildfile b/libbuild2/buildfile index 6d7c597..5ef0006 100644 --- a/libbuild2/buildfile +++ b/libbuild2/buildfile @@ -222,6 +222,17 @@ if ($install.root != [null]) $directory($install.resolve($install.buildfile)), '\\', '\\\\')\" #\ + # Data directory or src_root if not installed. + # + # Note: normalized in both cases. + # + {obja objs}{utility-installed}: cxx.poptions += \ + -DBUILD2_INSTALL_DATA=\"$regex.replace(\ + $install.resolve($install.data), '\\', '\\\\')\" + + {obja objs}{utility-uninstalled}: cxx.poptions += \ + -DBUILD2_INSTALL_DATA=\"$regex.replace(\ + $src_root, '\\', '\\\\')\" } if ($cxx.target.class != 'windows') |