mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Renamed vk_apple.mm -> vk_apple_helpers.mm
Support for Xcode project generation. Distinguish object file between .cpp & .mm versions. Xcode project build did not work when had the same source file with .cpp and .mm extensions ie. vk_apple.cpp & vk_apple.mm The makefile generator explicitly distinguishes the targets ie. vk_apple.cpp.o & vk_apple.mm.o
This commit is contained in:
committed by
Baldur Karlsson
parent
5907182f95
commit
d158ed2a6b
@@ -88,7 +88,7 @@ if(ANDROID)
|
||||
list(APPEND sources vk_posix.cpp vk_android.cpp vk_layer_android.cpp)
|
||||
list(APPEND definitions PRIVATE -DVK_USE_PLATFORM_ANDROID_KHR)
|
||||
elseif(APPLE)
|
||||
list(APPEND sources vk_posix.cpp vk_apple.cpp vk_apple.mm)
|
||||
list(APPEND sources vk_posix.cpp vk_apple.cpp vk_apple_helpers.mm)
|
||||
|
||||
add_definitions(-DVK_USE_PLATFORM_MACOS_MVK -DVK_USE_PLATFORM_METAL_EXT)
|
||||
elseif(ENABLE_GGP)
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="renderdoc.json" />
|
||||
<None Include="vk_apple.mm" />
|
||||
<None Include="vk_apple_helpers.mm" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\shaders\spirv\renderdoc_spirv.vcxproj">
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
<None Include="renderdoc.json">
|
||||
<Filter>Layer</Filter>
|
||||
</None>
|
||||
<None Include="vk_apple.mm">
|
||||
<None Include="vk_apple_helpers.mm">
|
||||
<Filter>OS\Posix</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
||||
// helpers defined in vk_apple.mm
|
||||
// helpers defined in vk_apple_helpers.mm
|
||||
void getMetalLayerSize(void *layerHandle, int &width, int &height);
|
||||
|
||||
#if defined(VK_USE_PLATFORM_MACOS_MVK)
|
||||
|
||||
Reference in New Issue
Block a user