Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions SPTAG.WinRT.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<package >
<metadata>
<id>SPTAG.WinRT</id>
<version>1.2.13-mainOPQ-CoreLib-SPANN-withsource-a6b7604</version>
<title>SPTAG.WinRT</title>
<authors>cheqi,haidwa,mingqli</authors>
<owners>cheqi,haidwa,mingqli,zhah</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://github.com/microsoft/SPTAG</licenseUrl>
<projectUrl>https://github.com/microsoft/SPTAG</projectUrl>
<description>SPTAG (Space Partition Tree And Graph) is a library for large scale vector approximate nearest neighbor search scenario released by Microsoft Research (MSR) and Microsoft Bing.</description>
<releaseNotes>publish with commit microsoft/add python version in wheel package/a6b7604</releaseNotes>
<copyright>Copyright © Microsoft</copyright>
<dependencies>
<group targetFramework="uap10.0">
<dependency id="Zstandard.dyn.x64" version="1.4.0" />
</group>
<group targetFramework="native">
<dependency id="Zstandard.dyn.x64" version="1.4.0" />
</group>
</dependencies>
</metadata>
<files>
<file src="Wrappers\WinRT\SPTAG.WinRT.targets" target="build\native" />
<file src="x64\Release\SPTAG.WinRT\SPTAG.winmd" target="lib\uap10.0" />
<file src="x64\Release\SPTAG.WinRT\SPTAG.dll" target="runtimes\win10-x64\native" />
<file src="readme.md" />
<file src="LICENSE" />
</files>
</package>
19 changes: 19 additions & 0 deletions Wrappers/WinRT/SPTAG.WinRT.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<Native-Platform Condition="'$(Platform)' == 'Win32'">x86</Native-Platform>
<Native-Platform Condition="'$(Platform)' != 'Win32'">$(Platform)</Native-Platform>
<_nugetNativeFolder>$(MSBuildThisFileDirectory)..\..\runtimes\win10-$(Native-Platform)\native\</_nugetNativeFolder>
</PropertyGroup>

<ItemGroup>
<Reference Include="$(MSBuildThisFileDirectory)..\..\lib\uap10.0\SPTAG.winmd" Private="false">
<Implementation>SPTAG.dll</Implementation>
</Reference>

<ReferenceCopyLocalPaths Condition="Exists('$(_nugetNativeFolder)SPTAG.dll')" Include="$(_nugetNativeFolder)SPTAG.dll" />
<ReferenceCopyLocalPaths Condition="Exists('$(_nugetNativeFolder)SPTAG.pri')" Include="$(_nugetNativeFolder)SPTAG.pri" />
<ReferenceCopyLocalPaths Condition="$(Configuration) == 'Debug'" Include="$(_nugetNativeFolder)**\*.xbf" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions Wrappers/WinRT/SPTAG.WinRT.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Store</ApplicationType>
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.22621.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>10.0.17134.0</WindowsTargetPlatformMinVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Expand Down Expand Up @@ -81,7 +81,7 @@
<Import Project="..\..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets" Condition="Exists('..\..\packages\Zstandard.dyn.x64.1.4.0\build\native\Zstandard.dyn.x64.targets')" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PropertyGroup>
<IncludePath>../../AnnService/;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup>
Expand Down
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,42 @@ def _find_python_packages():
''' % (nuget_release)
f.write(spec)
f.close()

fwinrt = open('sptag.winrt.nuspec', 'w')
spec = '''<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MSSPTAG.WinRT</id>
<version>%s</version>
<title>MSSPTAG.WinRT</title>
<authors>cheqi,haidwa,mingqli</authors>
<owners>cheqi,haidwa,mingqli</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://github.com/microsoft/SPTAG</licenseUrl>
<projectUrl>https://github.com/microsoft/SPTAG</projectUrl>
<description>SPTAG (Space Partition Tree And Graph) is a library for large scale vector approximate nearest neighbor search scenario released by Microsoft Research (MSR) and Microsoft Bing.</description>
<copyright>Copyright @ Microsoft</copyright>
<dependencies>
<group targetFramework="uap10.0">
<dependency id="Zstandard.dyn.x64" version="1.4.0" />
</group>
<group targetFramework="native">
<dependency id="Zstandard.dyn.x64" version="1.4.0" />
</group>
</dependencies>
</metadata>
<files>
<file src="Wrappers\\WinRT\\SPTAG.WinRT.targets" target="build\\native" />
<file src="x64\Release\\SPTAG.WinRT\\SPTAG.winmd" target="lib\\uap10.0" />
<file src="x64\Release\\SPTAG.WinRT\\SPTAG.dll" target="runtimes\\win10-x64\\native" />
<file src="readme.md" />
<file src="LICENSE" />
</files>
</package>
''' % (nuget_release)
fwinrt.write(spec)
fwinrt.close()

f = open(os.path.join('sptag', '__init__.py'), 'w')
f.close()
return ['sptag']
Expand Down