Added BX_PLATFORM_QNX.

This commit is contained in:
bkaradzic 2013-04-12 23:43:46 -07:00
parent d936a29ea6
commit ab05bc6974
6 changed files with 14 additions and 4 deletions

View File

@ -13,6 +13,7 @@ all:
premake4 --file=premake/premake4.lua --gcc=linux gmake
premake4 --file=premake/premake4.lua --gcc=emscripten gmake
premake4 --file=premake/premake4.lua --gcc=osx gmake
premake4 --file=premake/premake4.lua --gcc=qnx-arm gmake
premake4 --file=premake/premake4.lua xcode4
make -s --no-print-directory -C src
@ -78,6 +79,12 @@ osx-release64:
make -C .build/projects/gmake-osx config=release64
osx: osx-debug32 osx-release32 osx-debug64 osx-release64
qnx-arm-debug32:
make -C .build/projects/gmake-osx config=debug32
qnx-arm-release32:
make -C .build/projects/gmake-osx config=release32
qnx-arm: qnx-arm-debug32 qnx-arm-release32
rebuild-shaders:
make -C examples rebuild

View File

@ -25,12 +25,12 @@ project "bgfx"
"$(DXSDK_DIR)/include",
}
configuration { "macosx" }
configuration { "osx" }
files {
BGFX_DIR .. "src/**.mm",
}
configuration { "not nacl" }
configuration { "(not nacl*) and (not qnx*)" }
includedirs {
--nacl has GLES2 headers modified...
BGFX_DIR .. "3rdparty/glext",

View File

@ -81,7 +81,7 @@ function exampleProject(_name, _uuid)
"pthread",
}
configuration { "macosx" }
configuration { "osx" }
files {
BGFX_DIR .. "examples/common/**.mm",
}

View File

@ -39,6 +39,7 @@
| BX_PLATFORM_NACL \
| BX_PLATFORM_ANDROID \
| BX_PLATFORM_IOS \
| BX_PLATFORM_QNX \
)
# endif // BGFX_CONFIG_RENDERER_OPENGLES2

View File

@ -162,6 +162,7 @@ namespace bgfx
}
}
#if BGFX_CONFIG_RENDERER_OPENGL
static void APIENTRY debugProcCb(GLenum _source, GLenum _type, GLuint _id, GLenum _severity, GLsizei /*_length*/, const GLchar* _message, GLvoid* /*_userParam*/)
{
BX_TRACE("src %d, type %d, id %d, severity %d, '%s'"
@ -172,6 +173,7 @@ namespace bgfx
, _message
);
}
#endif // BGFX_CONFIG_RENDERER_OPENGL
struct RendererContext
{

View File

@ -86,7 +86,7 @@
# include <GLES3/gl3ext.h>
# endif // BGFX_CONFIG_RENDERER_
# if BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_WINDOWS
# if BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_WINDOWS || BX_PLATFORM_QNX
# undef BGFX_USE_EGL
# define BGFX_USE_EGL 1
# include "glcontext_egl.h"