Skip to content

Commit

Permalink
Add Mint.NuGet project.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Feb 12, 2024
1 parent d23d61d commit a8283c2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 64 deletions.
69 changes: 5 additions & 64 deletions BuildAllTargets.proj
Original file line number Diff line number Diff line change
@@ -1,71 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets="Restore;Build"
DefaultTargets="Packaging"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionPath>$(MSBuildThisFileDirectory)*.sln</SolutionPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="$(SolutionPath)">
<AdditionalProperties>Configuration=Debug;Platform=x86</AdditionalProperties>
</ProjectReference>
<ProjectReference Include="$(SolutionPath)">
<AdditionalProperties>Configuration=Release;Platform=x86</AdditionalProperties>
</ProjectReference>
<ProjectReference Include="$(SolutionPath)">
<AdditionalProperties>Configuration=Debug;Platform=x64</AdditionalProperties>
</ProjectReference>
<ProjectReference Include="$(SolutionPath)">
<AdditionalProperties>Configuration=Release;Platform=x64</AdditionalProperties>
</ProjectReference>
<ProjectReference Include="$(SolutionPath)">
<AdditionalProperties>Configuration=Debug;Platform=ARM64</AdditionalProperties>
</ProjectReference>
<ProjectReference Include="$(SolutionPath)">
<AdditionalProperties>Configuration=Release;Platform=ARM64</AdditionalProperties>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<!-- <PackagingProjectReference Include="$(MSBuildThisFileDirectory)Mile.Project.Windows\Mile.Project.NuGetPackaging.proj">
<AdditionalProperties>NuspecFile=$(MSBuildThisFileDirectory)SampleProject\SampleProject.nuspec</AdditionalProperties>
</PackagingProjectReference> -->
</ItemGroup>
<Target Name="Restore" >
<Target Name="Packaging">
<MSBuild
Projects="@(ProjectReference)"
Targets="Restore"
Projects="$(MSBuildThisFileDirectory)Mile.Project.Windows\Mile.Project.NuGetPackaging.proj"
Targets="Restore;Build"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64" />
<MSBuild
Projects="@(PackagingProjectReference)"
Targets="Restore"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64" />
</Target>
<Target Name="Build" >
<MSBuild
Projects="@(ProjectReference)"
Targets="Build"
BuildInParallel="True"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64" />
<MSBuild
Projects="@(PackagingProjectReference)"
Targets="Build"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64" />
</Target>
<Target Name="Rebuild" >
<MSBuild
Projects="@(ProjectReference)"
Targets="Rebuild"
BuildInParallel="True"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64" />
<MSBuild
Projects="@(PackagingProjectReference)"
Targets="Rebuild"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64" />
Properties="PreferredToolArchitecture=x64;NuspecFile=$(MSBuildThisFileDirectory)Mint.NuGet\Mint.nuspec" />
</Target>
</Project>
34 changes: 34 additions & 0 deletions Mint.NuGet/Mint.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
PROJECT: Mouri's Internal NT API Collections (MINT)
FILE: Mint.nuspec
PURPOSE: NuGet package definition for MINT
LICENSE: The MIT License
MAINTAINER: MouriNaruto ([email protected])
-->
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>MINT</id>
<version>2024.0.0</version>
<description>Contains the definitions for the Windows Internal UserMode API from ntdll.dll, samlib.dll and winsta.dll</description>
<authors>Kenji Mouri</authors>
<owners>初雨团队</owners>
<projectUrl>https://github.com/Chuyu-Team/MINT</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="file">License.md</license>
<readme>ReadMe.md</readme>
<repository type="git" url="https://github.com/Chuyu-Team/MINT.git" />
</metadata>
<files>

<file src="..\Mint\**\*.*" target="Source\Native" />

<file src="Mint.props" target="build\native"/>

<file src="..\ReadMe.md" target="."/>
<file src="..\License.md" target="."/>

</files>
</package>
15 changes: 15 additions & 0 deletions Mint.NuGet/Mint.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
PROJECT: Mouri's Internal NT API Collections (MINT)
FILE: Mint.props
PURPOSE: MSBuild props file for MINT
LICENSE: The MIT License
MAINTAINER: MouriNaruto ([email protected])
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IncludePath>$(MSBuildThisFileDirectory)..\..\Source\Native\;$(IncludePath)</IncludePath>
</PropertyGroup>
</Project>

0 comments on commit a8283c2

Please sign in to comment.