Skip to content

Commit 19e50f4

Browse files
committed
Minor tvOS fix
1 parent d45c280 commit 19e50f4

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

files.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
<compilerflag value="-DGL_GLEXT_PROTOTYPES" if="android || rpi" />
1313
<compilerflag value="-DHAVE_LIBC" />
1414

15-
<compilerflag value="-D__IPHONEOS__" if="ios" />
15+
<compilerflag value="-D__IPHONEOS__" if="ios || tvos" />
16+
<compilerflag value="-D__TVOS__" if="tvos" />
1617

1718
<section if="windows">
1819

@@ -163,7 +164,7 @@
163164

164165
</section>
165166

166-
<section if="android || ios || windows || rpi" >
167+
<section if="android || ios || windows || rpi || tvos" >
167168

168169
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/video/SDL_egl.c" />
169170
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/render/opengles/SDL_render_gles.c" />
@@ -357,7 +358,7 @@
357358

358359
</section>
359360

360-
<section if="ios">
361+
<section if="ios || tvos">
361362

362363
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/audio/coreaudio/SDL_coreaudio.c" />
363364
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/file/cocoa/SDL_rwopsbundlesupport.m" />

library.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<include name="${HXCPP}/build-tool/BuildCommon.xml"/>
44
<set name="ios" value="1" if="iphone" />
5+
<set name="tvos" value="1" if="appletv" />
56
<set name="mac" value="1" if="macos" />
67
<set name="native_toolkit_sdl_static" value="1" if="static_link" />
78

@@ -15,7 +16,7 @@
1516
<set name="SLIBEXT" value=".a" unless="windows"/>
1617
<set name="SHLIBEXT" value=".dll" if="windows"/>
1718
<set name="SHLIBEXT" value=".so" unless="windows"/>
18-
<set name="SHLIBEXT" value=".dylib" if="mac || ios"/>
19+
<set name="SHLIBEXT" value=".dylib" if="mac || ios || tvos"/>
1920
<!-- :todo: will use a define to control -debug appendage -->
2021
<set name="DEBUGEXTRA" value="" />
2122
<set name="DEBUGEXTRA" value="" if="native_toolkit_sdl_static"/>

0 commit comments

Comments
 (0)