Skip to content

Commit

Permalink
premake: no need for curl in dedicated server build
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSimek committed Mar 12, 2012
1 parent 1e19e96 commit c923a93
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions premake4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,25 +231,15 @@ project "etlegacy-dedicated"
excludes
{
"src/botlib/botlib_stub.c",
"src/qcommon/dl_main_curl.c",
}

if _OPTIONS["with-curl"] then
excludes "src/qcommon/dl_main_stubs.c"
else
excludes "src/qcommon/dl_main_curl.c"
end

--
-- Windows build options
--
configuration { "vs* or mingw" }
targetsuffix ".exe"
flags { "WinMain" }

buildoptions
{
"`/usr/i686-pc-mingw32/usr/bin/pkg-config --cflags libcurl`",
}
links
{
-- NOTE TO SELF:
Expand All @@ -261,7 +251,6 @@ project "etlegacy-dedicated"
"wsock32",
"iphlpapi",

"curl",
"SDLmain",
"SDL",

Expand Down Expand Up @@ -290,17 +279,7 @@ project "etlegacy-dedicated"

--
-- Linux build options
--
configuration { "linux", "not mingw", "gmake" }
buildoptions
{
"`pkg-config --cflags libcurl`",
}
linkoptions
{
"`pkg-config --libs libcurl`",
}

--
configuration { "linux", "not mingw", "x32" }
targetdir "build/linux-i386"

Expand Down

0 comments on commit c923a93

Please sign in to comment.