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:
Jake Turner
2021-04-29 06:05:19 +01:00
committed by Baldur Karlsson
parent 5907182f95
commit d158ed2a6b
5 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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)