Add missing libraries when linking xenia-app on Linux

Currently, each module in Xenia is built as a static library (also
called archive). On Linux, an archive only contains the object files
for that module. So any depedency that module has must be specified by
adding those other modules when linking the program, as the dependencies
are resolved at that time.
This commit is contained in:
sephiroth99 2017-04-26 02:13:09 -04:00 committed by Doug Johnson
parent 879d6e979f
commit 03091d1b71
1 changed files with 11 additions and 0 deletions

View File

@ -8,8 +8,15 @@ project("xenia-app")
targetname("xenia")
language("C++")
links({
"capstone",
"gflags",
"glslang-spirv",
"imgui",
"libavcodec",
"libavutil",
"snappy",
"spirv-tools",
"vulkan-loader",
"xenia-apu",
"xenia-apu-nop",
"xenia-base",
@ -21,11 +28,15 @@ project("xenia-app")
"xenia-gpu-gl4",
"xenia-gpu-null",
"xenia-gpu-vulkan",
"xenia-hid",
"xenia-hid-nop",
"xenia-kernel",
"xenia-ui",
"xenia-ui-gl",
"xenia-ui-spirv",
"xenia-ui-vulkan",
"xenia-vfs",
"xxhash",
})
flags({
"WinMain", -- Use WinMain instead of main.