Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Anut-py authored Oct 12, 2023
1 parent 7974163 commit c28ce36
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions h-raylib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ flag platform-bsd
manual: True

flag platform-nixos
description: Use external GLFW
description: Build for Nix (use external GLFW)
default: False
manual: True

Expand Down Expand Up @@ -239,23 +239,20 @@ library

-- Unsupported OS, do nothing. If you can get it working on an
-- OS that isn't on here, please add it here.
c-sources:
lib/rl_bindings.c
lib/rl_internal.c
lib/rlgl_bindings.c

if (!flag(platform-nixos))
c-sources:
lib/rl_bindings.c
lib/rl_internal.c
lib/rlgl_bindings.c
raylib/src/raudio.c
raylib/src/rcore.c
raylib/src/rmodels.c
raylib/src/rshapes.c
raylib/src/rtext.c
raylib/src/rtextures.c
raylib/src/utils.c
elif (flag(platform-nixos))
c-sources:
lib/rl_bindings.c
lib/rl_internal.c
lib/rlgl_bindings.c

if (flag(platform-mac) || (flag(detect-platform) && os(osx)))
-- Use rgflw.m instead of .c on Mac to force objective-c
Expand All @@ -264,18 +261,16 @@ library
elif (flag(ghci) && (flag(platform-windows) || (flag(detect-platform) && os(windows))))
c-sources: lib/glfw_patch/rglfw_patch.c

elif (flag(platform-nixos))

else
elif (!flag(platform-nixos))
c-sources: raylib/src/rglfw.c

if flag(ghci)
cpp-options: -DGHCI

if (flag(platform-nixos))
include-dirs:
lib
else
include-dirs:
lib

if (!flag(platform-nixos))
include-dirs:
lib raylib/src raylib/src/external/glfw/src
raylib/src raylib/src/external/glfw/src
raylib/src/external/glfw/include

0 comments on commit c28ce36

Please sign in to comment.