Skip to content

Commit

Permalink
Add MileWindowsHelpersNoCppWinRTHelpers MSBuild option.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Sep 6, 2024
1 parent 75fc025 commit 44308a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Mile.Helpers/Mile.Windows.Helpers.targets
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Source\Native\Mile.Helpers.Base.cpp" />
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Source\Native\Mile.Helpers.cpp" />
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Source\Native\Mile.Helpers.CppBase.cpp" />
</ItemGroup>
<ItemGroup Condition="'$(MileWindowsHelpersNoCppWinRTHelpers)' != 'true'">
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Source\Native\Mile.Helpers.CppWinRT.cpp" />
</ItemGroup>
</Target>
Expand Down
6 changes: 6 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

The essential helper functions for the Windows platform.

## Usage

If you don't want to include C++/WinRT helpers, please set
`<MileWindowsHelpersNoCppWinRTHelpers>true</MileWindowsHelpersNoCppWinRTHelpers>`
in your project configuration file.

## Documents

- [License](https://github.com/ProjectMile/Mile.Windows.Helpers/blob/main/License.md)
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@
- Add Mile::ComObjectChainHelper template struct.
- Add Mile::ComObjectQueryHelper template struct.
- Add Mile::ComObject template struct.
- Add MileWindowsHelpersNoCppWinRTHelpers MSBuild option.

0 comments on commit 44308a1

Please sign in to comment.