Fix compatibility with msbuild/csc on non-windows.
This commit is contained in:
committed by
Oliver Brakmann
parent
728162e688
commit
3db15beeb9
@@ -190,17 +190,17 @@
|
|||||||
SourceFiles="$(TargetPath)"
|
SourceFiles="$(TargetPath)"
|
||||||
DestinationFolder="$(SolutionDir)mods/common/"/>
|
DestinationFolder="$(SolutionDir)mods/common/"/>
|
||||||
<!--
|
<!--
|
||||||
We need to copy OpenRA.Mods.Cnc.pdb (not `.dll.pdb`). This is only necessary on Windows.
|
csc generates .pdb symbol files (not `.dll.pdb`).
|
||||||
Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
|
mcs generates .dll.mdb symbol files.
|
||||||
-->
|
-->
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
||||||
DestinationFolder="$(SolutionDir)mods/common/"
|
DestinationFolder="$(SolutionDir)mods/common/"
|
||||||
Condition="'$(OS)' == 'Windows_NT'"/>
|
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="$(TargetPath).mdb"
|
SourceFiles="$(TargetPath).mdb"
|
||||||
DestinationFolder="$(SolutionDir)mods/common/"
|
DestinationFolder="$(SolutionDir)mods/common/"
|
||||||
Condition="'$(OS)' == 'Unix'"/>
|
Condition="Exists('$(TargetPath).mdb')"/>
|
||||||
<!-- Uncomment these lines when debugging or adding to this target
|
<!-- Uncomment these lines when debugging or adding to this target
|
||||||
<Message Text="DEBUG OS: $(OS)"/>
|
<Message Text="DEBUG OS: $(OS)"/>
|
||||||
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
||||||
|
|||||||
@@ -823,17 +823,17 @@
|
|||||||
SourceFiles="$(TargetPath)"
|
SourceFiles="$(TargetPath)"
|
||||||
DestinationFolder="$(SolutionDir)mods/common/"/>
|
DestinationFolder="$(SolutionDir)mods/common/"/>
|
||||||
<!--
|
<!--
|
||||||
We need to copy OpenRA.Mods.Common.pdb (not `.dll.pdb`). This is only necessary on Windows.
|
csc generates .pdb symbol files (not `.dll.pdb`).
|
||||||
Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
|
mcs generates .dll.mdb symbol files.
|
||||||
-->
|
-->
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
||||||
DestinationFolder="$(SolutionDir)mods/common/"
|
DestinationFolder="$(SolutionDir)mods/common/"
|
||||||
Condition="'$(OS)' == 'Windows_NT'"/>
|
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="$(TargetPath).mdb"
|
SourceFiles="$(TargetPath).mdb"
|
||||||
DestinationFolder="$(SolutionDir)mods/common/"
|
DestinationFolder="$(SolutionDir)mods/common/"
|
||||||
Condition="'$(OS)' == 'Unix'"/>
|
Condition="Exists('$(TargetPath).mdb')"/>
|
||||||
<!-- Uncomment these lines when debugging or adding to this target
|
<!-- Uncomment these lines when debugging or adding to this target
|
||||||
<Message Text="DEBUG OS: $(OS)"/>
|
<Message Text="DEBUG OS: $(OS)"/>
|
||||||
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
||||||
|
|||||||
@@ -130,17 +130,17 @@ cd "$(SolutionDir)"</PostBuildEvent>
|
|||||||
SourceFiles="$(TargetPath)"
|
SourceFiles="$(TargetPath)"
|
||||||
DestinationFolder="$(SolutionDir)mods/d2k/"/>
|
DestinationFolder="$(SolutionDir)mods/d2k/"/>
|
||||||
<!--
|
<!--
|
||||||
We need to copy OpenRA.Mods.D2k.pdb (not `.dll.pdb`). This is only necessary on Windows.
|
csc generates .pdb symbol files (not `.dll.pdb`).
|
||||||
Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
|
mcs generates .dll.mdb symbol files.
|
||||||
-->
|
-->
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
||||||
DestinationFolder="$(SolutionDir)mods/d2k/"
|
DestinationFolder="$(SolutionDir)mods/d2k/"
|
||||||
Condition="'$(OS)' == 'Windows_NT'"/>
|
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="$(TargetPath).mdb"
|
SourceFiles="$(TargetPath).mdb"
|
||||||
DestinationFolder="$(SolutionDir)mods/d2k/"
|
DestinationFolder="$(SolutionDir)mods/d2k/"
|
||||||
Condition="'$(OS)' == 'Unix'"/>
|
Condition="Exists('$(TargetPath).mdb')"/>
|
||||||
<!-- Uncomment these lines when debugging or adding to this target
|
<!-- Uncomment these lines when debugging or adding to this target
|
||||||
<Message Text="DEBUG OS: $(OS)"/>
|
<Message Text="DEBUG OS: $(OS)"/>
|
||||||
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user