1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="14.0" DefaultTargets="GitVersion;Main" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 <LIBSASS_VERSION>[NA]</LIBSASS_VERSION>
5 <LIBSASS_SRC_DIR>..\src</LIBSASS_SRC_DIR>
6 <LIBSASS_HEADERS_DIR>..\src</LIBSASS_HEADERS_DIR>
7 <LIBSASS_INCLUDES_DIR>..\include</LIBSASS_INCLUDES_DIR>
9 <Target Name="GitVersion">
10 <Exec Command="git -C .. describe --abbrev=4 --dirty --always --tags" LogStandardErrorAsError="true" ContinueOnError="true" ConsoleToMSBuild="true">
11 <Output TaskParameter="ConsoleOutput" PropertyName="LIBSASS_VERSION" />
14 <Target Name="VersionMacros">
17 <PreprocessorDefinitions>%(PreprocessorDefinitions);LIBSASS_VERSION="$(LIBSASS_VERSION)";</PreprocessorDefinitions>
22 <Message Text="libsass: $(LIBSASS_VERSION)" />
23 <Message Condition="$(LIBSASS_STATIC_LIB) != ''" Text="Building Static LibSass" />
24 <Message Condition="$(LIBSASS_STATIC_LIB) == ''" Text="Building Dynamic LibSass" />
25 <CallTarget Targets="VersionMacros" />
26 <CallTarget Targets="Build" />
28 <ItemGroup Label="ProjectConfigurations">
29 <ProjectConfiguration Include="Debug|Win32">
30 <Configuration>Debug</Configuration>
31 <Platform>Win32</Platform>
32 </ProjectConfiguration>
33 <ProjectConfiguration Include="Debug|x64">
34 <Configuration>Debug</Configuration>
35 <Platform>x64</Platform>
36 </ProjectConfiguration>
37 <ProjectConfiguration Include="Release|Win32">
38 <Configuration>Release</Configuration>
39 <Platform>Win32</Platform>
40 </ProjectConfiguration>
41 <ProjectConfiguration Include="Release|x64">
42 <Configuration>Release</Configuration>
43 <Platform>x64</Platform>
44 </ProjectConfiguration>
46 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
47 <PropertyGroup Label="Globals">
48 <ProjectGuid>{E4030474-AFC9-4CC6-BEB6-D846F631502B}</ProjectGuid>
49 <Keyword>Win32Proj</Keyword>
50 <RootNamespace>libsass</RootNamespace>
52 <PropertyGroup Label="Common Properties">
53 <TargetName>libsass</TargetName>
54 <CharacterSet>Unicode</CharacterSet>
56 <PropertyGroup Condition="$(LIBSASS_STATIC_LIB) == ''">
57 <ConfigurationType>DynamicLibrary</ConfigurationType>
58 <PreprocessorDefinitions>ADD_EXPORTS;$(PreprocessorDefinitions);</PreprocessorDefinitions>
60 <PropertyGroup Condition="$(LIBSASS_STATIC_LIB) != ''">
61 <ConfigurationType>StaticLibrary</ConfigurationType>
63 <PropertyGroup Label="VS2013 toolset selection" Condition="'$(VisualStudioVersion)' == '12.0'">
64 <PlatformToolset>v120</PlatformToolset>
66 <PropertyGroup Label="VS2015 toolset selection" Condition="'$(VisualStudioVersion)' == '14.0'">
67 <PlatformToolset>v140</PlatformToolset>
69 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
70 <UseDebugLibraries>true</UseDebugLibraries>
72 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
73 <UseDebugLibraries>true</UseDebugLibraries>
75 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
76 <UseDebugLibraries>false</UseDebugLibraries>
77 <WholeProgramOptimization>true</WholeProgramOptimization>
79 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
80 <UseDebugLibraries>false</UseDebugLibraries>
81 <WholeProgramOptimization>true</WholeProgramOptimization>
83 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
84 <ImportGroup Label="ExtensionSettings">
86 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
87 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
89 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
90 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
92 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
93 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
95 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
96 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
98 <PropertyGroup Label="UserMacros" />
99 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
100 <LinkIncremental>true</LinkIncremental>
101 <OutDir>$(SolutionDir)bin\Debug\</OutDir>
102 <IntDir>$(SolutionDir)bin\Debug\obj\</IntDir>
104 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
105 <LinkIncremental>true</LinkIncremental>
106 <OutDir>$(SolutionDir)bin\Debug\</OutDir>
107 <IntDir>$(SolutionDir)bin\Debug\obj\</IntDir>
109 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
110 <LinkIncremental>false</LinkIncremental>
111 <OutDir>$(SolutionDir)bin\</OutDir>
112 <IntDir>$(SolutionDir)bin\obj\</IntDir>
114 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
115 <LinkIncremental>false</LinkIncremental>
116 <OutDir>$(SolutionDir)bin\</OutDir>
117 <IntDir>$(SolutionDir)bin\obj\</IntDir>
119 <ItemDefinitionGroup>
121 <AdditionalIncludeDirectories>..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
123 </ItemDefinitionGroup>
124 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
128 <WarningLevel>Level3</WarningLevel>
129 <Optimization>Disabled</Optimization>
130 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;$(PreprocessorDefinitions);</PreprocessorDefinitions>
133 <SubSystem>Console</SubSystem>
134 <GenerateDebugInformation>true</GenerateDebugInformation>
136 </ItemDefinitionGroup>
137 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
141 <WarningLevel>Level3</WarningLevel>
142 <Optimization>Disabled</Optimization>
143 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;$(PreprocessorDefinitions);</PreprocessorDefinitions>
146 <SubSystem>Console</SubSystem>
147 <GenerateDebugInformation>true</GenerateDebugInformation>
149 </ItemDefinitionGroup>
150 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
152 <WarningLevel>Level3</WarningLevel>
155 <Optimization>MaxSpeed</Optimization>
156 <FunctionLevelLinking>true</FunctionLevelLinking>
157 <IntrinsicFunctions>true</IntrinsicFunctions>
158 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;$(PreprocessorDefinitions);</PreprocessorDefinitions>
161 <SubSystem>Console</SubSystem>
162 <GenerateDebugInformation>true</GenerateDebugInformation>
163 <EnableCOMDATFolding>true</EnableCOMDATFolding>
164 <OptimizeReferences>true</OptimizeReferences>
166 </ItemDefinitionGroup>
167 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
169 <WarningLevel>Level3</WarningLevel>
172 <Optimization>MaxSpeed</Optimization>
173 <FunctionLevelLinking>true</FunctionLevelLinking>
174 <IntrinsicFunctions>true</IntrinsicFunctions>
175 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;$(PreprocessorDefinitions);</PreprocessorDefinitions>
178 <SubSystem>Console</SubSystem>
179 <GenerateDebugInformation>true</GenerateDebugInformation>
180 <EnableCOMDATFolding>true</EnableCOMDATFolding>
181 <OptimizeReferences>true</OptimizeReferences>
183 </ItemDefinitionGroup>
184 <Import Project="libsass.targets" />
185 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
186 <ImportGroup Label="ExtensionTargets">