Commit 1d615fa1 authored by mercury233's avatar mercury233

update premake

parent ffbcbaab
...@@ -7,6 +7,9 @@ solution "ygo" ...@@ -7,6 +7,9 @@ solution "ygo"
configuration "windows" configuration "windows"
defines { "WIN32", "_WIN32", "WINVER=0x0501" } defines { "WIN32", "_WIN32", "WINVER=0x0501" }
libdirs { "$(DXSDK_DIR)Lib/x86" }
entrypoint "mainCRTStartup"
startproject "ygopro"
configuration "bsd" configuration "bsd"
defines { "LUA_USE_POSIX" } defines { "LUA_USE_POSIX" }
...@@ -15,7 +18,7 @@ solution "ygo" ...@@ -15,7 +18,7 @@ solution "ygo"
configuration "macosx" configuration "macosx"
defines { "LUA_USE_MACOSX" } defines { "LUA_USE_MACOSX" }
includedirs { "/usr/local/include/*" } includedirs { "/usr/local/include", "/usr/local/include/*" }
libdirs { "/usr/local/lib", "/usr/X11/lib" } libdirs { "/usr/local/lib", "/usr/X11/lib" }
buildoptions { "-stdlib=libc++" } buildoptions { "-stdlib=libc++" }
links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" } links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" }
...@@ -24,7 +27,7 @@ solution "ygo" ...@@ -24,7 +27,7 @@ solution "ygo"
defines { "LUA_USE_LINUX" } defines { "LUA_USE_LINUX" }
configuration "Release" configuration "Release"
flags { "OptimizeSpeed" } optimize "Speed"
targetdir "bin/release" targetdir "bin/release"
configuration "Debug" configuration "Debug"
...@@ -43,9 +46,10 @@ solution "ygo" ...@@ -43,9 +46,10 @@ solution "ygo"
configuration { "Debug", "vs*" } configuration { "Debug", "vs*" }
defines { "_ITERATOR_DEBUG_LEVEL=0" } defines { "_ITERATOR_DEBUG_LEVEL=0" }
disablewarnings { "4819" }
configuration "vs*" configuration "vs*"
flags "EnableSSE2" vectorextensions "SSE2"
defines { "_CRT_SECURE_NO_WARNINGS" } defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "not vs*" configuration "not vs*"
...@@ -54,11 +58,9 @@ solution "ygo" ...@@ -54,11 +58,9 @@ solution "ygo"
configuration {"not vs*", "windows"} configuration {"not vs*", "windows"}
buildoptions { "-static-libgcc" } buildoptions { "-static-libgcc" }
startproject "ygopro"
include "ocgcore" include "ocgcore"
include "gframe" include "gframe"
if os.is("windows") then if os.ishost("windows") then
include "event" include "event"
include "freetype" include "freetype"
include "irrlicht" include "irrlicht"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment