Initial commit
[openspeak.git] / server / premake.lua
blobf2641845fbbf19a1c6947d2d5ec9a874d38b75c1
1 -- openSpeak - The open source VoIP application
2 -- Copyright (C) 2006 - 2007 openSpeak Team (http://sourceforge.net/projects/openspeak/)
3 --
4 -- This program is free software; you can redistribute it and/or modify
5 -- it under the terms of the GNU General Public License as published by
6 -- the Free Software Foundation; either version 2 of the License, or
7 -- (at your option) any later version.
8 --
9 -- This program is distributed in the hope that it will be useful,
10 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
11 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 -- GNU General Public License for more details.
14 -- You should have received a copy of the GNU General Public License along
15 -- with this program; if not, write to the Free Software Foundation, Inc.,
16 -- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 package = newpackage()
20 package.name = "openSpeak Server"
21 package.target = "openspeak_server"
22 package.kind = "exe"
23 package.language = "c++"
24 package.files = {
25 matchrecursive("include/*.h", "src/*.cpp")
28 -- For Linux
29 if (linux) then
31 package.includepaths = { "../lib/include", "include", "/usr/local/include", "/usr/include" }
32 package.libpaths = { "../libs" }
33 package.config["Debug"].links = { "openspeak_d" }
34 package.config["Release"].links = { "openspeak" }
36 -- For Windows
37 elseif (windows) then
39 package.includepaths = { "include", "../lib/include" }
40 package.libpaths = { "../libs" }
41 package.config["Debug"].links = { "openspeak_d", "ws2_32" }
42 package.config["Release"].links = { "openspeak", "ws2_32" }
44 end
46 package.config["Debug"].buildflags = { "extra-warnings" }
47 package.config["Release"].buildflags = { "no-symbols", "optimize-speed", "no-frame-pointer" }
49 package.config["Debug"].objdir = "../obj/server/debug"
50 package.config["Release"].objdir = "../obj/server"