summaryrefslogtreecommitdiff
path: root/platform/isim/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-06-22 09:00:04 +0200
committerRémi Verschelde <rverschelde@gmail.com>2016-06-23 07:41:54 +0200
commitdc8c14548833d6d1ffe209ecc37e442bc5259b3f (patch)
tree6f3286cc08faca367a04e828e4812bb7cba88a77 /platform/isim/detect.py
parent0a72f9ccb80baed0e21a5d7b25f717372e2e02a2 (diff)
iOS simulator: merge into iphone detect.py
Fixes #4489
Diffstat (limited to 'platform/isim/detect.py')
-rw-r--r--platform/isim/detect.py105
1 files changed, 0 insertions, 105 deletions
diff --git a/platform/isim/detect.py b/platform/isim/detect.py
deleted file mode 100644
index 809b0ac368..0000000000
--- a/platform/isim/detect.py
+++ /dev/null
@@ -1,105 +0,0 @@
-import os
-import sys
-
-
-def is_active():
- return False
-
-def get_name():
- return "iSIM"
-
-
-def can_build():
-
- import sys
- if sys.platform == 'darwin':
- return True
-
- return False
-
-def get_opts():
-
- return [
- ('ISIMPLATFORM', 'name of the iphone platform', 'iPhoneSimulator'),
- ('ISIMPATH', 'the path to iphone toolchain', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain'),
- ('ISIMSDK', 'path to the iphone SDK', '/Applications/Xcode.app/Contents/Developer/Platforms/${ISIMPLATFORM}.platform/Developer/SDKs/${ISIMPLATFORM}.sdk'),
- ('game_center', 'Support for game center', 'yes'),
- ('store_kit', 'Support for in-app store', 'yes'),
- ('ios_gles22_override', 'Force GLES2.0 on iOS', 'yes'),
- ('ios_GLES1_override', 'Force legacy GLES (1.1) on iOS', 'no'),
- ('ios_appirater', 'Enable Appirater', 'no'),
- ('ios_exceptions', 'Use exceptions when compiling on playbook', 'no'),
- ]
-
-def get_flags():
-
- return [
- ('tools', 'yes'),
- ('webp', 'yes'),
- ]
-
-
-
-def configure(env):
-
- env.Append(CPPPATH=['#platform/iphone'])
-
- env['ENV']['PATH'] = env['ISIMPATH']+"/Developer/usr/bin/:"+env['ENV']['PATH']
-
- env['CC'] = '$ISIMPATH/usr/bin/${ios_triple}clang'
- env['CXX'] = '$ISIMPATH/usr/bin/${ios_triple}clang++'
- env['AR'] = '$ISIMPATH/usr/bin/${ios_triple}ar'
- env['RANLIB'] = '$ISIMPATH/usr/bin/${ios_triple}ranlib'
-
- import string
- env['CCFLAGS'] = string.split('-arch i386 -fobjc-abi-version=2 -fobjc-legacy-dispatch -fmessage-length=0 -fpascal-strings -fasm-blocks -Wall -D__IPHONE_OS_VERSION_MIN_REQUIRED=40100 -isysroot $ISIMSDK -mios-simulator-version-min=4.3 -DCUSTOM_MATRIX_TRANSFORM_H=\\\"build/iphone/matrix4_iphone.h\\\" -DCUSTOM_VECTOR3_TRANSFORM_H=\\\"build/iphone/vector3_iphone.h\\\"')
-
- env.Append(LINKFLAGS=['-arch', 'i386',
- '-mios-simulator-version-min=4.3',
- '-isysroot', '$ISIMSDK',
- #'-mmacosx-version-min=10.6',
- '-Xlinker',
- '-objc_abi_version',
- '-Xlinker', '2',
- '-framework', 'AudioToolbox',
- '-framework', 'AVFoundation',
- '-framework', 'CoreAudio',
- '-framework', 'CoreGraphics',
- '-framework', 'CoreMedia',
- '-framework', 'Foundation',
- '-framework', 'Security',
- '-framework', 'UIKit',
- '-framework', 'MediaPlayer',
- '-framework', 'OpenGLES',
- '-framework', 'QuartzCore',
- '-framework', 'SystemConfiguration',
- '-F$ISIMSDK',
- ])
-
- env.Append(CPPPATH = ['$ISIMSDK/System/Library/Frameworks/OpenGLES.framework/Headers'])
-
- if (env["target"]=="release"):
-
- env.Append(CCFLAGS=['-O3', '-ffast-math'])
- env.Append(LINKFLAGS=['-O3', '-ffast-math'])
-
- elif (env["target"]=="debug"):
-
- env.Append(CCFLAGS=['-DDEBUG', '-D_DEBUG', '-gdwarf-2', '-Wall', '-O0', '-DDEBUG_ENABLED'])
- env.Append(CPPFLAGS=['-DDEBUG_MEMORY_ALLOC'])
-
- elif (env["target"]=="profile"):
-
- env.Append(CCFLAGS=['-g','-pg'])
- env.Append(LINKFLAGS=['-pg'])
-
-
- env['ENV']['MACOSX_DEPLOYMENT_TARGET'] = '10.6'
- env['ENV']['CODESIGN_ALLOCATE'] = '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate'
- env.Append(CPPFLAGS=['-DIPHONE_ENABLED', '-DUNIX_ENABLED', '-DGLES2_ENABLED', '-fexceptions'])
-
- import methods
- env.Append( BUILDERS = { 'GLSL120' : env.Builder(action = methods.build_legacygl_headers, suffix = 'glsl.h',src_suffix = '.glsl') } )
- env.Append( BUILDERS = { 'GLSL' : env.Builder(action = methods.build_glsl_headers, suffix = 'glsl.h',src_suffix = '.glsl') } )
- env.Append( BUILDERS = { 'GLSL120GLES' : env.Builder(action = methods.build_gles2_headers, suffix = 'glsl.h',src_suffix = '.glsl') } )
-