Skip to content

Commit

Permalink
fix: project configuration for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroKaku committed Jul 11, 2024
1 parent 7c1c93f commit 3e33a5c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Publish/config/Musa.Core.Config.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup Condition="'$(IsKernelModeToolset)'==''">
<IsKernelModeToolset Condition="'$(PlatformToolset.Contains(`KernelMode`))' == 'true'">true</IsKernelModeToolset>
</PropertyGroup>

<PropertyGroup>
<!-- \Musa.Core\config\..\ -->
<Musa_Core_Root>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..'))</Musa_Core_Root>
</PropertyGroup>

<PropertyGroup>
<Musa_Core_Include>$(Musa_Core_Root)\include</Musa_Core_Include>
<Musa_Core_Library>$(Musa_Core_Root)\lib\$(PlatformShortName)\$(Configuration)</Musa_Core_Library>
</PropertyGroup>

<PropertyGroup>
<IncludePath>$(Musa_Core_Include);$(IncludePath)</IncludePath>
<LibraryPath>$(Musa_Core_Library);$(LibraryPath)</LibraryPath>
</PropertyGroup>

</Project>
17 changes: 17 additions & 0 deletions Publish/config/Musa.Core.Config.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<ItemDefinitionGroup Condition="('$(MusaCoreOnlyHeader)'=='') Or ('$(MusaCoreOnlyHeader)'=='false')">

<Link Condition="('$(IsKernelModeToolset)'=='') Or ('$(IsKernelModeToolset)'=='false')">
<AdditionalDependencies>Musa.Core.SystemCall.Stubs.obj;Musa.Core.StaticLibrary.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>

<Link Condition="'$(IsKernelModeToolset)'=='true'">
<AdditionalOptions>/INTEGRITYCHECK %(AdditionalOptions)</AdditionalOptions>
<AdditionalDependencies>Musa.Core.SystemCallForDriver.Stubs.obj;Musa.Core.StaticLibraryForDriver.lib;Cng.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>

</ItemDefinitionGroup>

</Project>

0 comments on commit 3e33a5c

Please sign in to comment.