Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5.lua
Show First 20 Lines • Show All 759 Lines • ▼ Show 20 Lines | extern_libs = { | ||||
"freetype", | "freetype", | ||||
} | } | ||||
if not _OPTIONS["without-audio"] then | if not _OPTIONS["without-audio"] then | ||||
table.insert(extern_libs, "openal") | table.insert(extern_libs, "openal") | ||||
table.insert(extern_libs, "vorbis") | table.insert(extern_libs, "vorbis") | ||||
end | end | ||||
setup_static_lib_project("engine", source_dirs, extern_libs, {}) | setup_static_lib_project("engine", source_dirs, extern_libs, {}) | ||||
source_dirs = { | source_dirs = { | ||||
vladislavbelov: I hope we will remove that dependency some time. | |||||
Done Inline ActionsYeah me too, but the code in HWDetect is a bit complicated to move into a function. Stan: Yeah me too, but the code in HWDetect is a bit complicated to move into a function. | |||||
"graphics", | "graphics", | ||||
"graphics/scripting", | "graphics/scripting", | ||||
"renderer", | "renderer", | ||||
"renderer/backend", | "renderer/backend", | ||||
"renderer/backend/gl", | "renderer/backend/gl", | ||||
"renderer/scripting", | "renderer/scripting", | ||||
"third_party/mikktspace", | "third_party/mikktspace", | ||||
"third_party/ogre3d_preprocessor" | "third_party/ogre3d_preprocessor" | ||||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | function setup_all_libs () | ||||
} | } | ||||
extern_libs = { | extern_libs = { | ||||
"boost", | "boost", | ||||
"sdl", | "sdl", | ||||
"openal", | "openal", | ||||
"opengl", | "opengl", | ||||
"libpng", | "libpng", | ||||
"zlib", | "zlib", | ||||
"glad", | |||||
"valgrind", | "valgrind", | ||||
"cxxtest", | "cxxtest", | ||||
"fmt", | "fmt", | ||||
} | } | ||||
-- CPU architecture-specific | -- CPU architecture-specific | ||||
if arch == "amd64" then | if arch == "amd64" then | ||||
table.insert(source_dirs, "lib/sysdep/arch/amd64"); | table.insert(source_dirs, "lib/sysdep/arch/amd64"); | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | function setup_all_libs () | ||||
-- runtime-library-specific | -- runtime-library-specific | ||||
if _ACTION == "vs2017" then | if _ACTION == "vs2017" then | ||||
table.insert(source_dirs, "lib/sysdep/rtl/msc"); | table.insert(source_dirs, "lib/sysdep/rtl/msc"); | ||||
else | else | ||||
table.insert(source_dirs, "lib/sysdep/rtl/gcc"); | table.insert(source_dirs, "lib/sysdep/rtl/gcc"); | ||||
end | end | ||||
setup_static_lib_project("lowlevel", source_dirs, extern_libs, extra_params) | setup_static_lib_project("lowlevel", source_dirs, extern_libs, extra_params) | ||||
setup_static_lib_project("gladwrapper", {}, { "opengl"}, { no_pch = 1 }) | |||||
glad_path = libraries_source_dir.."glad/" | |||||
files { glad_path.."src/gl.cpp", glad_path.."**/**gl.h", glad_path.."**/**khrplatform.h" } | |||||
sysincludedirs {glad_path.."include"} | |||||
if os.istarget("windows") then | |||||
files { glad_path.."src/wgl.cpp", glad_path.."**/**wgl.h" } | |||||
else | |||||
if _OPTIONS["gles"] then | |||||
files { glad_path.."src/gles2.cpp", glad_path.."**/**gles2.h" } | |||||
elseif os.istarget("linux") or os.istarget("bsd") then | |||||
files { glad_path.."src/glx.cpp", glad_path.."**/**glx.h" } | |||||
end | |||||
end | |||||
-- Third-party libraries that are built as part of the main project, | -- Third-party libraries that are built as part of the main project, | ||||
-- not built externally and then linked | -- not built externally and then linked | ||||
source_dirs = { | source_dirs = { | ||||
"third_party/mongoose", | "third_party/mongoose", | ||||
} | } | ||||
extern_libs = { | extern_libs = { | ||||
▲ Show 20 Lines • Show All 556 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
I hope we will remove that dependency some time.