Skip to content

Commit b3b8b4b

Browse files
committed
add command to other exporters console
1 parent 5fb1487 commit b3b8b4b

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

Source/Heavy/CppExporter.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ class CppExporter final : public ExporterBase {
5555
if (shouldQuit)
5656
return true;
5757

58-
start(args.joinIntoString(" "));
58+
auto compileString = args.joinIntoString(" ");
59+
exportingView->logToConsole("Command: " + compileString + "\n");
60+
start(compileString);
5961

6062
waitForProcessToFinish(-1);
6163
exportingView->flushConsole();

Source/Heavy/DPFExporter.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ class DPFExporter final : public ExporterBase {
220220
if (shouldQuit)
221221
return true;
222222

223-
start(args.joinIntoString(" "));
223+
auto compileString = args.joinIntoString(" ");
224+
exportingView->logToConsole("Command: " + compileString + "\n");
225+
start(compileString);
224226

225227
waitForProcessToFinish(-1);
226228
exportingView->flushConsole();

Source/Heavy/OWLExporter.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ class OWLExporter : public ExporterBase {
114114

115115
args.add(paths);
116116

117-
start(args.joinIntoString(" "));
117+
auto compileString = args.joinIntoString(" ");
118+
exportingView->logToConsole("Command: " + compileString + "\n");
119+
start(compileString);
120+
118121
waitForProcessToFinish(-1);
119122
exportingView->flushConsole();
120123

Source/Heavy/PdExporter.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ class PdExporter final : public ExporterBase {
8888
if (shouldQuit)
8989
return true;
9090

91-
start(args.joinIntoString(" "));
91+
auto compileString = args.joinIntoString(" ");
92+
exportingView->logToConsole("Command: " + compileString + "\n");
93+
start(compileString);
9294

9395
waitForProcessToFinish(-1);
9496
exportingView->flushConsole();

Source/Heavy/WASMExporter.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,13 @@ class WASMExporter : public ExporterBase {
9595
if (shouldQuit)
9696
return true;
9797

98+
auto compileString = args.joinIntoString(" ");
99+
exportingView->logToConsole("Command: " + compileString + "\n");
100+
98101
#if JUCE_WINDOWS
99-
auto buildScript = "source " + emsdkPath.replaceCharacter('\\', '/') + "/emsdk_env.sh; " + args.joinIntoString(" ");
102+
auto buildScript = "source " + emsdkPath.replaceCharacter('\\', '/') + "/emsdk_env.sh; " + compileString;
100103
#else
101-
auto buildScript = "source " + emsdkPath + "/emsdk_env.sh; " + args.joinIntoString(" ");
104+
auto buildScript = "source " + emsdkPath + "/emsdk_env.sh; " + compileString;
102105
#endif
103106

104107
Toolchain::startShellScript(buildScript, this);

0 commit comments

Comments
 (0)