From 242bd48378b3c1386f0d8f866ac6301d38d3913d Mon Sep 17 00:00:00 2001 From: Damien Courtois Date: Mon, 15 Sep 2014 18:44:32 +0200 Subject: [PATCH] added a premake5.lua file to allow using the latest premake-dev versions --- premake5.lua | 145 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 premake5.lua diff --git a/premake5.lua b/premake5.lua new file mode 100644 index 00000000..5271a45d --- /dev/null +++ b/premake5.lua @@ -0,0 +1,145 @@ +solution "Decoda" + configurations { "Debug", "Release" } + location "build" + --debugdir "working" + flags { "No64BitChecks" } + + defines { "_CRT_SECURE_NO_WARNINGS", "WIN32" } + + vpaths { + ["Header Files"] = { "**.h" }, + ["Source Files"] = { "**.cpp" }, + ["Resource Files"] = { "**.rc" }, + } + +project "Frontend" + kind "WindowedApp" + targetname "Decoda" + flags { "WinMain" } + location "build" + language "C++" + files { + "src/Frontend/*.h", + "src/Frontend/*.cpp", + "src/Frontend/*.rc", + } + includedirs { + "src/Shared", + "libs/wxWidgets/include", + "libs/wxScintilla/include", + "libs/Update/include", + } + libdirs { + "libs/wxWidgets/lib/vc_lib", + "libs/wxScintilla/lib", + "libs/Update/lib", + } + links { + "comctl32", + "rpcrt4", + "imagehlp", + "Update", + "Shared", + } + + configuration "Debug" + defines { "DEBUG" } + flags { "Symbols" } + targetdir "bin/debug" + includedirs { "libs/wxWidgets/lib/vc_lib/mswd" } + links { + "wxbase28d", + "wxmsw28d_core", + "wxmsw28d_aui", + "wxscintillad", + "wxbase28d_xml", + "wxexpatd", + "wxmsw28d_adv", + "wxmsw28d_qa", + "wxzlibd", + "wxmsw28d_richtext", + "wxmsw28d_html", + "wxpngd", + } + + configuration "Release" + defines { "NDEBUG" } + optimize "On" + targetdir "bin/release" + includedirs { "libs/wxWidgets/lib/vc_lib/msw" } + links { + "wxbase28", + "wxmsw28_core", + "wxmsw28_aui", + "wxscintilla", + "wxbase28_xml", + "wxexpat", + "wxmsw28_adv", + "wxmsw28_qa", + "wxzlib", + "wxmsw28_richtext", + "wxmsw28_html", + "wxpng", + } + +project "LuaInject" + kind "SharedLib" + location "build" + language "C++" + defines { "TIXML_USE_STL" } + files { + "src/LuaInject/*.h", + "src/LuaInject/*.cpp", + } + includedirs { + "src/Shared", + "libs/LuaPlus/include", + "libs/tinyxml/include", + "libs/dbghlp/include", + } + libdirs { + "libs/tinyxml/lib", + "libs/dbghlp/lib", + } + links { + "Shared", + "psapi" + } + + configuration "Debug" + defines { "DEBUG" } + flags { "Symbols" } + targetdir "bin/debug" + links { "tinyxmld_STL" } + + configuration "Release" + defines { "NDEBUG" } + flags { "Optimize" } + targetdir "bin/release" + links { "tinyxml_STL" } + +project "Shared" + kind "StaticLib" + location "build" + language "C++" + files { + "src/Shared/*.h", + "src/Shared/*.cpp", + } + includedirs { + } + libdirs { + } + links { + } + + configuration "Debug" + defines { "DEBUG" } + flags { "Symbols" } + targetdir "bin/debug" + + configuration "Release" + defines { "NDEBUG" } + flags { "Optimize" } + targetdir "bin/release" + \ No newline at end of file