|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| -<Project ToolsVersion="12.0" DefaultTargets="GitVersion;Main" |
3 |
| - xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
4 |
| - |
| 2 | +<Project ToolsVersion="14.0" DefaultTargets="GitVersion;Main" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
5 | 3 | <PropertyGroup>
|
6 | 4 | <SASSC_VERSION>[NA]</SASSC_VERSION>
|
7 | 5 | <LIBSASS_VERSION>[NA]</LIBSASS_VERSION>
|
8 | 6 | </PropertyGroup>
|
9 |
| - |
10 | 7 | <Target Name="GitVersion">
|
11 |
| - |
12 |
| - <Exec Command="git -C .. describe --abbrev=4 --dirty --always --tags > libsass-version" /> |
13 |
| - <Exec Command="git -C ../sassc describe --abbrev=4 --dirty --always --tags > sassc-version" /> |
14 |
| - |
| 8 | + <Exec Command="git -C .. describe --abbrev=4 --dirty --always --tags > libsass-version" /> |
| 9 | + <Exec Command="git -C ../sassc describe --abbrev=4 --dirty --always --tags > sassc-version" /> |
15 | 10 | <ReadLinesFromFile File="sassc-version">
|
16 | 11 | <Output TaskParameter="Lines" PropertyName="SASSC_VERSION" />
|
17 | 12 | </ReadLinesFromFile>
|
18 | 13 | <ReadLinesFromFile File="libsass-version">
|
19 | 14 | <Output TaskParameter="Lines" PropertyName="LIBSASS_VERSION" />
|
20 | 15 | </ReadLinesFromFile>
|
21 | 16 | </Target>
|
22 |
| - |
23 | 17 | <Target Name="VersionMacros">
|
24 | 18 | <ItemGroup>
|
25 |
| - <ClCompile><PreprocessorDefinitions>%(PreprocessorDefinitions);SASSC_VERSION="$(SASSC_VERSION)"</PreprocessorDefinitions></ClCompile> |
26 |
| - <ClCompile><PreprocessorDefinitions>%(PreprocessorDefinitions);LIBSASS_VERSION="$(LIBSASS_VERSION)"</PreprocessorDefinitions></ClCompile> |
| 19 | + <ClCompile> |
| 20 | + <PreprocessorDefinitions>%(PreprocessorDefinitions);SASSC_VERSION="$(SASSC_VERSION)"</PreprocessorDefinitions> |
| 21 | + </ClCompile> |
| 22 | + <ClCompile> |
| 23 | + <PreprocessorDefinitions>%(PreprocessorDefinitions);LIBSASS_VERSION="$(LIBSASS_VERSION)"</PreprocessorDefinitions> |
| 24 | + </ClCompile> |
27 | 25 | </ItemGroup>
|
28 | 26 | </Target>
|
29 |
| - |
30 | 27 | <Target Name="Main">
|
31 | 28 | <Message Text="sassc: $(SASSC_VERSION)" />
|
32 | 29 | <Message Text="libsass: $(LIBSASS_VERSION)" />
|
33 | 30 | <CallTarget Targets="VersionMacros" />
|
34 | 31 | <CallTarget Targets="Build" />
|
35 | 32 | </Target>
|
36 |
| - |
37 | 33 | <ItemGroup Label="ProjectConfigurations">
|
38 | 34 | <ProjectConfiguration Include="Debug|Win32">
|
39 | 35 | <Configuration>Debug</Configuration>
|
|
58 | 54 | <RootNamespace>libsass</RootNamespace>
|
59 | 55 | </PropertyGroup>
|
60 | 56 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
| 57 | + <PropertyGroup Condition="'$(VisualStudioVersion)' == '12.0'"> |
| 58 | + <PlatformToolset>v120</PlatformToolset> |
| 59 | + </PropertyGroup> |
| 60 | + <PropertyGroup Condition="'$(VisualStudioVersion)' == '14.0'"> |
| 61 | + <PlatformToolset>v140</PlatformToolset> |
| 62 | + </PropertyGroup> |
61 | 63 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
62 | 64 | <ConfigurationType>Application</ConfigurationType>
|
63 | 65 | <UseDebugLibraries>true</UseDebugLibraries>
|
64 |
| - <PlatformToolset>v120</PlatformToolset> |
65 | 66 | <CharacterSet>Unicode</CharacterSet>
|
66 | 67 | </PropertyGroup>
|
67 | 68 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
68 | 69 | <ConfigurationType>Application</ConfigurationType>
|
69 | 70 | <UseDebugLibraries>true</UseDebugLibraries>
|
70 |
| - <PlatformToolset>v120</PlatformToolset> |
71 | 71 | <CharacterSet>Unicode</CharacterSet>
|
72 | 72 | </PropertyGroup>
|
73 | 73 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
74 | 74 | <ConfigurationType>Application</ConfigurationType>
|
75 | 75 | <UseDebugLibraries>false</UseDebugLibraries>
|
76 |
| - <PlatformToolset>v120</PlatformToolset> |
77 | 76 | <WholeProgramOptimization>true</WholeProgramOptimization>
|
78 | 77 | <CharacterSet>Unicode</CharacterSet>
|
79 | 78 | </PropertyGroup>
|
80 | 79 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
81 | 80 | <ConfigurationType>Application</ConfigurationType>
|
82 | 81 | <UseDebugLibraries>false</UseDebugLibraries>
|
83 |
| - <PlatformToolset>v120</PlatformToolset> |
84 | 82 | <WholeProgramOptimization>true</WholeProgramOptimization>
|
85 | 83 | <CharacterSet>Unicode</CharacterSet>
|
86 | 84 | </PropertyGroup>
|
|
0 commit comments