aboutsummaryrefslogtreecommitdiff
path: root/xA/Makefile
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-09-14 07:32:44 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-11-12 12:02:10 +0100
commit1635a730e819b9e6bb2d7ca1c8047fb737e5a3f4 (patch)
tree829c2f701a0a8031c95bb65ee88957d407baec0d /xA/Makefile
parenta64b1152a175a611ef879c2ceb2323f201f77dec (diff)
downloadxK-1635a730e819b9e6bb2d7ca1c8047fb737e5a3f4.tar.gz
xK-1635a730e819b9e6bb2d7ca1c8047fb737e5a3f4.tar.xz
xK-1635a730e819b9e6bb2d7ca1c8047fb737e5a3f4.zip
Add a Fyne frontend for xC
It is fairly mediocre all around, but also generally usable, natively covering mobile platforms.
Diffstat (limited to 'xA/Makefile')
-rw-r--r--xA/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/xA/Makefile b/xA/Makefile
new file mode 100644
index 0000000..da62944
--- /dev/null
+++ b/xA/Makefile
@@ -0,0 +1,34 @@
+.POSIX:
+.SUFFIXES:
+.SUFFIXES: .png .svg
+AWK = env LC_ALL=C awk
+
+tools = ../liberty/tools
+outputs = FyneApp.toml xA proto.go xA.png xA-highlighted.png beep.raw
+all: $(outputs)
+
+FyneApp.toml: ../xK-version
+ printf "\
+ [Details]\n\
+ Icon = 'xA.png'\n\
+ Name = 'xA'\n\
+ ID = 'name.janouch.xA'\n\
+ Version = '$$(cat ../xK-version)'\n\
+ Build = 1\n\
+ \n\
+ [LinuxAndBSD]\n\
+ GenericName = 'IRC Client'\n\
+ Categories = ['Network', 'Chat', 'IRCClient']\n" > $@
+.svg.png:
+ rsvg-convert --output=$@ -- $<
+beep.raw:
+ sox -Dr 44100 -c 1 -e signed-integer -b 16 -L -n $@ \
+ synth 0.1 0 25 triangle 800 vol 0.5 fade t 0 -0 0.005 pad 0 0.05
+proto.go: $(tools)/lxdrgen.awk $(tools)/lxdrgen-go.awk ../xC.lxdr
+ $(AWK) -f $(tools)/lxdrgen.awk -f $(tools)/lxdrgen-go.awk \
+ -v PrefixCamel=Relay ../xC.lxdr > $@
+xA: xA.go proto.go ../xK-version xA.png xA-highlighted.png beep.raw
+ go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@ \
+ -gcflags=all="-N -l"
+clean:
+ rm -f $(outputs)