From 7016a28a7aecb6f08d8602549aa2aa76819cb38d Mon Sep 17 00:00:00 2001 From: Jonathan Pryor Date: Tue, 16 Mar 2021 16:06:38 -0400 Subject: [PATCH] "Multitarget" NativeTiming as well --- src/java-interop/Directory.Build.targets | 19 ++++----- tests/NativeTiming/Directory.Build.targets | 46 ++++++++++++++++------ 2 files changed, 43 insertions(+), 22 deletions(-) diff --git a/src/java-interop/Directory.Build.targets b/src/java-interop/Directory.Build.targets index 35eb7458e..a5c39198d 100644 --- a/src/java-interop/Directory.Build.targets +++ b/src/java-interop/Directory.Build.targets @@ -8,15 +8,6 @@ <_JavaInteropLibName Condition=" '$(OS)' == 'Windows_NT' ">java-interop.dll - - - - - - - - - <_JavaInteropNativeLib Include="CMakeLists.txt"> x86_amd64 @@ -27,6 +18,7 @@ win-x86\ + <_JavaInteropNativeLib Include="CMakeLists.txt" /> @@ -38,6 +30,15 @@ + + + + + + + + + diff --git a/tests/NativeTiming/Directory.Build.targets b/tests/NativeTiming/Directory.Build.targets index 8aa657bf2..7e0ed49b1 100644 --- a/tests/NativeTiming/Directory.Build.targets +++ b/tests/NativeTiming/Directory.Build.targets @@ -6,24 +6,44 @@ <_NativeTimingLibName Condition=" '$(OS)' != 'Windows_NT' And Exists ('/Library/Frameworks/') ">libNativeTiming.dylib <_NativeTimingLibName Condition=" '$(OS)' != 'Windows_NT' And !Exists ('/Library/Frameworks/') ">libNativeTiming.so <_NativeTimingLibName Condition=" '$(OS)' == 'Windows_NT' ">NativeTiming.dll - <_NativeTimingOutputPath>$(OutputPath)$(_NativeTimingLibName) + + <_NativeTimingLib Include="CMakeLists.txt"> + x86_amd64 + win-x64\ + + <_NativeTimingLib Include="CMakeLists.txt"> + x86 + win-x86\ + + + + + <_NativeTimingLib Include="CMakeLists.txt" /> + + - + PreserveNewest + %(Dir)$(_NativeTimingLibName) + + + + + + + + + - - - + Inputs="@(_NativeTimingLib);$(MSBuildThisFileFullPath);NativeTiming.csproj;@(ClInclude);$(ClCompile)" + Outputs="$(OutputPath)%(_NativeTimingLib.Dir)$(_NativeTimingLibName)"> <_JdkDirs>"-DJDK_INCLUDE_LIST=@(JdkIncludePath, ';')" @@ -31,12 +51,12 @@ <_Cmake Condition=" '$(PrepareNativeToolchain)' != '' " - Include="PrepareNativeToolchain=$(PrepareNativeToolchain) x86_amd64" + Include="PrepareNativeToolchain=$(PrepareNativeToolchain) %(_NativeTimingLib.Arch)" /> <_Cmake Include="CmakePath=$(CmakePath)" /> <_Cmake Include="CmakeGenerator=$(CmakeGenerator)" /> <_Cmake Include="CmakeSourceDir=$(MSBuildThisFileDirectory)" /> - <_Cmake Include="CmakeBuildDir=$(MSBuildThisFileDirectory)$(IntermediateOutputPath)" /> + <_Cmake Include="CmakeBuildDir=$(MSBuildThisFileDirectory)$(IntermediateOutputPath)%(_NativeTimingLib.Dir)" /> <_Cmake Include="CmakeExtraArgs=$(_JdkDirs)" /> - <_Libs Include="$(IntermediateOutputPath)$(_NativeTimingLibName)*" /> + <_Libs Include="$(IntermediateOutputPath)%(_NativeTimingLib.Dir)$(_NativeTimingLibName)*" /> - +