Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5.lua
Show First 20 Lines • Show All 678 Lines • ▼ Show 20 Lines | source_dirs = { | ||||
"simulation2/scripting", | "simulation2/scripting", | ||||
"simulation2/serialization", | "simulation2/serialization", | ||||
"simulation2/system", | "simulation2/system", | ||||
"simulation2/testcomponents", | "simulation2/testcomponents", | ||||
} | } | ||||
extern_libs = { | extern_libs = { | ||||
"boost", | "boost", | ||||
"opengl", | "opengl", | ||||
"epoxy", | |||||
"spidermonkey", | "spidermonkey", | ||||
} | } | ||||
setup_static_lib_project("simulation2", source_dirs, extern_libs, {}) | setup_static_lib_project("simulation2", source_dirs, extern_libs, {}) | ||||
source_dirs = { | source_dirs = { | ||||
"scriptinterface", | "scriptinterface", | ||||
"scriptinterface/third_party" | "scriptinterface/third_party" | ||||
} | } | ||||
extern_libs = { | extern_libs = { | ||||
"boost", | "boost", | ||||
"spidermonkey", | "spidermonkey", | ||||
"valgrind", | "valgrind", | ||||
"epoxy", | |||||
"sdl", | "sdl", | ||||
} | } | ||||
setup_static_lib_project("scriptinterface", source_dirs, extern_libs, {}) | setup_static_lib_project("scriptinterface", source_dirs, extern_libs, {}) | ||||
source_dirs = { | source_dirs = { | ||||
"ps", | "ps", | ||||
"ps/scripting", | "ps/scripting", | ||||
Show All 9 Lines | source_dirs = { | ||||
"i18n", | "i18n", | ||||
"i18n/scripting", | "i18n/scripting", | ||||
"third_party/fmt", | "third_party/fmt", | ||||
} | } | ||||
extern_libs = { | extern_libs = { | ||||
"spidermonkey", | "spidermonkey", | ||||
"sdl", -- key definitions | "sdl", -- key definitions | ||||
"libxml2", | "libxml2", | ||||
"epoxy", | |||||
"opengl", | "opengl", | ||||
"zlib", | "zlib", | ||||
"boost", | "boost", | ||||
"enet", | "enet", | ||||
"libcurl", | "libcurl", | ||||
"tinygettext", | "tinygettext", | ||||
"icu", | "icu", | ||||
"iconv", | "iconv", | ||||
Show All 13 Lines | source_dirs = { | ||||
"graphics/scripting", | "graphics/scripting", | ||||
"renderer", | "renderer", | ||||
"renderer/scripting", | "renderer/scripting", | ||||
"third_party/mikktspace", | "third_party/mikktspace", | ||||
"third_party/ogre3d_preprocessor" | "third_party/ogre3d_preprocessor" | ||||
} | } | ||||
extern_libs = { | extern_libs = { | ||||
"opengl", | "opengl", | ||||
"epoxy", | |||||
"sdl", -- key definitions | "sdl", -- key definitions | ||||
"spidermonkey", -- for graphics/scripting | "spidermonkey", -- for graphics/scripting | ||||
"boost" | "boost" | ||||
} | } | ||||
if not _OPTIONS["without-nvtt"] then | if not _OPTIONS["without-nvtt"] then | ||||
table.insert(extern_libs, "nvtt") | table.insert(extern_libs, "nvtt") | ||||
end | end | ||||
setup_static_lib_project("graphics", source_dirs, extern_libs, {}) | setup_static_lib_project("graphics", source_dirs, extern_libs, {}) | ||||
source_dirs = { | source_dirs = { | ||||
"tools/atlas/GameInterface", | "tools/atlas/GameInterface", | ||||
"tools/atlas/GameInterface/Handlers" | "tools/atlas/GameInterface/Handlers" | ||||
} | } | ||||
extern_libs = { | extern_libs = { | ||||
"boost", | "boost", | ||||
"epoxy", | |||||
"sdl", -- key definitions | "sdl", -- key definitions | ||||
"opengl", | "opengl", | ||||
"spidermonkey" | "spidermonkey" | ||||
} | } | ||||
setup_static_lib_project("atlas", source_dirs, extern_libs, {}) | setup_static_lib_project("atlas", source_dirs, extern_libs, {}) | ||||
source_dirs = { | source_dirs = { | ||||
"gui", | "gui", | ||||
"gui/ObjectTypes", | "gui/ObjectTypes", | ||||
"gui/ObjectBases", | "gui/ObjectBases", | ||||
"gui/Scripting", | "gui/Scripting", | ||||
"gui/SettingTypes", | "gui/SettingTypes", | ||||
"i18n" | "i18n" | ||||
} | } | ||||
extern_libs = { | extern_libs = { | ||||
"spidermonkey", | "spidermonkey", | ||||
"sdl", -- key definitions | "sdl", -- key definitions | ||||
"opengl", | "opengl", | ||||
"epoxy", | |||||
"boost", | "boost", | ||||
"enet", | "enet", | ||||
"tinygettext", | "tinygettext", | ||||
"icu", | "icu", | ||||
"iconv", | "iconv", | ||||
} | } | ||||
if not _OPTIONS["without-audio"] then | if not _OPTIONS["without-audio"] then | ||||
table.insert(extern_libs, "openal") | table.insert(extern_libs, "openal") | ||||
Show All 18 Lines | source_dirs = { | ||||
"lib/sysdep", | "lib/sysdep", | ||||
"lib/tex" | "lib/tex" | ||||
} | } | ||||
extern_libs = { | extern_libs = { | ||||
"boost", | "boost", | ||||
"sdl", | "sdl", | ||||
"openal", | "openal", | ||||
"opengl", | "opengl", | ||||
"epoxy", | |||||
"libpng", | "libpng", | ||||
"zlib", | "zlib", | ||||
"valgrind", | "valgrind", | ||||
"cxxtest", | "cxxtest", | ||||
} | } | ||||
-- CPU architecture-specific | -- CPU architecture-specific | ||||
if arch == "amd64" then | if arch == "amd64" then | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||||
-- main EXE | -- main EXE | ||||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||||
-- used for main EXE as well as test | -- used for main EXE as well as test | ||||
used_extern_libs = { | used_extern_libs = { | ||||
"opengl", | "opengl", | ||||
"sdl", | "sdl", | ||||
"epoxy", | |||||
"libpng", | "libpng", | ||||
"zlib", | "zlib", | ||||
"spidermonkey", | "spidermonkey", | ||||
"libxml2", | "libxml2", | ||||
"boost", | "boost", | ||||
"cxxtest", | "cxxtest", | ||||
▲ Show 20 Lines • Show All 541 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator