Set up infrastructure for installing an executable. Changes the standalone name to glslangValidator.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22593 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2013-08-03 00:04:10 +00:00
parent 53f3cc977d
commit 54f6e5661d
8 changed files with 82 additions and 319 deletions

View File

@@ -138,13 +138,15 @@ bool ProcessArguments(int argc, char* argv[])
DebugOptions |= EDebugOpTexturePrototypes;
break;
default:
usage();
return false;
}
} else
Worklist.add(std::string(argv[0]));
}
if (Worklist.empty())
return false;
return true;
}
@@ -187,8 +189,10 @@ int C_DECL main(int argc, char* argv[])
// Init for for standalone
glslang::InitGlobalLock();
if (! ProcessArguments(argc, argv))
if (! ProcessArguments(argc, argv)) {
usage();
return EFailUsage;
}
// TODO: finish threading, allow external control over number of threads
const int NumThreads = 1;