mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Add Windows Implementation Libraries
This commit is contained in:
2
Externals/WIL/packaging/CMakeLists.txt
vendored
Normal file
2
Externals/WIL/packaging/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
add_subdirectory(nuget)
|
20
Externals/WIL/packaging/nuget/CMakeLists.txt
vendored
Normal file
20
Externals/WIL/packaging/nuget/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/build_tools/nuget.exe" nuget_exe)
|
||||
file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}" nupkg_dir)
|
||||
file(TO_NATIVE_PATH "${nupkg_dir}/Microsoft.Windows.ImplementationLibrary.${WIL_BUILD_VERSION}.nupkg" wil_nupkg)
|
||||
|
||||
# The build servers don't have an up-to-date version of nuget, so pull it down ourselves...
|
||||
file(DOWNLOAD https://dist.nuget.org/win-x86-commandline/latest/nuget.exe ${nuget_exe})
|
||||
|
||||
file(GLOB_RECURSE wil_headers ${CMAKE_SOURCE_DIR}/include/*.h)
|
||||
|
||||
add_custom_command(OUTPUT ${wil_nupkg}
|
||||
COMMAND ${nuget_exe} pack ${CMAKE_CURRENT_SOURCE_DIR}/Microsoft.Windows.ImplementationLibrary.nuspec -OutputDirectory ${nupkg_dir} -Version ${WIL_BUILD_VERSION} -NonInteractive
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Microsoft.Windows.ImplementationLibrary.nuspec
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Microsoft.Windows.ImplementationLibrary.targets
|
||||
${wil_headers}
|
||||
${CMAKE_SOURCE_DIR}/LICENSE
|
||||
${CMAKE_SOURCE_DIR}/ThirdPartyNotices.txt)
|
||||
|
||||
add_custom_target(make_wil_nupkg DEPENDS ${wil_nupkg})
|
21
Externals/WIL/packaging/nuget/Microsoft.Windows.ImplementationLibrary.nuspec
vendored
Normal file
21
Externals/WIL/packaging/nuget/Microsoft.Windows.ImplementationLibrary.nuspec
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>Microsoft.Windows.ImplementationLibrary</id>
|
||||
<version>0.0.0</version>
|
||||
<title>Windows Implementation Library</title>
|
||||
<authors>Microsoft</authors>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>The Windows Implementation Libraries (wil) were created to improve productivity and solve problems commonly seen by Windows developers.</description>
|
||||
<tags>windows utility wil native</tags>
|
||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||
<license type="file">LICENSE</license>
|
||||
<projectUrl>https://github.com/Microsoft/wil</projectUrl>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="..\..\LICENSE"/>
|
||||
<file src="..\..\ThirdPartyNotices.txt"/>
|
||||
<file src="..\..\include\**" target="include\" />
|
||||
<file src="Microsoft.Windows.ImplementationLibrary.targets" target="build\native\" />
|
||||
</files>
|
||||
</package>
|
8
Externals/WIL/packaging/nuget/Microsoft.Windows.ImplementationLibrary.targets
vendored
Normal file
8
Externals/WIL/packaging/nuget/Microsoft.Windows.ImplementationLibrary.targets
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user