Modernize and simplify Meson files
Review Request #2038 — Created Nov. 5, 2022 and submitted
Use f-strings and some better loops.
G_GNUC_UNUSED, and is also unused.
Also remove checks for old Meson which I thought I looked for before, but didn't find.
Compiled and ran