Switch to the newer Roslyn compiler on Linux/macOS.

This commit is contained in:
Paul Chote
2019-03-23 10:56:05 +00:00
committed by Oliver Brakmann
parent 5b00586de2
commit d53338ca5e
6 changed files with 7 additions and 31 deletions

View File

@@ -38,7 +38,7 @@ script:
- sudo dpkg -i nsis_3.03-2_amd64.deb
- makensis -VERSION
- travis_retry make all-dependencies
- make all SDK="-sdk:4.5"
- make all
- make check
- make check-scripts
- make test

View File

@@ -37,8 +37,8 @@
############################## TOOLCHAIN ###############################
#
CSC = mcs
CSFLAGS = -nologo -warn:4 -codepage:utf8 -langversion:5 -unsafe -warnaserror
CSC = csc
CSFLAGS = -nologo -warn:4 -langversion:5 -unsafe -warnaserror
DEFINE = TRACE
COMMON_LIBS = System.dll System.Core.dll System.Numerics.dll thirdparty/download/ICSharpCode.SharpZipLib.dll thirdparty/download/FuzzyLogicLibrary.dll thirdparty/download/MaxMind.Db.dll thirdparty/download/Eluant.dll thirdparty/download/rix0rrr.BeaconLib.dll

View File

@@ -194,18 +194,10 @@
<Copy
SourceFiles="$(TargetPath)"
DestinationFolder="$(SolutionDir)mods/common/"/>
<!--
csc generates .pdb symbol files (not `.dll.pdb`).
mcs generates .dll.mdb symbol files.
-->
<Copy
SourceFiles="$(TargetDir)$(TargetName).pdb"
DestinationFolder="$(SolutionDir)mods/common/"
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
<Copy
SourceFiles="$(TargetPath).mdb"
DestinationFolder="$(SolutionDir)mods/common/"
Condition="Exists('$(TargetPath).mdb')"/>
<!-- Uncomment these lines when debugging or adding to this target
<Message Text="DEBUG OS: $(OS)"/>
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
@@ -214,4 +206,4 @@
<Message Text="DEBUG TargetName: $(TargetName)"/>
-->
</Target>
</Project>
</Project>

View File

@@ -976,18 +976,10 @@
<Copy
SourceFiles="$(TargetPath)"
DestinationFolder="$(SolutionDir)mods/common/"/>
<!--
csc generates .pdb symbol files (not `.dll.pdb`).
mcs generates .dll.mdb symbol files.
-->
<Copy
SourceFiles="$(TargetDir)$(TargetName).pdb"
DestinationFolder="$(SolutionDir)mods/common/"
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
<Copy
SourceFiles="$(TargetPath).mdb"
DestinationFolder="$(SolutionDir)mods/common/"
Condition="Exists('$(TargetPath).mdb')"/>
<!-- Uncomment these lines when debugging or adding to this target
<Message Text="DEBUG OS: $(OS)"/>
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
@@ -996,4 +988,4 @@
<Message Text="DEBUG TargetName: $(TargetName)"/>
-->
</Target>
</Project>
</Project>

View File

@@ -118,18 +118,10 @@
<Copy
SourceFiles="$(TargetPath)"
DestinationFolder="$(SolutionDir)mods/d2k/"/>
<!--
csc generates .pdb symbol files (not `.dll.pdb`).
mcs generates .dll.mdb symbol files.
-->
<Copy
SourceFiles="$(TargetDir)$(TargetName).pdb"
DestinationFolder="$(SolutionDir)mods/d2k/"
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
<Copy
SourceFiles="$(TargetPath).mdb"
DestinationFolder="$(SolutionDir)mods/d2k/"
Condition="Exists('$(TargetPath).mdb')"/>
<!-- Uncomment these lines when debugging or adding to this target
<Message Text="DEBUG OS: $(OS)"/>
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
@@ -138,4 +130,4 @@
<Message Text="DEBUG TargetName: $(TargetName)"/>
-->
</Target>
</Project>
</Project>

View File

@@ -30,7 +30,7 @@ fi
function makelauncher()
{
sed "s|DISPLAY_NAME|$2|" WindowsLauncher.cs.in | sed "s|MOD_ID|$3|" | sed "s|FAQ_URL|${FAQ_URL}|" > WindowsLauncher.cs
mcs WindowsLauncher.cs -warn:4 -codepage:utf8 -warnaserror -out:"$1" -t:winexe ${LAUNCHER_LIBS} -win32icon:"$4"
csc WindowsLauncher.cs -warn:4 -warnaserror -out:"$1" -t:winexe ${LAUNCHER_LIBS} -win32icon:"$4"
rm WindowsLauncher.cs
mono "${SRCDIR}/fixheader.exe" "$1" > /dev/null
}