internal static string FindAndroidSdkTool(PlayServicesSupport svcSupport, string toolName)
{
string toolPath = null;
string sdkPath = svcSupport.SDK;
if (sdkPath == null || sdkPath == "")
{
Debug.LogWarning(PlayServicesSupport.AndroidSdkConfigurationError +
" Will fallback to searching for " + toolName +
" in the system path.");
}
else
{
toolPath = Path.Combine(
sdkPath, Path.Combine(
"tools", toolName + CommandLine.GetExecutableExtension()));
}
if (toolPath == null || !File.Exists(toolPath))
{
toolPath = CommandLine.FindExecutable(toolName);
}
return toolPath;
}