Commit 3b85669

Nick committed on
Working on postbuild script
commit 3b856695d35f4c6078d5b1032eef45a33942b8f6 parent 92da168
2 changed files +47−0
ModifiedGBEmu.lpi +12−0
@@ -72,6 +72,9 @@
72 <ShowHintsForSenderNotUsed Value="True"/> 72 <ShowHintsForSenderNotUsed Value="True"/>
73 </Verbosity> 73 </Verbosity>
74 <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL -dPRODUCTION"/> 74 <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL -dPRODUCTION"/>
75 <ExecuteAfter>
76 <Command Value="instantfpc PostBuild.pas $Path($(TargetFile))"/>
77 </ExecuteAfter>
75 </Other> 78 </Other>
76 </CompilerOptions> 79 </CompilerOptions>
77 </Item2> 80 </Item2>
@@ -128,6 +131,9 @@
128 <ShowHintsForSenderNotUsed Value="True"/> 131 <ShowHintsForSenderNotUsed Value="True"/>
129 </Verbosity> 132 </Verbosity>
130 <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL -dPRODUCTION"/> 133 <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL -dPRODUCTION"/>
134 <ExecuteAfter>
135 <Command Value="instantfpc PostBuild.pas $Path($(TargetFile))"/>
136 </ExecuteAfter>
131 </Other> 137 </Other>
132 </CompilerOptions> 138 </CompilerOptions>
133 </Item3> 139 </Item3>
@@ -187,6 +193,9 @@
187 <ShowHintsForSenderNotUsed Value="True"/> 193 <ShowHintsForSenderNotUsed Value="True"/>
188 </Verbosity> 194 </Verbosity>
189 <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL -dPRODUCTION"/> 195 <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL -dPRODUCTION"/>
196 <ExecuteAfter>
197 <Command Value="instantfpc PostBuild.pas $Path($(TargetFile))"/>
198 </ExecuteAfter>
190 </Other> 199 </Other>
191 </CompilerOptions> 200 </CompilerOptions>
192 </Item4> 201 </Item4>
@@ -384,6 +393,9 @@
384 <ShowAll Value="True"/> 393 <ShowAll Value="True"/>
385 </Verbosity> 394 </Verbosity>
386 <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL -dDEVELOPMENT"/> 395 <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL -dDEVELOPMENT"/>
396 <ExecuteAfter>
397 <Command Value="instantfpc PostBuild.pas $Path($(TargetFile))"/>
398 </ExecuteAfter>
387 </Other> 399 </Other>
388 </CompilerOptions> 400 </CompilerOptions>
389 </CONFIG> 401 </CONFIG>
AddedPostBuild.pas +35−0
@@ -0,0 +1,35 @@
1 {
2 This script runs after build.
3
4 In a production build, it populates the directory with
5 - Halt.gb
6 - hUGEDriver
7 - The manual
8 - PixeliteTTF
9 - Sample Songs
10
11 In a development build, it hardlinks
12 - Halt.gb
13 - hUGEDriver
14
15 into the build output folder so that the driver and tracker can be developed
16 simultaneously.
17 }
18
19 {$ifdef UNIX}uses BaseUnix;{$endif}
20 {$ifdef WINDOWS}uses Windows;{$endif}
21
22 procedure Mklink(Src, Dst: String);
23 begin
24 {$ifdef UNIX}
25 // TODO....
26 {$endif}
27
28 {$ifdef WINDOWS}
29 // Todo...
30 {$endif}
31 end;
32
33 begin
34
35 end.