-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
27 lines (24 loc) · 821 Bytes
/
premake5.lua
File metadata and controls
27 lines (24 loc) · 821 Bytes
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
workspace("romanesco")
configurations({"Debug", "Release"})
project("romanesco")
kind("ConsoleApp")
language("C")
targetdir(".")
files({"source/**.c", "include/**.h"})
if os.istarget("linux") or os.istarget("macosx") then
print("Os: LINUX or MACOSX")
architecture("x86_64")
-- Glew is only compiled from source on windows because its easier
removefiles({"source/glew.c"})
includedirs({"include", "/usr/include"})
buildoptions({"-Wall", "-Werror"})
links({"m" , "GLEW", "SDL2", "GLU", "GL", "glut"})
end
if os.istarget("windows") then
print("Os: WINDOWS")
system("Windows")
architecture("x86_64")
includedirs({"%(ProjectDir)include", "%(ProjectDir)windows/SDL2/include", "%(ProjectDir)windows/GLEW/include"})
libdirs("%(ProjectDir)windows/SDL2/lib/x64/");
links({"SDL2", "SDL2main", "opengl32"});
end