Implement support for Mingw in repo

This commit is contained in:
James 2017-09-07 23:35:28 +10:00
parent 4e4ef6e9b7
commit 7573d66aa7
5 changed files with 48 additions and 23 deletions

17
scripts/mingw-canary.qs Normal file
View file

@ -0,0 +1,17 @@
function Component() {
if (systemInfo.kernelType === "winnt") {
component.setValue("Virtual", "false");
component.setValue("Default", "false"); // bleeding
} else {
component.setValue("Virtual", "true");
component.setValue("Enabled", "false");
}
}
Component.prototype.createOperations = function()
{
component.createOperations();
component.addOperation("CreateShortcut", "@TargetDir@/canary-mingw/citra-qt.exe", "@StartMenuDir@/Citra Canary.lnk",
"workingDirectory=@TargetDir@/canary-mingw");
}

17
scripts/mingw-nightly.qs Normal file
View file

@ -0,0 +1,17 @@
function Component() {
if (systemInfo.kernelType === "winnt") {
component.setValue("Virtual", "false");
component.setValue("Default", "true");
} else {
component.setValue("Virtual", "true");
component.setValue("Enabled", "false");
}
}
Component.prototype.createOperations = function()
{
component.createOperations();
component.addOperation("CreateShortcut", "@TargetDir@/nightly-mingw/citra-qt.exe", "@StartMenuDir@/Citra Nightly.lnk",
"workingDirectory=@TargetDir@/nightly-mingw");
}

View file

@ -1,6 +1,6 @@
function Component() {
if (systemInfo.kernelType === "winnt") {
component.setValue("Virtual", "false");
component.setValue("Virtual", "true"); // Hidden by default
component.setValue("Default", "false"); // bleeding
} else {
component.setValue("Virtual", "true");

View file

@ -1,7 +1,7 @@
function Component() {
if (systemInfo.kernelType === "winnt") {
component.setValue("Virtual", "false");
component.setValue("Default", "true");
component.setValue("Virtual", "true");
component.setValue("Default", "false"); // msvc
} else {
component.setValue("Virtual", "true");
component.setValue("Enabled", "false");
@ -12,6 +12,6 @@ Component.prototype.createOperations = function()
{
component.createOperations();
component.addOperation("CreateShortcut", "@TargetDir@/nightly/citra-qt.exe", "@StartMenuDir@/Citra.lnk",
component.addOperation("CreateShortcut", "@TargetDir@/nightly/citra-qt.exe", "@StartMenuDir@/Citra Nightly.lnk",
"workingDirectory=@TargetDir@/nightly");
}