-
Notifications
You must be signed in to change notification settings - Fork 9
/
premake5.lua
34 lines (30 loc) · 877 Bytes
/
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
name = "osgw"
workspace (name)
language "C++"
location "build"
warnings "Extra"
cppdialect "C++14"
configurations {"Debug", "Release"}
filter {"configurations:Debug"}
defines {"DEBUG"}
optimize "Off"
symbols "On"
filter {"configurations:Release"}
defines {"RELEASE"}
optimize "Speed"
symbols "Off"
project (name)
targetdir "bin"
kind "WindowedApp"
files {"src/main.cc"}
files {"src/"..name.."/**.cc"}
includedirs {"foreign/include"}
includedirs {"include"}
filter {"system:windows"}
links {"png"}
links {"glew32", "glfw3", "opengl32"}
buildoptions {"-static -static-libgcc -static-libstdc++",
"-mwindows", "-mconsole"}
filter {"system:linux or bsd or macosx"}
links {"GLEW", "glfw", "GL"}
links {"png"}