Skip to content

Commit

Permalink
Compile libsass for one platform at a time
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
am11 committed Jan 19, 2017
1 parent 72a0578 commit 68861f8
Show file tree
Hide file tree
Showing 10 changed files with 308 additions and 1,144 deletions.
2 changes: 1 addition & 1 deletion LibSass.NET.Tests/LibSass.NET.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</Target>
<Target Name="AfterBuild">
<Copy
SourceFiles="$(LibSassPath)libsass32.dll;$(LibSassPath)libsass64.dll"
SourceFiles="$(LibSassPath)libsass.dll"
DestinationFolder="$(OutputPath)"
SkipUnchangedFiles="true" />
</Target>
Expand Down
4 changes: 2 additions & 2 deletions LibSass.NET.Tests/Spec/SpecTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
using System.Text.RegularExpressions;
using LibSass.Compiler.Options;
using Xunit;
using static LibSass.Tests.TestCommonsAndExtensions;
using static System.IO.Path;
using static System.IO.File;
using static System.IO.Path;
using static LibSass.Tests.TestCommonsAndExtensions;

namespace LibSass.Tests.Spec
{
Expand Down
Loading

0 comments on commit 68861f8

Please sign in to comment.