Skip to content

Commit

Permalink
Fix 64-bit server output path
Browse files Browse the repository at this point in the history
  • Loading branch information
jushar committed Aug 1, 2016
1 parent 4505ace commit 0fe3108
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Server/core/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ project "Core"

filter "system:linux"
links { "ncurses", "ncursesw", "breakpad", "pthread", "stdc++" }

filter "platforms:x64"
targetdir(buildpath("server/x64"))
8 changes: 5 additions & 3 deletions Server/dbconmy/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ project "Dbconmy"
includedirs { "/usr/include/mysql" }
links { "mysqlclient" }

filter { "system:windows", "architecture:x64" }
filter { "system:windows", "platforms:x64" }
links { "../../vendor/mysql/lib/x64/libmysql.lib" }
filter { "system:windows", "architecture:x86" }
filter { "system:windows", "platforms:x86" }
links { "../../vendor/mysql/lib/x86/libmysql.lib" }


filter "platforms:x64"
targetdir(buildpath("server/x64"))
3 changes: 3 additions & 0 deletions Server/launcher/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ project "Launcher"

filter {"system:linux", "platforms:x64"}
targetname "mta-server64"

filter {"system:windows", "platforms:x64"}
targetname "MTA Server64"
3 changes: 2 additions & 1 deletion Server/mods/deathmatch/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ project "Deathmatch"
"Lua_Server", "pthread", "sqlite", "ehs", "cryptopp", "pcre", "pme", "json-c", "zlib", "zip"
}


vpaths {
["Headers/*"] = {"**.h", "../../../**.h"},
["Sources/*"] = {"**.cpp", "../../../**.cpp"},
Expand Down Expand Up @@ -65,3 +64,5 @@ project "Deathmatch"
filter "system:not windows"
buildoptions { "-Wno-narrowing" } -- We should fix the warnings at some point

filter "platforms:x64"
targetdir(buildpath("server/x64"))
2 changes: 2 additions & 0 deletions Shared/XML/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ project "XML"
copy "mta"
}

filter {"system:windows", "platforms:x64"}
targetdir(buildpath("server/x64"))
4 changes: 3 additions & 1 deletion vendor/curl/lib/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ project "curl"
"../include",
"../../zlib"
}


vpaths {
["Headers"] = "**.h",
Expand Down Expand Up @@ -261,4 +260,7 @@ project "curl"
postbuildcommands {
copy "mta"
}

filter "platforms:x64"
targetdir(buildpath("server/x64"))

5 changes: 4 additions & 1 deletion vendor/lua/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ project "Lua_Server"
filter "system:not windows"
kind "StaticLib"

filter {"system:windows", "platforms:x64"}
targetdir(buildpath("server/x64"))


if os.get() == "windows" then
project "Lua_Client"
Expand Down Expand Up @@ -49,6 +52,6 @@ if os.get() == "windows" then
configuration "windows"
defines { "LUA_BUILD_AS_DLL" }

filter "architecture:x64"
filter "platforms:x64"
flags { "ExcludeFromBuild" }
end
6 changes: 4 additions & 2 deletions vendor/pcre/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ project "pcre"

filter "system:windows"
kind "SharedLib"
targetdir(buildpath("server/mods/deathmatch"))
targetdir(buildpath("server/mods/deathmatch"))

filter {"system:windows", "platforms:x86"}
postbuildcommands {
copy "mods/deathmatch"
}

filter {"system:windows", "platforms:x64"}
targetdir(buildpath("server/x64"))

filter "system:not windows"
kind "StaticLib"

5 changes: 4 additions & 1 deletion vendor/pthreads/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ project "pthread"
filter {"system:windows", "platforms:x86"}
postbuildcommands {
copy "mta"
}
}

filter {"system:windows", "platforms:x64"}
targetdir(buildpath("server/x64"))

filter "system:windows"
defines {
Expand Down

0 comments on commit 0fe3108

Please sign in to comment.