forked from nifanfa/MOOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MOOS.bfa
30 lines (25 loc) · 1.75 KB
/
MOOS.bfa
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
# BFlatA verb and project to build
## these two lines must present at the start in order.
build
D:\Repos\MOOS\MOOS\MOOS.csproj
-h:d:\repos\moos\
# Base lib selection:
## If there's <NoStdLib> tag in .csproj, you don't have to add this line below
--stdlib None
--libc none
# Use external linker:
## The linker comes with BFlat has some problem with MSVC libs, we'll use MSVC Linker instead.
--linker:"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64\link.exe"
# Additional linker args:
## Due to bflat's arg parsing bug, spaces in path does not work, may be replaced with short filenames like below or use single quotes "'" as inner quotation.
--ldflags "/libpath:'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\lib\x64'"
## The following line is not neccessary if you want an optimized release build
--ldflags "/DEBUG"
# Prebuild actions:
-pra:"'$(MSBuildStartupDirectory)\Tools\7-Zip\7z.exe' a '$(MSBuildStartupDirectory)\Tools\grub2\boot\ramdisk.tar' '$(MSBuildStartupDirectory)\Ramdisk\*'"
-pra:"'$(MSBuildStartupDirectory)\Tools\nasm.exe' -fbin '$(MSBuildStartupDirectory)\Tools\Trampoline.asm' -o trampoline.o"
-pra:"'$(MSBuildStartupDirectory)\Tools\nasm.exe' -fbin '$(MSBuildStartupDirectory)\Tools\EntryPoint.asm' -o loader.o"
# Postbuild actions:
-poa:cmd.exe /c copy /b loader.o + moos.exe "$(MSBuildStartupDirectory)\Tools\grub2\boot\kernel.bin"
-poa:"'$(MSBuildStartupDirectory)\Tools\mkisofs.exe' -relaxed-filenames -J -R -o MOOS.iso -b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table '$(MSBuildStartupDirectory)\Tools\grub2'"
-poa:"'D:\Program Files (x86)\VMware\VMware Player\vmplayer.exe' '$(MSBuildStartupDirectory)\Tools\VMWare\MOOS\MOOS.flat.vmx'"