mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 05:09:51 +02:00
Update JSBaker.cpp
This commit is contained in:
parent
da8b2d2137
commit
1d373c2988
1 changed files with 5 additions and 4 deletions
|
@ -18,9 +18,10 @@ const int ASCII_CHARACTERS_UPPER_LIMIT = 126;
|
||||||
|
|
||||||
JSBaker::JSBaker(const QUrl& jsURL, const QString& bakedOutputDir) :
|
JSBaker::JSBaker(const QUrl& jsURL, const QString& bakedOutputDir) :
|
||||||
_jsURL(jsURL),
|
_jsURL(jsURL),
|
||||||
_bakedOutputDir(bakedOutputDir) {
|
_bakedOutputDir(bakedOutputDir)
|
||||||
|
{
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
void JSBaker::bake() {
|
void JSBaker::bake() {
|
||||||
qCDebug(js_baking) << "JS Baker " << _jsURL << "bake starting";
|
qCDebug(js_baking) << "JS Baker " << _jsURL << "bake starting";
|
||||||
|
@ -40,7 +41,7 @@ void JSBaker::bake() {
|
||||||
bool success = bakeJS(&inputJS, &outputJS);
|
bool success = bakeJS(&inputJS, &outputJS);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
qCDebug(js_baking) << "Bake Failed";
|
qCDebug(js_baking) << "Bake Failed";
|
||||||
handleError("Error unterminated multi line comment");
|
handleError("Unterminated multi-line comment");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +63,7 @@ void JSBaker::bake() {
|
||||||
|
|
||||||
// Export successful
|
// Export successful
|
||||||
_outputFiles.push_back(_bakedJSFilePath);
|
_outputFiles.push_back(_bakedJSFilePath);
|
||||||
qCDebug(js_baking) << "Exported" << _jsURL << "with re-written paths to" << _bakedJSFilePath;
|
qCDebug(js_baking) << "Exported" << _jsURL << "minified to" << _bakedJSFilePath;
|
||||||
|
|
||||||
// emit signal to indicate the JS baking is finished
|
// emit signal to indicate the JS baking is finished
|
||||||
emit finished();
|
emit finished();
|
||||||
|
|
Loading…
Reference in a new issue