mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
committed by
Mathew Sutcliffe
parent
368b955c66
commit
a57b83f9de
@@ -264,6 +264,21 @@ namespace BlackConfig
|
||||
return s;
|
||||
}
|
||||
|
||||
QString getTestFilesDirImpl()
|
||||
{
|
||||
const QString d(CBuildConfig::getSwiftResourceDir());
|
||||
if (d.isEmpty()) { return ""; }
|
||||
const QDir dir(QDir::cleanPath(d + QDir::separator() + "test"));
|
||||
Q_ASSERT_X(dir.exists(), Q_FUNC_INFO, "missing dir");
|
||||
return dir.absolutePath();
|
||||
}
|
||||
|
||||
const QString &CBuildConfig::getTestFilesDir()
|
||||
{
|
||||
static QString s(getTestFilesDirImpl());
|
||||
return s;
|
||||
}
|
||||
|
||||
const QString &CBuildConfig::getHtmlTemplateFileName()
|
||||
{
|
||||
static const QString s(getHtmlDir() + QDir::separator() + "swifttemplate.html");
|
||||
|
||||
@@ -111,6 +111,9 @@ namespace BlackConfig
|
||||
//! Where HTML files are located
|
||||
static const QString &getHtmlDir();
|
||||
|
||||
//! Where test files are located
|
||||
static const QString &getTestFilesDir();
|
||||
|
||||
//! Where HTML files are located
|
||||
static const QString &getHtmlTemplateFileName();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user