Browse Source

New compile method

Alison Watson 5 years ago
parent
commit
f5f5e2d171
4 changed files with 44 additions and 8 deletions
  1. 1
    2
      .gitignore
  2. 12
    0
      makepk7.bat
  3. 1
    6
      pk7/LOADACS.txt
  4. 30
    0
      pk7/_compile.bat

+ 1
- 2
.gitignore View File

@@ -1,3 +1,2 @@
1 1
 nocommit/*
2
-*.o
3
-*.bat
2
+*.o

+ 12
- 0
makepk7.bat View File

@@ -0,0 +1,12 @@
1
+@echo OFF
2
+setlocal
3
+set proj_name=doomCW
4
+set proj_path=%~dp0
5
+set proj_path=%proj_path:~0,-1%
6
+set proj_path=%proj_path%\pk7\
7
+rem 7zip path
8
+set comp_path=..\..\Utils\Peazip\res\7z\
9
+set PATH=%PATH%;%comp_path%
10
+7z a out.7z %proj_path%\*
11
+rename out.7z %proj_name%.pk7
12
+endlocal

+ 1
- 6
pk7/LOADACS.txt View File

@@ -1,6 +1 @@
1
-CWAtchMenu
2
-CWAttach
3
-CWGetVal
4
-CWGetAttachment
5
-CWKeyFinder
6
-CWLaser
1
+CWMain

+ 30
- 0
pk7/_compile.bat View File

@@ -0,0 +1,30 @@
1
+@echo off
2
+color F
3
+setlocal
4
+
5
+set acc-path=C:\Users\Graham\Desktop\Utils\dh-acc
6
+set PATH=%PATH%;%acc-path%
7
+set SRC=.\script
8
+set OBJ=.\acs
9
+set CMD=dh-acc --named-scripts --auto-stack-size=0 -Z -i %SRC%\inc -c
10
+
11
+echo Compiling DS files...
12
+%CMD% %SRC%\CWAtchMenu.ds -o %OBJ%\CWAtchMenu.o
13
+%CMD% %SRC%\CWAttach.ds -o %OBJ%\CWAttach.o
14
+%CMD% %SRC%\CWGetVal.ds -o %OBJ%\CWGetVal.o
15
+%CMD% %SRC%\CWKeyFinder.ds -o %OBJ%\CWKeyFinder.o
16
+%CMD% %SRC%\CWLaser.ds -o %OBJ%\CWLaser.o
17
+%CMD% %SRC%\CWGetAttachment.ds -o %OBJ%\CWGetAttachment.o
18
+echo Done! Compiling final object file...
19
+dh-acc --named-scripts --auto-stack-size=0 -Z -i %SRC%\inc %OBJ%\CWAtchMenu.o %OBJ%\CWAttach.o %OBJ%\CWGetVal.o %OBJ%\CWKeyFinder.o %OBJ%\CWLaser.o %OBJ%\CWGetAttachment.o -o %OBJ%\CWMain.o
20
+del %OBJ%\CWAtchMenu.o
21
+del %OBJ%\CWAttach.o
22
+del %OBJ%\CWGetVal.o
23
+del %OBJ%\CWKeyFinder.o
24
+del %OBJ%\CWLaser.o
25
+del %OBJ%\CWGetAttachment.o
26
+
27
+echo All done! Press any key to exit.
28
+
29
+endlocal
30
+pause >nul

Loading…
Cancel
Save