[tasque/xbuild] [xbuild] Define Abs[Build|Src]Dir and [Build|Src]Dir
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/xbuild] [xbuild] Define Abs[Build|Src]Dir and [Build|Src]Dir
- Date: Sun, 30 Sep 2012 22:40:23 +0000 (UTC)
commit 9ee00dc534c5c119dbd529d10c27ce03d554872f
Author: Antonius Riha <antoniusriha gmail com>
Date: Mon Oct 1 00:37:48 2012 +0200
[xbuild] Define Abs[Build|Src]Dir and [Build|Src]Dir
build/X.Common.targets | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/build/X.Common.targets b/build/X.Common.targets
index 1ab4d4c..4fce562 100644
--- a/build/X.Common.targets
+++ b/build/X.Common.targets
@@ -12,7 +12,25 @@
<Output TaskParameter="RelativePath" PropertyName="TopSrcDir" />
</GetRelPath>
+ <!--
+ Get src dir strip: The path fragment from TopSrcDir to SrcDir.
+ This is the same as the fragment from AbsTopBuildDir to AbsBuildDir.
+ -->
+ <GetRelPath FromPath="AbsTopBuildDir" ToPath="AbsBuildDir">
+ <Output TaskParameter="RelativePath" Value="_SrcDirStrip" />
+ </GetRelPath>
+
+ <!-- AbsSrcDir -->
+ <CreateProperty Value="$(AbsTopSrcDir)\$(_SrcDirStrip)">
+ <Output TaskParameter="Value" PropertyName="AbsSrcDir" />
+ </CreateProperty>
+
+ <!-- SrcDir -->
+ <CreateProperty Value="$(TopSrcDir)\$(_SrcDirStrip)">
+ <Output TaskParameter="Value" PropertyName="SrcDir" />
+ </CreateProperty>
</Target>
+
<PropertyGroup>
<BuildingSolutionFile>True</BuildingSolutionFile>
<BuildEnabled Condition=" '$(BuildEnabled)' == '' ">true</BuildEnabled>
@@ -30,9 +48,9 @@
<!-- Assume AbsTopSrcDir is the same as AbsTopBuildDir (usually is) -->
<AbsTopSrcDir Condition=" '$(AbsTopSrcDir)' == '' " >$(AbsTopBuildDir)</AbsTopSrcDir>
- <BuildDir></BuildDir>
-
- <SrcDir></SrcDir>
+ <!-- AbsBuildDir is current dir -->
+ <AbsBuildDir>$(MSBuildProjectDirectory)</AbsBuildDir>
+ <BuildDir>.</BuildDir>
<!-- TopBuildDir is usually TopSrcDir, hence default to TopSrcDir -->
<TopBuildDir Condition=" '$(TopBuildDir)' == '' ">$(TopSrcDir)</TopBuildDir>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]