Skip to content

Commit 7389c74

Browse files
committed
LWJGL CI configuration
1 parent 23baae9 commit 7389c74

29 files changed

Lines changed: 579 additions & 370 deletions

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
* -text
12
*.bin binary diff=hex
3+
24
*.c eol=lf
35
*.cpp eol=lf
46
*.h eol=lf

.github/workflows/lwjgl.yml

Lines changed: 383 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/main.yml

Lines changed: 0 additions & 211 deletions
This file was deleted.

3rdparty/dear-imgui/imgui_demo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8090,6 +8090,9 @@ void ImGui::ShowAboutWindow(bool* p_open)
80908090
#ifdef __linux__
80918091
ImGui::Text("define: __linux__");
80928092
#endif
8093+
#ifdef __FreeBSD__
8094+
ImGui::Text("define: __FreeBSD__");
8095+
#endif
80938096
#ifdef __APPLE__
80948097
ImGui::Text("define: __APPLE__");
80958098
#endif

3rdparty/glsl-optimizer/src/mesa/main/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ extern "C" {
144144
* For now, only used by some DRI hardware drivers for color/texel packing.
145145
*/
146146
#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
147-
#if defined(__linux__)
147+
#if defined(__linux__) || defined(__FreeBSD__)
148148
#include <byteswap.h>
149149
#define CPU_TO_LE32( x ) bswap_32( x )
150150
#elif defined(__APPLE__)

3rdparty/renderdoc/renderdoc_app.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER)
3737
#define RENDERDOC_CC __cdecl
38-
#elif defined(__linux__)
38+
#elif defined(__linux__) || defined(__FreeBSD__)
3939
#define RENDERDOC_CC
4040
#elif defined(__APPLE__)
4141
#define RENDERDOC_CC

examples/common/entry/dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bool openFileSelectionDialog(
134134
char tmp[4096];
135135
bx::StaticMemoryBlockWriter writer(tmp, sizeof(tmp) );
136136

137-
#if BX_PLATFORM_LINUX
137+
#if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
138138
bx::write(&writer, &err
139139
, "--file-selection%s --title \"%.*s\" --filename \"%s\""
140140
, FileSelectionDialogType::Save == _type ? " --save" : ""

examples/common/entry/entry_glfw.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# error "GLFW 3.4 or later is required"
1515
#endif // GLFW_VERSION_*
1616

17-
#if BX_PLATFORM_LINUX
17+
#if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
1818
# define GLFW_EXPOSE_NATIVE_WAYLAND
1919
# define GLFW_EXPOSE_NATIVE_X11
2020
# define GLFW_EXPOSE_NATIVE_GLX
@@ -40,7 +40,7 @@ namespace entry
4040
{
4141
static void* glfwNativeWindowHandle(GLFWwindow* _window)
4242
{
43-
# if BX_PLATFORM_LINUX
43+
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
4444
if (GLFW_PLATFORM_WAYLAND == glfwGetPlatform() )
4545
{
4646
return glfwGetWaylandWindow(_window);
@@ -833,7 +833,7 @@ namespace entry
833833

834834
void* getNativeDisplayHandle()
835835
{
836-
# if BX_PLATFORM_LINUX
836+
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
837837
if (GLFW_PLATFORM_WAYLAND == glfwGetPlatform() )
838838
{
839839
return glfwGetWaylandDisplay();
@@ -847,7 +847,7 @@ namespace entry
847847

848848
bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType()
849849
{
850-
# if BX_PLATFORM_LINUX
850+
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
851851
if (GLFW_PLATFORM_WAYLAND == glfwGetPlatform() )
852852
{
853853
return bgfx::NativeWindowHandleType::Wayland;

examples/common/entry/entry_sdl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#if ENTRY_CONFIG_USE_SDL
99

10-
#if BX_PLATFORM_LINUX
10+
#if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
1111
#elif BX_PLATFORM_WINDOWS
1212
# define SDL_MAIN_HANDLED
1313
#endif
@@ -45,7 +45,7 @@ namespace entry
4545
return NULL;
4646
}
4747

48-
# if BX_PLATFORM_LINUX
48+
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
4949
if (wmi.subsystem == SDL_SYSWM_WAYLAND)
5050
{
5151
return (void*)wmi.info.wl.surface;
@@ -1036,7 +1036,7 @@ namespace entry
10361036
{
10371037
return NULL;
10381038
}
1039-
# if BX_PLATFORM_LINUX
1039+
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
10401040
if (wmi.subsystem == SDL_SYSWM_WAYLAND)
10411041
return wmi.info.wl.display;
10421042
else
@@ -1054,7 +1054,7 @@ namespace entry
10541054
{
10551055
return bgfx::NativeWindowHandleType::Default;
10561056
}
1057-
# if BX_PLATFORM_LINUX
1057+
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
10581058
if (wmi.subsystem == SDL_SYSWM_WAYLAND)
10591059
{
10601060
return bgfx::NativeWindowHandleType::Wayland;

examples/common/entry/entry_x11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include "entry_p.h"
77

8-
#if ENTRY_CONFIG_USE_NATIVE && (BX_PLATFORM_LINUX || BX_PLATFORM_RPI)
8+
#if ENTRY_CONFIG_USE_NATIVE && (BX_PLATFORM_LINUX || BX_PLATFORM_BSD || BX_PLATFORM_RPI)
99

1010
#define XK_MISCELLANY
1111
#define XK_LATIN1

0 commit comments

Comments
 (0)