Get rid of gflags alltogether
This commit is contained in:
@@ -11,7 +11,6 @@ project("xenia-app")
|
||||
"aes_128",
|
||||
"capstone",
|
||||
"discord-rpc",
|
||||
"gflags",
|
||||
"glew",
|
||||
"glslang-spirv",
|
||||
"imgui",
|
||||
@@ -45,9 +44,6 @@ project("xenia-app")
|
||||
"XBYAK_NO_OP_NAMES",
|
||||
"XBYAK_ENABLE_OMITTED_OPERAND",
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
files({
|
||||
"xenia_main.cc",
|
||||
@@ -89,6 +85,5 @@ project("xenia-app")
|
||||
if not os.isfile(user_file) then
|
||||
debugdir(project_root)
|
||||
debugargs({
|
||||
"--flagfile=scratch/flags.txt",
|
||||
})
|
||||
end
|
||||
|
||||
@@ -12,7 +12,4 @@ project("xenia-apu-nop")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -14,7 +14,6 @@ project("xenia-apu")
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
project_root.."/third_party/libav/",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -12,7 +12,4 @@ project("xenia-apu-xaudio2")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -89,7 +89,6 @@ int Main() {
|
||||
auto entry_info = xe::GetEntryInfo();
|
||||
|
||||
// Convert command line to an argv-like format so we can share code/use
|
||||
// gflags.
|
||||
auto command_line = GetCommandLineW();
|
||||
int argc;
|
||||
wchar_t** argv = CommandLineToArgvW(command_line, &argc);
|
||||
@@ -97,7 +96,7 @@ int Main() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Convert all args to narrow, as gflags doesn't support wchar.
|
||||
// Convert all args to narrow, as cxxopts doesn't support wchar.
|
||||
int argca = argc;
|
||||
char** argva = reinterpret_cast<char**>(alloca(sizeof(char*) * argca));
|
||||
for (int n = 0; n < argca; n++) {
|
||||
|
||||
@@ -7,9 +7,6 @@ project("xenia-base")
|
||||
language("C++")
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
removefiles({"main_*.cc"})
|
||||
files({
|
||||
|
||||
@@ -2,9 +2,6 @@ project_root = "../../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
test_suite("xenia-base-tests", project_root, ".", {
|
||||
includedirs = {
|
||||
project_root.."/third_party/gflags/src",
|
||||
},
|
||||
links = {
|
||||
"xenia-base",
|
||||
},
|
||||
|
||||
@@ -27,6 +27,5 @@ project("xenia-cpu-backend-x64")
|
||||
|
||||
includedirs({
|
||||
project_root.."/third_party/capstone/include",
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -11,7 +11,6 @@ project("xenia-cpu-ppc-tests")
|
||||
"xenia-cpu-backend-x64",
|
||||
"xenia-cpu",
|
||||
"xenia-base",
|
||||
"gflags",
|
||||
"capstone", -- cpu-backend-x64
|
||||
"mspack",
|
||||
})
|
||||
@@ -22,15 +21,11 @@ project("xenia-cpu-ppc-tests")
|
||||
files({
|
||||
"*.s",
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
filter("files:*.s")
|
||||
flags({"ExcludeFromBuild"})
|
||||
filter("platforms:Windows")
|
||||
debugdir(project_root)
|
||||
debugargs({
|
||||
"--flagfile=scratch/flags.txt",
|
||||
"2>&1",
|
||||
"1>scratch/stdout-testing.txt",
|
||||
})
|
||||
@@ -46,7 +41,6 @@ project("xenia-cpu-ppc-nativetests")
|
||||
language("C++")
|
||||
links({
|
||||
"xenia-base",
|
||||
"gflags",
|
||||
})
|
||||
files({
|
||||
"ppc_testing_native_main.cc",
|
||||
@@ -59,9 +53,6 @@ project("xenia-cpu-ppc-nativetests")
|
||||
filter("files:instr_*.s", "files:seq_*.s")
|
||||
flags({"ExcludeFromBuild"})
|
||||
filter({})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
buildoptions({
|
||||
"-Wa,-mregnames", -- Tell GAS to accept register names.
|
||||
})
|
||||
|
||||
@@ -12,7 +12,6 @@ project("xenia-cpu")
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/llvm/include",
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
local_platform_files("backend")
|
||||
|
||||
@@ -2,9 +2,6 @@ project_root = "../../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
test_suite("xenia-cpu-tests", project_root, ".", {
|
||||
includedirs = {
|
||||
project_root.."/third_party/gflags/src",
|
||||
},
|
||||
links = {
|
||||
"capstone",
|
||||
"xenia-base",
|
||||
|
||||
@@ -16,7 +16,6 @@ project("xenia-debug-ui")
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
project_root.."/third_party/yaml-cpp/include/",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -15,7 +15,4 @@ project("xenia-gpu-null")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -19,7 +19,6 @@ project("xenia-gpu")
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/spirv-tools/external/include",
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
-- local_platform_files("spirv")
|
||||
@@ -31,7 +30,6 @@ project("xenia-gpu-shader-compiler")
|
||||
kind("ConsoleApp")
|
||||
language("C++")
|
||||
links({
|
||||
"gflags",
|
||||
"glslang-spirv",
|
||||
"spirv-tools",
|
||||
"xenia-base",
|
||||
@@ -40,9 +38,6 @@ project("xenia-gpu-shader-compiler")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
files({
|
||||
"shader_compiler_main.cc",
|
||||
"../base/main_"..platform_suffix..".cc",
|
||||
@@ -54,7 +49,6 @@ project("xenia-gpu-shader-compiler")
|
||||
if not os.isfile(user_file) then
|
||||
debugdir(project_root)
|
||||
debugargs({
|
||||
"--flagfile=scratch/flags.txt",
|
||||
"2>&1",
|
||||
"1>scratch/stdout-shader-compiler.txt",
|
||||
})
|
||||
|
||||
@@ -17,9 +17,6 @@ project("xenia-gpu-vulkan")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
files({
|
||||
"shaders/bin/*.h",
|
||||
@@ -34,7 +31,6 @@ project("xenia-gpu-vulkan-trace-viewer")
|
||||
links({
|
||||
"aes_128",
|
||||
"capstone",
|
||||
"gflags",
|
||||
"glslang-spirv",
|
||||
"imgui",
|
||||
"libavcodec",
|
||||
@@ -62,9 +58,6 @@ project("xenia-gpu-vulkan-trace-viewer")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
files({
|
||||
"vulkan_trace_viewer_main.cc",
|
||||
"../../base/main_"..platform_suffix..".cc",
|
||||
@@ -91,7 +84,6 @@ project("xenia-gpu-vulkan-trace-viewer")
|
||||
if not os.isfile(user_file) then
|
||||
debugdir(project_root)
|
||||
debugargs({
|
||||
"--flagfile=scratch/flags.txt",
|
||||
"2>&1",
|
||||
"1>scratch/stdout-trace-viewer.txt",
|
||||
})
|
||||
@@ -105,7 +97,6 @@ project("xenia-gpu-vulkan-trace-dump")
|
||||
links({
|
||||
"aes_128",
|
||||
"capstone",
|
||||
"gflags",
|
||||
"glslang-spirv",
|
||||
"imgui",
|
||||
"libavcodec",
|
||||
@@ -133,9 +124,6 @@ project("xenia-gpu-vulkan-trace-dump")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
files({
|
||||
"vulkan_trace_dump_main.cc",
|
||||
"../../base/main_"..platform_suffix..".cc",
|
||||
@@ -156,7 +144,6 @@ project("xenia-gpu-vulkan-trace-dump")
|
||||
if not os.isfile(user_file) then
|
||||
debugdir(project_root)
|
||||
debugargs({
|
||||
"--flagfile=scratch/flags.txt",
|
||||
"2>&1",
|
||||
"1>scratch/stdout-trace-dump.txt",
|
||||
})
|
||||
|
||||
@@ -12,7 +12,4 @@ project("xenia-hid-nop")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -11,9 +11,6 @@ project("xenia-hid")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
removefiles({"*_demo.cc"})
|
||||
|
||||
@@ -23,7 +20,6 @@ project("xenia-hid-demo")
|
||||
kind("WindowedApp")
|
||||
language("C++")
|
||||
links({
|
||||
"gflags",
|
||||
"glew",
|
||||
"imgui",
|
||||
"volk",
|
||||
@@ -37,9 +33,6 @@ project("xenia-hid-demo")
|
||||
"GLEW_STATIC=1",
|
||||
"GLEW_MX=1",
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
files({
|
||||
"hid_demo.cc",
|
||||
"../base/main_"..platform_suffix..".cc",
|
||||
|
||||
@@ -13,7 +13,4 @@ project("xenia-hid-winkey")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -12,7 +12,4 @@ project("xenia-hid-xinput")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -16,9 +16,6 @@ project("xenia-kernel")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
recursive_platform_files()
|
||||
files({
|
||||
"debug_visualizers.natvis",
|
||||
|
||||
@@ -11,7 +11,4 @@ project("xenia-core")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
files({"*.h", "*.cc"})
|
||||
|
||||
@@ -11,8 +11,5 @@ project("xenia-ui")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
removefiles({"*_demo.cc"})
|
||||
|
||||
@@ -14,7 +14,6 @@ project("xenia-ui-spirv")
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
project_root.."/third_party/spirv-tools/external/include",
|
||||
})
|
||||
local_platform_files()
|
||||
|
||||
@@ -14,7 +14,6 @@ project("xenia-ui-vulkan")
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
project_root.."/third_party/vulkan/",
|
||||
})
|
||||
local_platform_files()
|
||||
@@ -29,7 +28,6 @@ project("xenia-ui-window-vulkan-demo")
|
||||
kind("WindowedApp")
|
||||
language("C++")
|
||||
links({
|
||||
"gflags",
|
||||
"imgui",
|
||||
"volk",
|
||||
"xenia-base",
|
||||
@@ -40,7 +38,6 @@ project("xenia-ui-window-vulkan-demo")
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
project_root.."/third_party/vulkan/",
|
||||
})
|
||||
files({
|
||||
|
||||
@@ -11,9 +11,6 @@ project("xenia-vfs")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
recursive_platform_files()
|
||||
removefiles({"vfs_dump.cc"})
|
||||
|
||||
@@ -22,14 +19,10 @@ project("xenia-vfs-dump")
|
||||
kind("ConsoleApp")
|
||||
language("C++")
|
||||
links({
|
||||
"gflags",
|
||||
"xenia-base",
|
||||
"xenia-vfs",
|
||||
})
|
||||
defines({})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
|
||||
files({
|
||||
"vfs_dump.cc",
|
||||
|
||||
Reference in New Issue
Block a user