Skip to content

Commit f430172

Browse files
committed
Compile libsass for one platform at a time
Added an inline MSBuild task, which make use of a new CoreFX API `System.Runtime.InteropServices.RuntimeInformation` to obtain OS description and architecture information, then translates into `LibSassPlatform` (Win32 or Win64 etc.). Also added ability to cross compile, e.g. Win32 on 64-bit system. Additional OSes will be added with .NET Core support. Added cross compile configurations for AppVeyor CI.
1 parent 72a0578 commit f430172

File tree

10 files changed

+309
-1144
lines changed

10 files changed

+309
-1144
lines changed

LibSass.NET.Tests/LibSass.NET.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
</Target>
118118
<Target Name="AfterBuild">
119119
<Copy
120-
SourceFiles="$(LibSassPath)libsass32.dll;$(LibSassPath)libsass64.dll"
120+
SourceFiles="$(LibSassPath)libsass.dll"
121121
DestinationFolder="$(OutputPath)"
122122
SkipUnchangedFiles="true" />
123123
</Target>

LibSass.NET.Tests/Spec/SpecTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
using System.Text.RegularExpressions;
55
using LibSass.Compiler.Options;
66
using Xunit;
7-
using static LibSass.Tests.TestCommonsAndExtensions;
8-
using static System.IO.Path;
97
using static System.IO.File;
8+
using static System.IO.Path;
9+
using static LibSass.Tests.TestCommonsAndExtensions;
1010

1111
namespace LibSass.Tests.Spec
1212
{

0 commit comments

Comments
 (0)