Skip to content

Commit

Permalink
move build properties to .properties
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandrissen committed Nov 18, 2023
1 parent 4825e58 commit 5643f15
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 56 deletions.
9 changes: 8 additions & 1 deletion .properties
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
version = v2.37
version = v2.38

python = python
pyz80 = ../pyz80/pyz80.py
simcoupe= C:\\Program Files\\SimCoupe\\SimCoupe.exe
mapfile = true

debug = tracker
86 changes: 32 additions & 54 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@

<property file=".properties" />

<property name="python" value="python" />
<property name="pyz80" value="../pyz80/pyz80.py" />
<property name="simcoupe" location="C:\Program Files\SimCoupe\SimCoupe.exe" />
<property name="mapfile" value="true" />

<!-- assemble -->

<macrodef name="assemble">
Expand Down Expand Up @@ -43,9 +38,7 @@
<!-- create-disk -->

<target name="create-disk">

<create-disk b-dos="true" />

<create-disk b-dos="true" launch="false" />
</target>

<macrodef name="create-disk">
Expand All @@ -54,6 +47,7 @@
<attribute name="b-dos" default="false" />
<attribute name="b-dos-atom-lite" default="false" />
<attribute name="b-dos-trinity" default="false" />
<attribute name="launch" default="true" />

<sequential>

Expand All @@ -72,34 +66,30 @@ defm "${version}"
<exec executable="${python}" failonerror="true">
<arg file="${pyz80}" />

<arg line="-I res/dos/samdos2" if:true="@{samdos}" />
<arg line="-I res/dos/MDOS23" if:true="@{masterdos}" />
<arg line="-I res/dos/B-DOS15a" if:true="@{b-dos}" />
<arg line="-I res/dos/AL-BDOS15a" if:true="@{b-dos-atom-lite}" />
<arg line="-I res/dos/bdos15t-6" if:true="@{b-dos-trinity}" />

<arg line="-I res/loading.$" />
<arg line="-I obj/tracker" />
<arg line="-I obj/burstplayer" />
<arg line="-I obj/loader" />
<arg line="-I obj/demo" />
<arg line="-I res/test.m" />
<!-- <arg line="-I res/mods/odeprotr.m" /> -->
<!-- <arg line="-I res/mods/face_day.m" /> -->
<!-- <arg line="-I res/mods/think_tw.m" /> -->
<!-- <arg line="-I res/mods/keysimag.m" /> -->
<!-- <arg line="-I res/mods/mixified.m" /> -->
<!-- <arg line="-I res/mods/oroincen.m" /> -->
<!-- <arg line="-I res/mods/wander_2.m" /> -->
<arg value="-I" />
<arg file="res/dos/samdos2" if:true="@{samdos}" />
<arg file="res/dos/MDOS23" if:true="@{masterdos}" />
<arg file="res/dos/B-DOS15a" if:true="@{b-dos}" />
<arg file="res/dos/AL-BDOS15a" if:true="@{b-dos-atom-lite}" />
<arg file="res/dos/bdos15t-6" if:true="@{b-dos-trinity}" />

<arg value="-I" /><arg file="res/loading.$" />
<arg value="-I" /><arg file="obj/tracker" />
<arg value="-I" /><arg file="obj/burstplayer" />
<arg value="-I" /><arg file="obj/loader" />
<arg value="-I" /><arg file="obj/demo" />

<arg value="-I" /><arg file="res/mods/way_too_sample.mod" />

<arg line="-o obj/SAM.MOD.player.${version}.mgt" />
<arg value="--nozip" />
<arg value="--mapfile=obj/boot.map" if:true="${mapfile}" />
<arg value="src/boot.s" />
</exec>

<!-- adjust to what needs debugging -->
<copy file="obj/demo.map" tofile="obj/SAM.MOD.player.${version}.map" if:true="${mapfile}" />
<copy file="obj/${debug}.map" tofile="obj/SAM.MOD.player.${version}.map" if:true="${mapfile}" />

<simcoupe disk="SAM.MOD.player.${version}.mgt" if:true="@{launch}"/>

</sequential>

Expand All @@ -120,22 +110,26 @@ defm "${version}"

</macrodef>

<!-- all -->

<target name="all-samdos" description="compile all, create disk and launch">
<!-- all - compile all, create disk and launch -->

<target name="all-samdos" description="">
<create-disk samdos="true" />
</target>

<simcoupe disk="SAM.MOD.player.${version}.mgt" />

<target name="all-b-dos-trinity" description="">
<create-disk b-dos-trinity="true" />
</target>

<target name="all-b-dos" description="compile all, create disk and launch">
<target name="all-b-dos-atom-lite" description="">
<create-disk b-dos-atom-lite="true" />
</target>

<target name="all-b-dos" description="">
<create-disk b-dos="true" />
</target>

<simcoupe disk="SAM.MOD.player.${version}.mgt" />

<target name="all-masterdos" description="">
<create-disk masterdos="true" />
</target>

<!-- assemble-test-mod -->
Expand All @@ -159,7 +153,7 @@ defm "${version}"

<exec executable="${python}" failonerror="true">
<arg file="${pyz80}" />
<arg line="-I res/mods/think_tw.m" />
<arg line="-I res/mods/think_tw.mod" />
<arg line="-I obj/burstplayer" />
<arg line="-I obj/tracker" />
<arg line="-o obj/example.mgt" />
Expand All @@ -168,22 +162,6 @@ defm "${version}"

</target>

<!-- test bustplayer -->

<target name="test-burstplayer" description="test burstplayer">

<exec executable="${python}" failonerror="true">
<arg file="${pyz80}" />
<arg line="-D testing" />
<arg value="--mapfile=obj/burstplayer.map" />
<arg line="-o obj/burstplayer.mgt" />
<arg value="src/burstplayer.s" />
</exec>

<simcoupe disk="burstplayer.dsk" />

</target>

<!-- clean -->

<target name="clean" description="clean obj">
Expand Down
2 changes: 1 addition & 1 deletion src/constants/text.version.i
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
; SAM MOD player version

defm "v2.37"
defm "v2.38"

0 comments on commit 5643f15

Please sign in to comment.