Skip to content

Commit 3cb4549

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. Fixes sass#47.
1 parent 72a0578 commit 3cb4549

File tree

9 files changed

+301
-1143
lines changed

9 files changed

+301
-1143
lines changed

Diff for: LibSass.NET.Tests/LibSass.NET.Tests.csproj

+1-1
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>

Diff for: LibSass.NET.Tests/Spec/SpecTests.cs

+2-2
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)