forked from LeenkxTeam/LNXSDK
Update Aura
This commit is contained in:
@ -7,12 +7,13 @@ const targetsHL = ["windows-hl", "linux-hl", "macos-hl", "osx-hl", "android-hl",
|
||||
const targetsCPP = ["windows", "linux", "macos", "osx"];
|
||||
const targetsHTML5 = ["html5", "debug-html5"];
|
||||
|
||||
function addBackends(project) {
|
||||
project.localLibraryPath = "Backends";
|
||||
async function addBackends(project) {
|
||||
//project.localLibraryPath = "Backends";
|
||||
|
||||
const isHL = targetsHL.indexOf(Project.platform) >= 0;
|
||||
|
||||
if (isHL) {
|
||||
await project.addProject("Backends/hl");
|
||||
project.addDefine("AURA_BACKEND_HL");
|
||||
console.log("[Aura] Using HL/C backend");
|
||||
}
|
||||
@ -31,7 +32,7 @@ async function main() {
|
||||
project.addSources('Sources');
|
||||
|
||||
if (process.argv.indexOf("--aura-no-backend") == -1) {
|
||||
addBackends(project);
|
||||
await addBackends(project);
|
||||
}
|
||||
else {
|
||||
project.addDefine("AURA_NO_BACKEND");
|
||||
|
||||
Reference in New Issue
Block a user