Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This project uses C++0x so prevent certain project files from being created.
- if _ACTION == "vs2002" or _ACTION == "vs2003" or _ACTION == "vs2005" or _ACTION == "xcode3" then
- error("This application requires a compiler that can support C++0x.")
- end
- -- This was used when premake didn't support VS2010. When converting a VS2008 project
- -- to VS2010 Express, it would fail because VS2010 Express doesn't support x64.
- -- Premake supports VS2010 now, so this is deprecated.
- newoption {
- trigger = "no-64bit",
- description = "Don't add the 64-bit project configuration."
- }
- solution "rha"
- configurations { "Debug", "Release" }
- platforms { "native", "x32" }
- if not _OPTIONS["no-64bit"] then platforms { "x64" } end
- flags { "Symbols", "Unicode" }
- project "rha"
- kind "ConsoleApp"
- -- kind "WindowedApp"
- language "C++"
- location "projects"
- targetdir "../bin"
- files { "../common/**", "../client/**" }
- includedirs { "../client" }
- includedirs { "../client/irrlicht", "../client/script" }
- includedirs { "../common" }
- includedirs { "../common/Script", "../common/Script/irrlicht" }
- -- Dependencies.
- files { "../dependencies/bzip2/**" }
- files { "../dependencies/zlib/**" }
- files { "../dependencies/angelscript/**" }
- files { "../dependencies/libvorbisidec/**" }
- files { "../dependencies/cAudio/**" }
- files { "../dependencies/box2d/**" }
- includedirs { "../dependencies/bzip2" }
- includedirs { "../dependencies/zlib" }
- includedirs { "../dependencies/angelscript/include" }
- includedirs { "../dependencies/freetype2/include" }
- includedirs { "../dependencies/libvorbisidec" }
- includedirs { "../dependencies/cAudio/include" }
- includedirs { "../dependencies/openal/include" }
- includedirs { "../dependencies/box2d" }
- defines { "LIBOGG_EXPORTS", "CAUDIO_STATIC_LIB" }
- -- Libraries.
- links { "Irrlicht", "freetype" }
- links { "OpenAL32" }
- --links { "cAudio", "OpenAL32" }
- -- Enable C++0x on Linux.
- -- Assumes GCC usage on these platforms.
- configuration { "linux or bsd or solaris" }
- buildoptions { "-std=c++0x" }
- -- Per-platform libraries.
- configuration "windows"
- links { "ws2_32" }
- configuration { "linux or macosx or bsd or solaris" }
- links { "GL", "Xxf86vm", "boost_filesystem", "boost_thread" }
- -- Library directories.
- configuration { "windows", "native" }
- libdirs { "../dependencies/openal/lib/win32" }
- libdirs { "../dependencies/freetype2/lib/win32" }
- configuration { "windows", "x32" }
- libdirs { "../dependencies/openal/lib/win32" }
- libdirs { "../dependencies/freetype2/lib/win32" }
- if not _OPTIONS["no-64bit"] then
- configuration { "windows", "x64" }
- libdirs { "../dependencies/openal/lib/win64" }
- libdirs { "../dependencies/freetype2/lib/win64" }
- end
- -- Windows defines.
- configuration "windows"
- defines { "WIN32", "_WIN32" }
- if not _OPTIONS["no-64bit"] then
- configuration { "windows", "x64" }
- defines { "WIN64", "_WIN64" }
- end
- -- Debug options.
- configuration "Debug"
- defines { "DEBUG" }
- targetsuffix "_d"
- flags { "NoEditAndContinue" }
- -- Release options.
- configuration "Release"
- defines { "NDEBUG" }
- flags { "OptimizeSpeed" }
- project "rha_server"
- kind "ConsoleApp"
- language "C++"
- location "projects"
- targetdir "../bin_server"
- files { "../common/**" }
- files { "../server/include/**.h", "../server/src/**.cpp" }
- files { "../server/script/**" }
- includedirs { "../server/include" }
- --includedirs { "../server/script", "../server/script/irrlicht" }
- includedirs { "../common/Script", "../common/Script/irrlicht" }
- -- Dependencies.
- files { "../dependencies/bzip2/**" }
- files { "../dependencies/zlib/**" }
- files { "../dependencies/angelscript/**" }
- files { "../dependencies/box2d/**" }
- includedirs { "../dependencies/bzip2" }
- includedirs { "../dependencies/zlib" }
- includedirs { "../dependencies/angelscript/include" }
- includedirs { "../dependencies/box2d" }
- -- Libraries.
- links { "Irrlicht" }
- -- Per-platform libraries.
- configuration "windows"
- links { "ws2_32" }
- configuration { "linux or bsd or solaris" }
- links { "boost_thread", "boost_filesystem" }
- -- Windows defines.
- configuration "windows"
- defines { "_WIN32" }
- if not _OPTIONS["no-64bit"] then
- configuration { "windows", "x64" }
- defines { "_WIN64" }
- end
- -- Debug options.
- configuration "Debug"
- defines { "DEBUG" }
- targetsuffix "_d"
- -- Release options.
- configuration "Release"
- defines { "NDEBUG" }
- flags { "OptimizeSpeed" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement