// iOS, 386 simulator and armv7a, compiled to fat static lib\r
BuildTarget ios = new BuildTarget(TargetOs.IOS, false, new String[] {"**/*.c"}, new String[0],\r
new String[] {"**/*.cpp"}, new String[0], new String[0], "",\r
- "-c -Wall -O2",\r
- "-c -Wall -O2",\r
+ "-c -Wall -O2 -miphoneos-version-min=5.1",\r
+ "-c -Wall -O2 -miphoneos-version-min=5.1",\r
"rcs");\r
return ios;\r
}\r
\r
<!-- define gcc compiler, options and files to compile -->\r
<property name="gcc" value="${compilerPrefix}gcc"/> \r
- <property name="gcc-opts" value="-c -Wall -O2"/>\r
+ <property name="gcc-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1"/>\r
<fileset id="gcc-files" dir="./">\r
<exclude name="target/"/> \r
<include name="memcpy_wrap.c"/>
\r
<!-- define g++ compiler, options and files to compile -->\r
<property name="g++" value="${compilerPrefix}g++"/>\r
- <property name="g++-opts" value="-c -Wall -O2"/>\r
+ <property name="g++-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1"/>\r
<fileset id="g++-files" dir="./">\r
<exclude name="target/"/>\r
<include name="**/*.cpp"/>
+#ifdef __APPLE__
+#include <TargetConditionals.h>
#ifdef TARGET_OS_IPHONE
-#include <iosgles20.h>
+#include <iosgl/iosgl20.h>
#include <OpenGLES/ES2/gl.h>
#include <OpenGLES/ES2/glext.h>
#include <stdio.h>
glViewport( x, y, width, height );
}
#endif
+#endif