-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPkgDir.props
33 lines (30 loc) · 1.32 KB
/
PkgDir.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!-- This property sheet resolves the 'PkgDir'property (supports override in zou.cfg folder). -->
<Project TreatAsLocalProperty="PkgDir;PkgBinDir">
<PropertyGroup>
<PkgDir Condition="'$(PkgDir)' != ''">$([MSBuild]::EnsureTrailingSlash('$(PkgDir)'))</PkgDir>
<PkgBinDir Condition="'$(PkgBinDir)' != ''">$([MSBuild]::EnsureTrailingSlash('$(PkgBinDir)'))</PkgBinDir>
<PkgBinDir Condition="'$(PkgBinDirSpecified)' == 'true'">$([System.IO.Path]::Combine($(MSBuildStartupDirectory),$(PkgBinDir)))</PkgBinDir>
</PropertyGroup>
<!-- Ensure PkgDir is absolute -->
<Choose>
<When Condition="'$(PkgDirSpecified)' == 'true'">
<PropertyGroup>
<PkgDir>$([System.IO.Path]::Combine($(MSBuildStartupDirectory),$(PkgDir)))</PkgDir>
</PropertyGroup>
</When>
<When Condition="'$(WorkDirSpecified)' == 'true'">
<PropertyGroup>
<PkgDir>$([System.IO.Path]::Combine($(WorkDir),$(PkgDir)))</PkgDir>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<PkgDir>$([System.IO.Path]::Combine($(ProjectDir),$(PkgDir)))</PkgDir>
</PropertyGroup>
</Otherwise>
</Choose>
<PropertyGroup>
<PkgBinDir Condition="'$(PkgBinDir)' == ''">$(PkgDir)bin\</PkgBinDir>
<PkgDbgDir Condition="'$(PkgDbgDir)' == ''">$(PkgDir)dbg\</PkgDbgDir>
</PropertyGroup>
</Project>