Commit 5292b06

Nick Faro committed on
Add build scripts
commit 5292b06406f348c70d263e2776488141805f009d parent 69b6715
3 changed files +25−5
ModifiedREADME.md +3−2
@@ -26,10 +26,11 @@ lazbuild --add-package-link src/bgrabitmap/bgrabitmap/bgrabitmappack.lpk
26 26
27 :: At this point, you'll successfully be able to build hUGETracker. 27 :: At this point, you'll successfully be able to build hUGETracker.
28 :: However, in order to run properly, it needs some extra files (SDL, halt.gb, fonts, etc) 28 :: However, in order to run properly, it needs some extra files (SDL, halt.gb, fonts, etc)
29 :: so run the following script to automatically set that up. If you're on Mac or Linux, 29 :: so run the following script to automatically set that up.
30 :: you can replicate the commands in it yourself.
31 30
32 setup-windows.cmd 31 setup-windows.cmd
32 :: or
33 ./setup-linux.sh
33 34
34 :: Now, you can either build and run hUGETracker from within Lazarus, 35 :: Now, you can either build and run hUGETracker from within Lazarus,
35 :: or run one of the following to just build a binary: 36 :: or run one of the following to just build a binary:
Addedsetup-linux.sh +17−0
@@ -0,0 +1,17 @@
1 set -x
2
3 BUILD_DIR=src/lib/Development/x86_64-linux
4
5 mkdir -p $BUILD_DIR
6
7 # Copy font
8 cp fonts/PixeliteTTF.ttf $BUILD_DIR/
9
10 # Compile halt.gb
11 rgbasm -E -i src/hUGEDriver/src -o hUGEDriver.obj src/hUGEDriver/src/hUGEDriver.asm
12 rgbasm -i src/hUGEDriver/src/include -o halt.obj src/halt.asm
13 rgblink -o $BUILD_DIR/halt.gb -n $BUILD_DIR/halt.sym halt.obj hUGEDriver.obj
14 rgbfix -vp0xFF $BUILD_DIR/halt.gb
15
16 # Link the hUGEDriver directory
17 ln -s src/hUGEDriver $BUILD_DIR/hUGEDriver
Modifiedsetup-windows.cmd +5−3
@@ -1,3 +1,5 @@
1 @echo on
2
1 set BUILD_DIR=src\lib\Development\x86_64-win64 3 set BUILD_DIR=src\lib\Development\x86_64-win64
2 set SDL_URL=https://github.com/libsdl-org/SDL/releases/download/release-2.26.2/SDL2-2.26.2-win32-x64.zip 4 set SDL_URL=https://github.com/libsdl-org/SDL/releases/download/release-2.26.2/SDL2-2.26.2-win32-x64.zip
3 5
@@ -11,10 +13,10 @@ rem Copy font
11 copy fonts\PixeliteTTF.ttf %BUILD_DIR%\ 13 copy fonts\PixeliteTTF.ttf %BUILD_DIR%\
12 14
13 rem Compile halt.gb 15 rem Compile halt.gb
14 rgbasm -E -i src\hUGEDriver -o hUGEDriver.obj src\hUGEDriver\hUGEDriver.asm 16 rgbasm -E -i src\hUGEDriver\src -o hUGEDriver.obj src\hUGEDriver\src\hUGEDriver.asm
15 rgbasm -i src\hUGEDriver\include -o halt.obj src\halt.asm 17 rgbasm -i src\hUGEDriver\src\include -o halt.obj src\halt.asm
16 rgblink -o %BUILD_DIR%\halt.gb -n %BUILD_DIR%\halt.sym halt.obj hUGEDriver.obj 18 rgblink -o %BUILD_DIR%\halt.gb -n %BUILD_DIR%\halt.sym halt.obj hUGEDriver.obj
17 rgbfix -vp0xFF %BUILD_DIR%\halt.gb 19 rgbfix -vp0xFF %BUILD_DIR%\halt.gb
18 20
19 rem Link the hUGEDriver directory 21 rem Link the hUGEDriver directory
20 mklink/J %BUILD_DIR%\hUGEDriver src\hUGEDriver 22 mklink/J %BUILD_DIR%\hUGEDriver src\hUGEDriver