summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-12-28 18:14:39 +0100
committerraysan5 <[email protected]>2017-12-28 18:14:39 +0100
commit7965f983baa91afa7ac8019574a14e4814c91cf2 (patch)
treef2f4988087fb87cde15728d6ecadec9dd86e4a41 /src/Makefile
parentb19e155b3419b50bd546632f9b77793bc95824d1 (diff)
downloadraylib-7965f983baa91afa7ac8019574a14e4814c91cf2.tar.gz
raylib-7965f983baa91afa7ac8019574a14e4814c91cf2.zip
Support Wayland display on Linux desktop
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index de9a639e..2ee9f909 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -54,12 +54,16 @@ RAYLIB_LIBTYPE ?= STATIC
# NOTE: Some programs like tools could not require audio support
INCLUDE_AUDIO_MODULE ?= TRUE
-# Force OpenAL Soft backend for audio
+# Use OpenAL Soft backend for audio
USE_OPENAL_BACKEND ?= FALSE
# Use external GLFW library instead of rglfw module
USE_EXTERNAL_GLFW ?= FALSE
+# Use Wayland display server protocol on Linux desktop
+# by default it uses X11 windowing system
+USE_WAYLAND_DISPLAY ?= FALSE
+
# OpenAL Soft audio backend forced on HTML5 and OSX (see below)
ifeq ($(PLATFORM),PLATFORM_WEB)
USE_OPENAL_BACKEND = TRUE
@@ -287,10 +291,20 @@ ifeq ($(RAYLIB_LIBTYPE),SHARED)
CFLAGS += -fPIC -DBUILD_LIBTYPE_SHARED
endif
+# Use OpenAL Soft backend instead of mini_al
ifeq ($(USE_OPENAL_BACKEND),TRUE)
CFLAGS += -DUSE_OPENAL_BACKEND
endif
+# Use Wayland display on Linux desktop
+ifeq ($(PLATFORM),PLATFORM_DESKTOP)
+ ifeq ($(PLATFORM_OS), LINUX)
+ ifeq ($(USE_WAYLAND_DISPLAY),TRUE)
+ CFLAGS += -D_GLFW_WAYLAND
+ endif
+ endif
+endif
+
# Define include paths for required headers
# NOTE: Several external required libraries (stb and others)
INCLUDE_PATHS = -I. -Iexternal -Iexternal/glfw/include