diff options
| author | Kostadin Damyanov | 2015-05-24 23:22:51 +0300 |
|---|---|---|
| committer | Kostadin Damyanov | 2015-05-24 23:22:51 +0300 |
| commit | 4a56f72f5be6cd34c96a082e3697f4eecd744e75 (patch) | |
| tree | 92957fb8dc1d813427274fba90e2b8eb840683f5 /platform/haiku/detect.py | |
| parent | f8f3362cab16ddfbc1d954ecadbccd4838200769 (diff) | |
| download | godot-4a56f72f5be6cd34c96a082e3697f4eecd744e75.tar.gz godot-4a56f72f5be6cd34c96a082e3697f4eecd744e75.tar.zst godot-4a56f72f5be6cd34c96a082e3697f4eecd744e75.zip | |
Diffstat (limited to 'platform/haiku/detect.py')
| -rw-r--r-- | platform/haiku/detect.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py new file mode 100644 index 000000000..992c73ee7 --- /dev/null +++ b/platform/haiku/detect.py @@ -0,0 +1,42 @@ +import os +import sys + +def is_active(): + return True + +def get_name(): + return "Haiku" + +def can_build(): + if (os.name != "posix"): + return False + + if (sys.platform == "darwin"): + return False + + return True + +def get_opts(): + return [] + +def get_flags(): + return [ + ('builtin_zlib', 'no') + ] + +def configure(env): + is64=sys.maxsize > 2**32 + + if (env["bits"]=="default"): + if (is64): + env["bits"]="64" + else: + env["bits"]="32" + + env.Append(CPPPATH = ['#platform/haiku']) + env["CC"] = "gcc-x86" + env["CXX"] = "g++-x86" + env.Append(CPPFLAGS = ['-DDEBUG_METHODS_ENABLED']) + + env.Append(CPPFLAGS = ['-DUNIX_ENABLED']) + #env.Append(LIBS = ['be']) |
