-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
50 lines (44 loc) · 1.18 KB
/
premake5.lua
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
workspace("barberdule")
configurations({ "Debug", "Release" })
platforms({ "Win64", "Linux" })
project("barberdule")
kind("ConsoleApp")
language("C")
targetdir("build/bin/%{cfg.system}-%{cfg.buildcfg}")
files({ "src/**.h", "src/**.c" })
includedirs({ "deps/raygui/src/", "deps/raylib-linux/include/" })
libdirs({ "deps/raylib-linux/lib" })
links({ "raylib" })
filter("configurations:Debug")
defines({ "DEBUG" })
symbols("On")
filter("configurations:Release")
defines({ "NDEBUG" })
optimize("On")
filter("platforms:Linux")
system("linux")
architecture("x86_64")
links({
"raylib",
"pthread",
"dl",
"m",
"rt",
"GL",
"X11",
"Xrandr", -- Dependencias adicionales necesarias
"Xinerama", -- para X11 y OpenGL
"Xi",
"Xxf86vm",
"Xcursor",
"raylib",
})
linkoptions({ "-static-libgcc" }) -- Quitar "-static" si prefieres bibliotecas dinámicas.
filter("platforms:Win64")
system("windows")
architecture("x86_64")
includedirs({ "C:/msys64/mingw64/include/glib-2.0", "C:/msys64/mingw64/lib/glib-2.0/glib/" })
includedirs({ "C:/msys64/mingw64/lib/glib-2.0/include" })
libdirs({ "C:/msys64/mingw64/lib" })
links({ "winmm", "kernel32", "opengl32", "gdi32", "glib-2.0" })
linkoptions({ "-static-libgcc" })