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