-
Notifications
You must be signed in to change notification settings - Fork 3
/
dub.sdl
31 lines (24 loc) · 1.38 KB
/
dub.sdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name "dray"
description "raylib bindings for dlang"
authors "redthing1"
copyright "Copyright (c) 2013-2020 Ramon Santamaria (@raysan5), Copyright © 2020, redthing1"
license "apache-2.0"
dependency "fluent-asserts" version="~>0.13.3"
targetType "library"
lflags "$PACKAGE_DIR/raylib.lib" "$PACKAGE_DIR/glfw3_mt.lib" "WinMM.lib" "OLDNAMES.lib" "MSVCRT.lib" "user32.lib" "gdi32.lib" platform="windows"
lflags "-lglew" "-lglfw" "-framework" "OpenGL" "-L/opt/homebrew/lib" "-L$PACKAGE_DIR" "$PACKAGE_DIR/libraylib.a" platform="osx"
lflags "-L$PACKAGE_DIR" "$PACKAGE_DIR/libraylib.a" platform="linux"
preGenerateCommands "bash $PACKAGE_DIR/clib.sh prepare" platform="posix"
preGenerateCommands "powershell -File $PACKAGE_DIR/clib.ps1 prepare" platform="windows"
configuration "desktop-gl33" {
preBuildCommands "bash $PACKAGE_DIR/clib.sh build PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_33" platform="posix"
}
configuration "desktop-gl21" {
preBuildCommands "bash $PACKAGE_DIR/clib.sh build PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_21" platform="posix"
}
configuration "desktop-gles2" {
preBuildCommands "bash $PACKAGE_DIR/clib.sh build PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_ES2" platform="posix"
}
configuration "drm-gles2" {
preBuildCommands "bash $PACKAGE_DIR/clib.sh build PLATFORM=PLATFORM_DRM GRAPHICS=GRAPHICS_API_OPENGL_ES2" platform="posix"
}