Skip to content

Commit

Permalink
Always generate 64-bit interop assemblies
Browse files Browse the repository at this point in the history
  • Loading branch information
KimihikoAkayasaki committed May 25, 2024
1 parent 2a129c7 commit ae0eb7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver_Amethyst/driver_Amethyst.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ xcopy /y /d /e "$(OutDir)*" "$(SolutionDir)plugin_OpenVR\bin\$(Configuration)\ne
<PreBuildEvent>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">powershell -Command New-Item -ItemType Directory -Force -Path '$(IntDirFullPath)Generated Files\MIDL\'

powershell -Command midl '$(ProjectDir)$(ProjectName).idl' /tlb '$(IntDirFullPath)Generated Files\MIDL\$(ProjectName).tlb' /I '$(ProjectDir)'
powershell -Command tlbimp '$(IntDirFullPath)Generated Files\MIDL\$(ProjectName).tlb' /out:'$(OutDir)com.$(ProjectName).dll'</Command>
powershell -Command midl /amd64 '$(ProjectDir)$(ProjectName).idl' /tlb '$(IntDirFullPath)Generated Files\MIDL\$(ProjectName).tlb' /I '$(ProjectDir)'
powershell -Command tlbimp '$(IntDirFullPath)Generated Files\MIDL\$(ProjectName).tlb' /machine:x64 /out:'$(OutDir)com.$(ProjectName).dll'</Command>
</PreBuildEvent>
<Link>
<AdditionalLibraryDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)vendor\openvr\lib\win64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
Expand Down

0 comments on commit ae0eb7f

Please sign in to comment.