mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
62 lines
1.4 KiB
Lua
62 lines
1.4 KiB
Lua
project_root = "../../.."
|
|
include(project_root.."/tools/build")
|
|
|
|
group("src")
|
|
project("xenia-gpu")
|
|
uuid("0e8d3370-e4b1-4b05-a2e8-39ebbcdf9b17")
|
|
kind("StaticLib")
|
|
language("C++")
|
|
links({
|
|
"glslang-spirv",
|
|
"snappy",
|
|
"spirv-tools",
|
|
"xenia-base",
|
|
"xenia-ui",
|
|
"xenia-ui-spirv",
|
|
"xxhash",
|
|
})
|
|
defines({
|
|
})
|
|
includedirs({
|
|
project_root.."/third_party/spirv-tools/external/include",
|
|
project_root.."/third_party/gflags/src",
|
|
})
|
|
local_platform_files()
|
|
-- local_platform_files("spirv")
|
|
-- local_platform_files("spirv/passes")
|
|
|
|
group("src")
|
|
project("xenia-gpu-shader-compiler")
|
|
uuid("ad76d3e4-4c62-439b-a0f6-f83fcf0e83c5")
|
|
kind("ConsoleApp")
|
|
language("C++")
|
|
links({
|
|
"gflags",
|
|
"glslang-spirv",
|
|
"spirv-tools",
|
|
"xenia-base",
|
|
"xenia-gpu",
|
|
"xenia-ui-spirv",
|
|
})
|
|
defines({
|
|
})
|
|
includedirs({
|
|
project_root.."/third_party/gflags/src",
|
|
})
|
|
files({
|
|
"shader_compiler_main.cc",
|
|
"../base/main_"..platform_suffix..".cc",
|
|
})
|
|
|
|
filter("platforms:Windows")
|
|
-- Only create the .user file if it doesn't already exist.
|
|
local user_file = project_root.."/build/xenia-gpu-shader-compiler.vcxproj.user"
|
|
if not os.isfile(user_file) then
|
|
debugdir(project_root)
|
|
debugargs({
|
|
"--flagfile=scratch/flags.txt",
|
|
"2>&1",
|
|
"1>scratch/stdout-shader-compiler.txt",
|
|
})
|
|
end
|