Skip to content

Commit

Permalink
Minor tvOS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranick committed Oct 2, 2015
1 parent d45c280 commit 19e50f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions files.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<compilerflag value="-DGL_GLEXT_PROTOTYPES" if="android || rpi" />
<compilerflag value="-DHAVE_LIBC" />

<compilerflag value="-D__IPHONEOS__" if="ios" />
<compilerflag value="-D__IPHONEOS__" if="ios || tvos" />
<compilerflag value="-D__TVOS__" if="tvos" />

<section if="windows">

Expand Down Expand Up @@ -163,7 +164,7 @@

</section>

<section if="android || ios || windows || rpi" >
<section if="android || ios || windows || rpi || tvos" >

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

</section>

<section if="ios">
<section if="ios || tvos">

<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/audio/coreaudio/SDL_coreaudio.c" />
<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/file/cocoa/SDL_rwopsbundlesupport.m" />
Expand Down
3 changes: 2 additions & 1 deletion library.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

Expand All @@ -15,7 +16,7 @@
<set name="SLIBEXT" value=".a" unless="windows"/>
<set name="SHLIBEXT" value=".dll" if="windows"/>
<set name="SHLIBEXT" value=".so" unless="windows"/>
<set name="SHLIBEXT" value=".dylib" if="mac || ios"/>
<set name="SHLIBEXT" value=".dylib" if="mac || ios || tvos"/>
<!-- :todo: will use a define to control -debug appendage -->
<set name="DEBUGEXTRA" value="" />
<set name="DEBUGEXTRA" value="" if="native_toolkit_sdl_static"/>
Expand Down

0 comments on commit 19e50f4

Please sign in to comment.