print("Compiling vala files...") print("Changed: ", json.encode_pretty(auResourceCompiler.changedFiles)) print("Unchanged: ", json.encode_pretty(auResourceCompiler.unchangedFiles)) if (#auResourceCompiler.changedFiles == 0) then return end local args = auResourceCompiler.arguments.args local function addFile(file) args = args .. " \"" .. file .. "\"" end auForEach(auResourceCompiler.changedFiles, addFile) auForEach(auResourceCompiler.unchangedFiles, addFile) local function findVala() if (os.host() == "windows") then local auValac = Aurora.Settings.sAbsValac or path.join(Aurora.Settings.sAbsWin32, "valac.exe") if (os.isfile(auValac)) then return "\"".. auValac .. "\"" end local drive = path.getdrive(auGetRoot()) local localDriveClang = drive .. ":\\msys64\\clang64\\bin\\valac.exe" if (os.isfile(localDriveClang)) then return localDriveClang end local localDriveMingw = drive .. ":\\msys64\\mingw64\\bin\\valac.exe" if (os.isfile(localDriveMingw)) then return localDriveMingw end local localCClang = "C:\\msys64\\clang64\\bin\\valac.exe" if (os.isfile(localCClang)) then return localCClang end local localCMingw = "C:\\msys64\\mingw64\\bin\\valac.exe" if (os.isfile(localCMingw)) then return localCMingw end end return "vallac" end local exitCode = resourceRun(findVala() .. " " .. args) if (auResourceCompiler.arguments.symHack) then auRequire("Core/Vala/valaSym2Def") end resourceExit(exitCode)