little fix to premakefile
13
premake5.lua
|
@ -17,7 +17,7 @@ newoption {
|
||||||
}
|
}
|
||||||
|
|
||||||
newoption {
|
newoption {
|
||||||
trigger = "glfwdir",
|
trigger = "glfwdir64",
|
||||||
value = "PATH",
|
value = "PATH",
|
||||||
description = "Directory of glfw",
|
description = "Directory of glfw",
|
||||||
default = "../glfw-3.3.2.bin.WIN64",
|
default = "../glfw-3.3.2.bin.WIN64",
|
||||||
|
@ -94,8 +94,11 @@ workspace "librw"
|
||||||
filter { "platforms:win*gl3" }
|
filter { "platforms:win*gl3" }
|
||||||
defines { "GLEW_STATIC" }
|
defines { "GLEW_STATIC" }
|
||||||
includedirs { path.join(_OPTIONS["glewdir"], "include") }
|
includedirs { path.join(_OPTIONS["glewdir"], "include") }
|
||||||
includedirs { path.join(_OPTIONS["glfwdir"], "include") }
|
|
||||||
includedirs { path.join(_OPTIONS["sdl2dir"], "include") }
|
includedirs { path.join(_OPTIONS["sdl2dir"], "include") }
|
||||||
|
filter { "platforms:win-x86-gl3" }
|
||||||
|
includedirs { path.join(_OPTIONS["glfwdir32"], "include") }
|
||||||
|
filter { "platforms:win-amd64-gl3" }
|
||||||
|
includedirs { path.join(_OPTIONS["glfwdir64"], "include") }
|
||||||
|
|
||||||
filter "action:vs*"
|
filter "action:vs*"
|
||||||
buildoptions { "/wd4996", "/wd4244" }
|
buildoptions { "/wd4996", "/wd4244" }
|
||||||
|
@ -141,7 +144,7 @@ function findlibs()
|
||||||
links { "glew32" }
|
links { "glew32" }
|
||||||
filter { "platforms:win-amd64-gl3" }
|
filter { "platforms:win-amd64-gl3" }
|
||||||
libdirs { path.join(_OPTIONS["glewdir"], "lib/Release/x64") }
|
libdirs { path.join(_OPTIONS["glewdir"], "lib/Release/x64") }
|
||||||
libdirs { path.join(_OPTIONS["glfwdir"], "lib-vc2015") }
|
libdirs { path.join(_OPTIONS["glfwdir64"], "lib-vc2015") }
|
||||||
libdirs { path.join(_OPTIONS["sdl2dir"], "lib/x64") }
|
libdirs { path.join(_OPTIONS["sdl2dir"], "lib/x64") }
|
||||||
filter { "platforms:win-x86-gl3" }
|
filter { "platforms:win-x86-gl3" }
|
||||||
libdirs { path.join(_OPTIONS["glewdir"], "lib/Release/Win32") }
|
libdirs { path.join(_OPTIONS["glewdir"], "lib/Release/Win32") }
|
||||||
|
@ -192,10 +195,10 @@ function vucode()
|
||||||
filter {}
|
filter {}
|
||||||
end
|
end
|
||||||
|
|
||||||
project "clumpview"
|
project "playground"
|
||||||
kind "WindowedApp"
|
kind "WindowedApp"
|
||||||
characterset ("MBCS")
|
characterset ("MBCS")
|
||||||
skeltool("clumpview")
|
skeltool("playground")
|
||||||
flags { "WinMain" }
|
flags { "WinMain" }
|
||||||
removeplatforms { "*null" }
|
removeplatforms { "*null" }
|
||||||
removeplatforms { "ps2" } -- for now
|
removeplatforms { "ps2" } -- for now
|
||||||
|
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 128 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |