small-tech / watson

Watson is a best-practices application template for elementary OS 6 (Odin).
GNU General Public License v3.0
46 stars 3 forks source link

Meson build file: ensure all vala files in project are built without manually listing them #9

Closed aral closed 2 years ago

aral commented 3 years ago

Currently, you have to add any new vala files you create to the meson.build file manually.

This is error-prone and laborious.

We should be able to discover and add the files automatically in the build script. Any vala file in the project should automatically be built.

aral commented 2 years ago

While this is “error-prone and laborious”, I’m not sure if the effort to automate it is worth it given the opportunity to introduce new bugs, etc. Also, if I implemented a task script for this (e.g., task/update-build-configuration), it would also create the same expectation for other configuration files (like translations).

I’m not sure about this so I’m going to close it for now. Might reopen later if there’s interest.