Skip to content

Commit

Permalink
dep: Move WinPixEventRuntime to root
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Sep 2, 2023
1 parent 203e71f commit 8171293
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions dep/winpixeventruntime/CMakeLists.txt
@@ -0,0 +1,13 @@
add_library(WinPixEventRuntime::WinPixEventRuntime UNKNOWN IMPORTED GLOBAL)

if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64")
set_target_properties(WinPixEventRuntime::WinPixEventRuntime PROPERTIES
IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/libarm64/WinPixEventRuntime.lib"
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include"
)
else()
set_target_properties(WinPixEventRuntime::WinPixEventRuntime PROPERTIES
IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/lib64/WinPixEventRuntime.lib"
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include"
)
endif()
Expand Up @@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="UserMacros">
<BinaryOutputDir>$(SolutionDir)bin\$(Platform)\</BinaryOutputDir>
<WinPixEventRuntimeDir>$(SolutionDir)dep\msvc\winpixeventruntime\</WinPixEventRuntimeDir>
<WinPixEventRuntimeDir>$(SolutionDir)dep\winpixeventruntime\</WinPixEventRuntimeDir>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
Expand Down
2 changes: 1 addition & 1 deletion src/util/util.props
Expand Up @@ -21,5 +21,5 @@
</ItemDefinitionGroup>

<Import Project="..\..\dep\msvc\vsprops\SDL2Compile.props" />
<Import Project="..\..\dep\msvc\winpixeventruntime\WinPixEventRuntime.props" />
<Import Project="..\..\dep\winpixeventruntime\WinPixEventRuntime.props" />
</Project>

0 comments on commit 8171293

Please sign in to comment.