diff options
| author | Rémi Verschelde | 2016-10-30 19:05:14 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2016-11-01 00:35:16 +0100 |
| commit | 817dd7ccbb166b27c93706dffc5c0c0d59fd87f8 (patch) | |
| tree | 3fddab3a6a9712c5eda14b262523ff186a90c9e9 /platform/osx/detect.py | |
| parent | d4c17700aa2f36f69978beda04e42ff2749de270 (diff) | |
| download | godot-817dd7ccbb166b27c93706dffc5c0c0d59fd87f8.tar.gz godot-817dd7ccbb166b27c93706dffc5c0c0d59fd87f8.tar.zst godot-817dd7ccbb166b27c93706dffc5c0c0d59fd87f8.zip | |
Diffstat (limited to 'platform/osx/detect.py')
| -rw-r--r-- | platform/osx/detect.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index ddb27742a..9191f1aab 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -6,17 +6,19 @@ import sys def is_active(): return True + def get_name(): return "OSX" + def can_build(): if (sys.platform == "darwin" or os.environ.has_key("OSXCROSS_ROOT")): return True - return False + def get_opts(): return [ @@ -25,13 +27,13 @@ def get_opts(): ] + def get_flags(): return [ ] - def configure(env): env.Append(CPPPATH=['#platform/osx']) @@ -51,8 +53,6 @@ def configure(env): env.Append(CCFLAGS=['-g3', '-Wall', '-DDEBUG_ENABLED', '-DDEBUG_MEMORY_ENABLED']) - - if (not os.environ.has_key("OSXCROSS_ROOT")): # regular native build if (env["bits"] == "64"): @@ -72,14 +72,12 @@ def configure(env): else: basecmd = root + "/target/bin/i386-apple-" + env["osxcross_sdk"] + "-" - env['CC'] = basecmd + "cc" env['CXX'] = basecmd + "c++" env['AR'] = basecmd + "ar" env['RANLIB'] = basecmd + "ranlib" env['AS'] = basecmd + "as" - env.Append(CPPFLAGS=["-DAPPLE_STYLE_KEYS"]) env.Append(CPPFLAGS=['-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DOSX_ENABLED']) env.Append(LIBS=['pthread']) |
