summaryrefslogtreecommitdiff
path: root/scripts/nuget/build
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-06-20 21:32:11 -0700
committerGitHub <noreply@github.com>2017-06-20 21:32:11 -0700
commit94ef7b3a033825c4bc3d3578b55f2349182745f0 (patch)
tree38885fd4db1420f83c9e155ece2e479092adce5c /scripts/nuget/build
parent208e2cf0432a0f2865a225a9dc51917191c6cd04 (diff)
parent88d43a7ebc01a2fac86e7c0d9a53ef56a684ad86 (diff)
Merge pull request #151 from zeux/nuget
Rework NuGet package building
Diffstat (limited to 'scripts/nuget/build')
-rw-r--r--scripts/nuget/build/native/pugixml-propertiesui.xml15
-rw-r--r--scripts/nuget/build/native/pugixml.targets27
2 files changed, 42 insertions, 0 deletions
diff --git a/scripts/nuget/build/native/pugixml-propertiesui.xml b/scripts/nuget/build/native/pugixml-propertiesui.xml
new file mode 100644
index 0000000..0732cc2
--- /dev/null
+++ b/scripts/nuget/build/native/pugixml-propertiesui.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ProjectSchemaDefinitions xmlns="clr-namespace:Microsoft.Build.Framework.XamlTypes;assembly=Microsoft.Build.Framework">
+ <Rule Name="ReferencedPackages05032e35-86af-4ab2-a3dc-d3e348583165" PageTemplate="tool" DisplayName="Referenced Packages" SwitchPrefix="/" Order="1">
+ <Rule.Categories>
+ <Category Name="pugixml" DisplayName="pugixml" />
+ </Rule.Categories>
+ <Rule.DataSource>
+ <DataSource Persistence="ProjectFile" ItemType="" />
+ </Rule.DataSource>
+ <EnumProperty Name="Linkage-pugixml" DisplayName="Linkage" Description="Which version of the runtime library to use for this library" Category="pugixml">
+ <EnumValue Name="dynamic" DisplayName="Dynamic CRT (/MD, /MDd)" />
+ <EnumValue Name="static" DisplayName="Static CRT (/MT, /MTd)" />
+ </EnumProperty>
+ </Rule>
+</ProjectSchemaDefinitions>
diff --git a/scripts/nuget/build/native/pugixml.targets b/scripts/nuget/build/native/pugixml.targets
new file mode 100644
index 0000000..97d13b2
--- /dev/null
+++ b/scripts/nuget/build/native/pugixml.targets
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup Label="Default initializers for properties">
+ <Linkage-pugixml Condition="'$(Linkage-pugixml)' == ''">dynamic</Linkage-pugixml>
+ </PropertyGroup>
+ <ItemGroup>
+ <PropertyPageSchema Include="$(MSBuildThisFileDirectory)\pugixml-propertiesui.xml" />
+ </ItemGroup>
+ <ItemDefinitionGroup>
+ <ClCompile>
+ <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ </ClCompile>
+ <ResourceCompile>
+ <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)include/;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ </ResourceCompile>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="$(Configuration.ToLower().IndexOf('debug')) != -1">
+ <Link>
+ <AdditionalDependencies>$(MSBuildThisFileDirectory)lib/$(Platform)\$(PlatformToolset.Split('_')[0])\$(Linkage-pugixml)\Debug\pugixml.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="$(Configuration.ToLower().IndexOf('debug')) == -1">
+ <Link>
+ <AdditionalDependencies>$(MSBuildThisFileDirectory)lib/$(Platform)\$(PlatformToolset.Split('_')[0])\$(Linkage-pugixml)\Release\pugixml.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ </ItemDefinitionGroup>
+</Project>