summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorKostadin Damyanov <maxmight@gmail.com>2015-10-17 15:41:01 +0300
committerKostadin Damyanov <maxmight@gmail.com>2015-10-17 15:41:01 +0300
commitc925fbce2da5925009d5f78183e017f9252af35f (patch)
treec97d8d03e93331b1ab4de6e715c6cc4663e22026 /platform
parent29caf2bb5be061cd1ab014cf938f2c71d0bd2663 (diff)
Haiku: fix build
Diffstat (limited to 'platform')
-rw-r--r--platform/haiku/detect.py19
-rw-r--r--platform/haiku/haiku_direct_window.h5
-rw-r--r--platform/haiku/os_haiku.h4
3 files changed, 14 insertions, 14 deletions
diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py
index 19fe2f79fb..b5fd550442 100644
--- a/platform/haiku/detect.py
+++ b/platform/haiku/detect.py
@@ -10,10 +10,10 @@ def get_name():
def can_build():
if (os.name != "posix"):
return False
-
+
if (sys.platform == "darwin"):
return False
-
+
return True
def get_opts():
@@ -34,13 +34,12 @@ def configure(env):
env["bits"]="64"
else:
env["bits"]="32"
-
+
env.Append(CPPPATH = ['#platform/haiku'])
-
- # TODO: add clang and try gcc2 too
- env["CC"] = "gcc-x86"
- env["CXX"] = "g++-x86"
-
+
+ env["CC"] = "gcc"
+ env["CXX"] = "g++"
+
if (env["target"]=="release"):
if (env["debug_release"]=="yes"):
env.Append(CCFLAGS=['-g2'])
@@ -50,12 +49,12 @@ def configure(env):
env.Append(CCFLAGS=['-O2','-ffast-math','-DDEBUG_ENABLED'])
elif (env["target"]=="debug"):
env.Append(CCFLAGS=['-g2', '-Wall','-DDEBUG_ENABLED','-DDEBUG_MEMORY_ENABLED'])
-
+
#env.Append(CCFLAGS=['-DFREETYPE_ENABLED'])
env.Append(CPPFLAGS = ['-DGLEW_ENABLED', '-DOPENGL_ENABLED', '-DMEDIA_KIT_ENABLED'])
env.Append(CPPFLAGS = ['-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DGLES_OVER_GL'])
env.Append(LIBS = ['be', 'game', 'media', 'network', 'bnetapi', 'z', 'GL', 'GLEW'])
-
+
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')})
diff --git a/platform/haiku/haiku_direct_window.h b/platform/haiku/haiku_direct_window.h
index 7b1fd851fa..f0398df505 100644
--- a/platform/haiku/haiku_direct_window.h
+++ b/platform/haiku/haiku_direct_window.h
@@ -4,15 +4,16 @@
#include <kernel/image.h> // needed for image_id
#include <DirectWindow.h>
-#include "os/input.h"
#include "core/os/os.h"
+#include "main/input_default.h"
+
#include "haiku_gl_view.h"
#define REDRAW_MSG 'rdrw'
#define LOCKGL_MSG 'glck'
#define UNLOCKGL_MSG 'ulck'
-class HaikuDirectWindow : public BDirectWindow
+class HaikuDirectWindow : public BDirectWindow
{
private:
unsigned int event_id;
diff --git a/platform/haiku/os_haiku.h b/platform/haiku/os_haiku.h
index 57b72df3cf..e1b0b86cf4 100644
--- a/platform/haiku/os_haiku.h
+++ b/platform/haiku/os_haiku.h
@@ -1,7 +1,6 @@
#ifndef OS_HAIKU_H
#define OS_HAIKU_H
-#include "os/input.h"
#include "drivers/unix/os_unix.h"
#include "servers/visual_server.h"
#include "servers/visual/rasterizer.h"
@@ -11,6 +10,7 @@
#include "servers/audio/sample_manager_sw.h"
#include "servers/spatial_sound/spatial_sound_server_sw.h"
#include "servers/spatial_sound_2d/spatial_sound_2d_server_sw.h"
+#include "main/input_default.h"
#include "audio_driver_media_kit.h"
#include "context_gl_haiku.h"
@@ -46,7 +46,7 @@ private:
protected:
virtual int get_video_driver_count() const;
- virtual const char* get_video_driver_name(int p_driver) const;
+ virtual const char* get_video_driver_name(int p_driver) const;
virtual VideoMode get_default_video_mode() const;
virtual void initialize(const VideoMode& p_desired, int p_video_driver, int p_audio_driver);