Skip to content

Commit

Permalink
Merge pull request #43 from paulcadman/configure-raylib-makefile-vars
Browse files Browse the repository at this point in the history
Support configuration of Raylib Makefile variables
  • Loading branch information
paulcadman authored Oct 27, 2024
2 parents 0fc350a + 84b499f commit 39e30d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 39e30d9

Please sign in to comment.