-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.nut
43 lines (32 loc) · 875 Bytes
/
build.nut
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/squirrelsh
local qmakeOpts = [ "-config", "release" ];
local makeTool = "make";
if (platform() == "macosx") {
qmakeOpts.append("-spec");
qmakeOpts.append("macx-g++");
}
printl("Entering directory: iTestServer");
chdir("iTestServer");
printl("Running LRELEASE (translations)");
run("lrelease", [ "iTestServer.pro" ]);
printl("Leaving directory: iTestServer");
printl("Entering directory: iTestClient");
chdir("../iTestClient");
printl("Running LRELEASE (translations)");
run("lrelease", [ "iTestClient.pro" ]);
printl("Leaving directory: iTestClient");
chdir("..");
printl("Running QMAKE");
run("qmake", qmakeOpts);
switch (getenv("QMAKESPEC"))
{
case "win32-g++":
makeTool = "mingw32-make";
break;
case "win32-msvc":
case "win32-msvc.net":
case "win32-msvc2005":
makeTool = "nmake";
}
printl("Running " + makeTool + " (compiling)");
run(makeTool);