-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild_Asia_v104.bat
46 lines (36 loc) · 876 Bytes
/
build_Asia_v104.bat
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
44
45
46
@echo off
if not exist "%LLVM_PATH%\bin\clang.exe" (
goto no_llvm
)
if not exist "%LLVM_PATH%\bin\ld.lld.exe" (
goto no_llvm
)
if not defined APPVEYOR (
if not exist "tools\bin\PatchElf.exe" (
goto no_patchelf
)
if not exist "bin\Asia_v104\boot.elf" (
goto no_boot
)
)
if not defined APPVEYOR (
nmake /nologo /f Makefile.mak TARGET=Asia_v104
) else (
nmake /nologo /f Makefile.mak TARGET=Asia_v104 bin\Asia_v104\debug.elf
)
exit /B 0
:no_llvm
echo Could not find LLVM.
echo Please ensure the %%LLVM_PATH%% environment variable is set.
pause
exit /B 1
:no_patchelf
echo Could not find tools\bin\PatchElf.exe.
echo Please open tools\Tools.sln and compile the solution in Debug mode.
pause
exit /B 1
:no_boot
echo Could not find bin\Asia_v104\boot.elf.
echo Please copy the decrypted EBOOT to bin\Asia_v104\boot.elf.
pause
exit /B 1