# This is the global system configuration file for Marmalade applications.
# This file is automatically included in all application deployments and
# used when debugging an x86 build.
#
# Most of the settings in this are per-device configuration setting for the
# S3E loader.  These settings are almost all in the [S3E] section, with
# a few under [GL].

[S3E]
#Always have heap 6 waiting as a "direct to OS" heap
MemSize6=0
MemFlags6=OS_DIRECT

{OS=WINDOWS}
#SysStackSwitch=1
[GL]
#Shader compilation settings to create WP8 binaries
PreCompileShaderBinariesToolPath="angle_dx11/compiletool.exe"
PreCompileShaderBinariesOutputDir="shader_bin_wp8"
#PreCompileShaderBinaries=1

#Shader compilation settings to create WIN8 binaries
#PreCompileShaderBinariesToolPath="angle_dx11/win8/compiletool.exe"
#PreCompileShaderBinariesOutputDir="shader_bin_win8"
#PreCompileShaderBinaries=1
#PreCompileShaderBinariesPlatform="WIN8"

PreCompileShaderBinariesVertexArgs="vertex <sourceFile> output <outputFile>"
PreCompileShaderBinariesPixelArgs ="pixel  <sourceFile> output <outputFile>"
PreCompileShaderBinariesFormat=0x93B0 #The GLenum GL_SHADER_BINARY_ANGLE_DX11 in gl2ext.h

{OS=WP8}
[GL]
LoadPreCompiledShaderBinaries=1
PreCompileShaderBinariesOutputDir="shader_bin_wp8"
EGLTerminateOnSuspend=1
[S3E]
SysGlesSuspendWithApp=1

{OS=WS8}
[GL]
LoadPreCompiledShaderBinaries=1
PreCompileShaderBinariesOutputDir="shader_bin_win8"
EGLTerminateOnSuspend=1
[S3E]
SysGlesSuspendWithApp=1

{OS=WS81}
[GL]
LoadPreCompiledShaderBinaries=0
PreCompileShaderBinariesOutputDir="shader_bin_win8"
EGLTerminateOnSuspend=1
[S3E]
SysGlesSuspendWithApp=1
WindowsDispScaleFactor="native"

{OS=WP81}
[GL]
LoadPreCompiledShaderBinaries=0
PreCompileShaderBinariesOutputDir="shader_bin_win8"
EGLTerminateOnSuspend=1
[S3E]
SysGlesSuspendWithApp=1
WindowsDispScaleFactor="native"

{OS=WIN10}
[GL]
LoadPreCompiledShaderBinaries=0
PreCompileShaderBinariesOutputDir="shader_bin_win8"
EGLTerminateOnSuspend=1
[S3E]
SysGlesSuspendWithApp=1
WindowsDispScaleFactor="native"

{OS=QNX}
[GL]
EGL_RED_SIZE=8
EGL_BLUE_SIZE=8
EGL_GREEN_SIZE=8
EGL_ALPHA_SIZE=8
AlphaInFrameBuffer=1
[S3E]

{OS=LINUX}
[GL]
EGL_DEPTH_SIZE=24
[S3E]

{ID=ANDROID "Emulator"}
DisableSound=1

{ID=ANDROID "HTC Dream", "T-Mobile G1", "HTC Magic", "T-Mobile myTouch 3G", "HTC Hero", "T-Mobile G2 Touch" }
AndroidPointEventWaitTime=16

{ID=ANDROID "SHW-M290K"}
KeyHasDirnKeys=0

{ID=ANDROID "HTC Hero", "T-Mobile G2 Touch" }
AndroidPointMultiEnable=1

{ID=ANDROID "Eris" }
AndroidPointMultiEnable=1

{ID=ANDROID "Nexus One"}
WinMobAudioSupportAAC=0
WinMobAudioSupportAACPLUS=0
WinMobAudioSupportMP4=1
AndroidKeyHasBackLeft=1
PointCapTouchArea=1

{ID=ANDROID "Nexus S"}
AndroidKeyHasBackLeft=1

{ID=ANDROID "SKY IM-A630K"}
KeyHasDirnKeys=0

{ID=ANDROID "Galaxy I7500"}
KeyHasDirnKeys=1

{ID=ANDROID "Droid", "Milestone"}
[GX]
GlesDepthBuffFixedPoint=1
[S3E]
AndroidIgnoreResizeWhilePaused=1
AndroidKeyHasBackLeft=1

{ID=ANDROID "DROID2"}
[GX]
GlesDepthBuffFixedPoint=1
[S3E]

{OS=ANDROID}
[GL]
EGL_DEPTH_SIZE=16
EGLTerminateOnSuspend=1
[S3E]
SysGlesSuspendWithApp=0
MemUseMMapForCode=1

{OS=TIZEN}
[S3E]
TizenUseEGLPixmapRender=1

{OS=TIZEN_X86}
[GL]
AlphaInFrameBuffer=1
[GX]
# Fix for Tizen simulator, exceeding GL_MAX_TEXTURE_UNITS supported by IwGL
MaxTextureStages=32
UploadStreams=0
[S3E]
TizenUseEGLPixmapRender=0

# OSX
{OS=OSX}
[GX]
Transform=HW
[S3E]
SurfUseGles=1

{OS=ROKU}
[S3E]
SurfUseGles=1
PointCapTouchArea=1
[GL]
# GLES2 Driver work around
MergeShaderStringArrays=1
AlphaInFrameBuffer=1
{}

{OS=NACL}
[GX]
GLErrorChecking=0


{}

{OS=TVOS}
[S3E]
PointCapTouchArea=1
{}

# Must reset before end of file
{ID=ANY}
{CLASS=ANY}

[TRACE]
IWCRT_VERBOSE=0
PTHREAD_VERBOSE=0
PTHREAD_VVERBOSE=0
# -- END S3E.ICF --
