mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Renamed cgl_platform.mm -> cgl_platform_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. cgl_platform.cpp & cgl_platform.mm The makefile generator explicitly distinguishes the targets ie. cgl_platform.cpp.o & cgl_platform.mm.o
This commit is contained in:
committed by
Baldur Karlsson
parent
003ab7469c
commit
5907182f95
@@ -54,7 +54,7 @@ list(APPEND sources gl_hooks.cpp)
|
||||
if(APPLE)
|
||||
list(APPEND sources
|
||||
cgl_dispatch_table.h
|
||||
cgl_platform.mm
|
||||
cgl_platform_helpers.mm
|
||||
cgl_platform.cpp
|
||||
cgl_hooks.cpp)
|
||||
else()
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include "apple_gl_hook_defs.h"
|
||||
|
||||
// helpers defined in cgl_platform.mm
|
||||
// helpers defined in cgl_platform_helpers.mm
|
||||
void Apple_getWindowSize(void *view, int &width, int &height);
|
||||
void Apple_stopTrackingWindowSize(void *view);
|
||||
void NSGL_init();
|
||||
|
||||
@@ -198,7 +198,7 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="cgl_platform.mm" />
|
||||
<None Include="cgl_platform_helpers.mm" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="cgl_platform.mm">
|
||||
<None Include="cgl_platform_helpers.mm">
|
||||
<Filter>Platform Interfaces\Apple</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user