Skip to content

Commit

Permalink
adding nuspec and targets for vc143 build
Browse files Browse the repository at this point in the history
updated readme with steps to build nuget package for release x64
  • Loading branch information
tsmoreland committed Jun 27, 2022
1 parent 0230d3a commit 6a22a1f
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,17 @@ Using CMake to build the project which is primarily header file based so the pro
## Testing

Testing will eventually be done using boost test and possibly google test just as an excuse to try out different testing frameworks

## Nuget Package

To build run:

```
nuget.exe pack modern_win32_vc143.nuspec
```

The above command will build the 64-bit release build package. Use modern_win32_debug_vc143.nuspec to
build the debug equivalent.

Versions should be kept in sync between these two as they are intended to represent the same build just in different
configurations
61 changes: 61 additions & 0 deletions modern_win32_vc143.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>modern_win32_vc143</id>
<version>1.0.0</version>
<title>C++20 Wrappers around Win32 API</title>
<authors>TS Moreland</authors>
<owners>TS Moreland</owners>
<license type="expression">MIT</license>
<projectUrl>https://github.com/tsmoreland/modern_win32</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>C++20 Wrappers around Win32 API providing classes similar to C# System library</description>
<summary>C++20 Wrappers around Win32 API providing classes similar to C# System library, built using vc143</summary>
<releaseNotes></releaseNotes>
<copyright>Copyright © 2020 Terry Moreland.</copyright>
<language />
<tags>cpp</tags>
<dependencies>
<group targetFramework="native" />
</dependencies>
</metadata>
<files>
<file src="modern_win32_vc143.targets" target="build\native\modern_win32_vc143.targets" />

<file src="out\install\x64-release\include\modern_win32\access_denied_exception.h" target="lib\native\include\modern_win32\access_denied_exception.h" />
<file src="out\install\x64-release\include\modern_win32\com_exception.h" target="lib\native\include\modern_win32\com_exception.h" />
<file src="out\install\x64-release\include\modern_win32\threading\event.h" target="lib\native\include\modern_win32\threading\event.h" />
<file src="out\install\x64-release\include\modern_win32\invalid_handle.h" target="lib\native\include\modern_win32\invalid_handle.h" />
<file src="out\install\x64-release\include\modern_win32\environment.h" target="lib\native\include\modern_win32\environment.h" />
<file src="out\install\x64-release\include\modern_win32\guid.h" target="lib\native\include\modern_win32\guid.h" />
<file src="out\install\x64-release\include\modern_win32\modern_win32_export.h" target="lib\native\include\modern_win32\modern_win32_export.h" />
<file src="out\install\x64-release\include\modern_win32\module_handle.h" target="lib\native\include\modern_win32\module_handle.h" />
<file src="out\install\x64-release\include\modern_win32\null_handle.h" target="lib\native\include\modern_win32\null_handle.h" />
<file src="out\install\x64-release\include\modern_win32\process.h" target="lib\native\include\modern_win32\process.h" />
<file src="out\install\x64-release\include\modern_win32\process_module.h" target="lib\native\include\modern_win32\process_module.h" />
<file src="out\install\x64-release\include\modern_win32\process_enums.h" target="lib\native\include\modern_win32\process_enums.h" />
<file src="out\install\x64-release\include\modern_win32\process_startup_info.h" target="lib\native\include\modern_win32\process_startup_info.h" />
<file src="out\install\x64-release\include\modern_win32\threading\semaphore.h" target="lib\native\include\modern_win32\threading\semaphore.h" />
<file src="out\install\x64-release\include\modern_win32\shared_utilities.h" target="lib\native\include\modern_win32\shared_utilities.h" />
<file src="out\install\x64-release\include\modern_win32\string.h" target="lib\native\include\modern_win32\string.h" />
<file src="out\install\x64-release\include\modern_win32\shared\case_insensitive_string.h" target="lib\native\include\modern_win32\shared\case_insensitive_string.h" />
<file src="out\install\x64-release\include\modern_win32\shared\chrono_extensions.h" target="lib\native\include\modern_win32\shared\chrono_extensions.h" />
<file src="out\install\x64-release\include\modern_win32\shared\timed_lock_guard.h" target="lib\native\include\modern_win32\shared\timed_lock_guard.h" />
<file src="out\install\x64-release\include\modern_win32\shared\timeout_exception.h" target="lib\native\include\modern_win32\shared\timeout_exception.h" />
<file src="out\install\x64-release\include\modern_win32\threading\slim_lock.h" target="lib\native\include\modern_win32\threading\slim_lock.h" />
<file src="out\install\x64-release\include\modern_win32\threading\thread.h" target="lib\native\include\modern_win32\threading\thread.h" />
<file src="out\install\x64-release\include\modern_win32\threading\thread_start.h" target="lib\native\include\modern_win32\threading\thread_start.h" />
<file src="out\install\x64-release\include\modern_win32\unique_handle.h" target="lib\native\include\modern_win32\unique_handle.h" />
<file src="out\install\x64-release\include\modern_win32\wait_for.h" target="lib\native\include\modern_win32\wait_for.h" />
<file src="out\install\x64-release\include\modern_win32\wait_for_result.h" target="lib\native\include\modern_win32\wait_for_result.h" />
<file src="out\install\x64-release\include\modern_win32\windows_exception.h" target="lib\native\include\modern_win32\windows_exception.h" />
<file src="out\install\x64-release\include\modern_win32\windows_error.h" target="lib\native\include\modern_win32\windows_error.h" />
<file src="out\install\x64-release\include\modern_win32\window_handle.h" target="lib\native\include\modern_win32\window_handle.h" />
<file src="out\install\x64-release\include\modern_win32\windows_memory.h" target="lib\native\include\modern_win32\windows_memory.h" />

<file src="out\install\x64-release\lib\modern_win32.lib" target="lib\native\lib\modern_win32.lib" />
<file src="out\install\x64-release\lib\modern_win32.dll" target="build\native\modern_win32.dll" />
<file src="out\install\x64-release\lib\modern_win32.pdb" target="build\native\modern_win32.pdb" />

</files>
</package>
19 changes: 19 additions & 0 deletions modern_win32_vc143.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\lib\native\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<AdditionalDependencies>$(MSBuildThisFileDirectory)..\..\lib\native\lib\modern_win32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup >
<NativeLibs Include="$(MSBuildThisFileDirectory)**\*.dll" />
<None Include="@(NativeLibs)">
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

0 comments on commit 6a22a1f

Please sign in to comment.