2004-06-02 12:47:27 +02:00
|
|
|
dofile("functions.lua")
|
|
|
|
|
|
|
|
-- Set up the Project
|
|
|
|
project.name = "prometheus"
|
|
|
|
project.bindir = "../../../binaries/system"
|
|
|
|
project.libdir = "../../../binaries/system"
|
|
|
|
|
|
|
|
-- Start the package part
|
|
|
|
package = newpackage()
|
|
|
|
package.name = "prometheus"
|
|
|
|
-- Windowed executable on windows, "exe" on all other platforms
|
|
|
|
package.kind = "winexe"
|
|
|
|
package.language = "c++"
|
|
|
|
|
|
|
|
-- Package target for debug and release build
|
|
|
|
-- On Windows, ".exe" is added on the end, on unices the name is used directly
|
|
|
|
package.config["Debug"].target = "ps_dbg"
|
|
|
|
package.config["Release"].target = "ps"
|
|
|
|
|
|
|
|
-- Files
|
|
|
|
package.files = {
|
|
|
|
-- ps/
|
|
|
|
{ sourcesfromdirs("../../ps") },
|
|
|
|
-- simulation/
|
|
|
|
{ sourcesfromdirs("../../simulation") },
|
2004-06-11 00:24:03 +02:00
|
|
|
{ sourcesfromdirs("../../simulation/scripting") },
|
2004-06-02 12:47:27 +02:00
|
|
|
-- lib/
|
|
|
|
{ sourcesfromdirs(
|
|
|
|
"../../lib",
|
|
|
|
"../../lib/sysdep",
|
|
|
|
"../../lib/res") },
|
|
|
|
-- graphics/
|
|
|
|
{ sourcesfromdirs(
|
|
|
|
"../../graphics") },
|
|
|
|
-- maths/
|
|
|
|
{ sourcesfromdirs(
|
|
|
|
"../../maths") },
|
2004-06-11 00:24:03 +02:00
|
|
|
{ sourcesfromdirs( "../../maths/scripting" ) },
|
2004-06-02 12:47:27 +02:00
|
|
|
-- renderer/
|
|
|
|
{ sourcesfromdirs(
|
|
|
|
"../../renderer") },
|
|
|
|
-- gui/
|
|
|
|
{ sourcesfromdirs(
|
|
|
|
"../../gui") },
|
|
|
|
-- terrain/
|
|
|
|
{ sourcesfromdirs(
|
|
|
|
"../../terrain") },
|
|
|
|
-- main
|
2004-06-02 19:44:30 +02:00
|
|
|
{ "../../main.cpp" },
|
2004-06-02 12:47:27 +02:00
|
|
|
-- scripting
|
|
|
|
{ sourcesfromdirs("../../scripting") }
|
|
|
|
}
|
2004-06-02 19:44:30 +02:00
|
|
|
|
|
|
|
package.includepaths = {
|
|
|
|
"../../ps",
|
|
|
|
"../../simulation",
|
|
|
|
"../../lib",
|
|
|
|
"../../graphics",
|
|
|
|
"../../maths",
|
|
|
|
"../../renderer",
|
|
|
|
"../../terrain",
|
|
|
|
"../.." }
|
|
|
|
|
|
|
|
package.libpaths = {}
|
2004-06-02 12:47:27 +02:00
|
|
|
|
|
|
|
-- Platform Specifics
|
|
|
|
if (OS == "windows") then
|
|
|
|
-- Libraries
|
|
|
|
package.links = {
|
|
|
|
"opengl32",
|
|
|
|
"glu32",
|
|
|
|
"fmodvc"
|
|
|
|
}
|
2004-06-02 19:44:30 +02:00
|
|
|
tinsert(package.files, sourcesfromdirs("../../lib/sysdep/win"))
|
2004-06-02 12:47:27 +02:00
|
|
|
package.linkoptions = { "/ENTRY:entry" }
|
|
|
|
package.linkflags = { "static-runtime" }
|
|
|
|
package.buildflags = { "no-main" }
|
2004-06-04 04:19:42 +02:00
|
|
|
package.pchHeader = "precompiled.h"
|
|
|
|
package.pchSource = "precompiled.cpp"
|
2004-06-02 12:47:27 +02:00
|
|
|
else -- Non-Windows, = Unix
|
|
|
|
-- Libraries
|
2004-06-02 19:44:30 +02:00
|
|
|
package.links = {
|
|
|
|
-- OpenGL and X-Windows
|
|
|
|
"GL", "GLU", "X11",
|
|
|
|
"SDL", "png",
|
|
|
|
"fmod-3.70",
|
2004-06-09 16:03:48 +02:00
|
|
|
"fam",
|
2004-06-02 19:44:30 +02:00
|
|
|
-- Utilities
|
|
|
|
"xerces-c", "z", "rt"
|
|
|
|
}
|
|
|
|
tinsert(package.libpaths, { "/usr/X11R6/lib" } )
|
2004-06-02 12:47:27 +02:00
|
|
|
-- Defines
|
2004-06-02 19:44:30 +02:00
|
|
|
package.defines = {
|
|
|
|
"__STDC_VERSION__=199901L" }
|
|
|
|
-- Includes
|
|
|
|
tinsert(package.includepaths, { "/usr/X11R6/include/X11" } )
|
|
|
|
|
|
|
|
-- Build Flags
|
|
|
|
package.buildoptions = { "`pkg-config mozilla-js --cflags`" }
|
|
|
|
package.linkoptions = { "`pkg-config mozilla-js --libs`" }
|
|
|
|
package.config["Debug"].buildoptions = { "-ggdb" }
|
2004-06-02 12:47:27 +02:00
|
|
|
end
|