From 84b499fdcb08fa6e9e22083943d2a4ef0b03ed34 Mon Sep 17 00:00:00 2001 From: Paul Cadman Date: Sun, 27 Oct 2024 12:40:30 +0000 Subject: [PATCH] Support configuration of Raylib Makefile variables Use the justfile parameter `raylib_extra_make_variables` to set Raylib Makefile parameters. For example use: ``` just raylib_extra_make_variables='USE_WAYLAND_DISPLAY=TRUE' build ``` to build Raylib with Wayland support. Co-authored-by: ayhon --- justfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/justfile b/justfile index dc748d5..70a2937 100644 --- a/justfile +++ b/justfile @@ -30,6 +30,11 @@ raylib_custom_cflags := raylib_config_flags + " " + raylib_os_custom_cflags # Raylib CC make paramter raylib_cc_parameter := if os() == "macos" { "/usr/bin/clang" } else { "gcc" } +# Raylib extra Makefile variables +# +# e.g add "USE_WAYLAND_DISPLAY=TRUE" to build Raylib with Wayland support. +raylib_extra_make_variables := "" + static_lib_path := join(justfile_directory(), "lib") raylib_src_path := join(justfile_directory(), "raylib-5.0", "src") resource_dir := join(justfile_directory(), "resources") @@ -71,6 +76,7 @@ build_raylib: PLATFORM=PLATFORM_DESKTOP \ RAYLIB_LIBTYPE=STATIC \ RAYLIB_RELEASE_PATH={{static_lib_path}} \ + {{raylib_extra_make_variables}} \ CUSTOM_CFLAGS="{{raylib_custom_cflags}}" fi