# valabuild Tool to build a vala project in an easier way. It relies on a configuration file (.vlp) keeping the list of dependencies and file to include in the build. To build the tool, just run the build.sh Prerequisites: valac needs to be installed, with the associated dependencies (pkg-config, libxml2, libgio2). Once Built, the tool can be run to build a project. /path/to/the/exec/valabuild /path/to/the/project/to/build either path can be relative or absolute. Notes: - The tool will not bring missing dependencies so the prerequisites packaged are assumed to be present. The errors given by the valac compiler should be enough to solve the missing libraries. - The tool has been kept with as few dependencies as possible, to work on a system where a simple hello word would compile in vala. - The tool is really just building a command line that is calling valac, with the predefined dependencies and arguments in the configuration file. This is just to simplify the recurrent building of a project. - The tool generates a sh script with the valac build command so that it doesn't need to be called every time. - The tool also generate a start script for the program (unless this is a library type), in order to set the library path and correct working directory. - The tool will generate the vapi and header files for library type project in the same directory as the library object. TODO: - recurse in the subdirectories to build multiple projects in one command - option to launch predefined commands pre/post build - find the missing dependencies and give a list of commands to run (sudo like prompt would be ideal) - allow for non versioned dependencies to be used and resolved at runtime. - generate a template vlp to kickstart a project if you prefer to use Meson for the build, the alternate way from a command line is: meson then go to the build directory and use ninja to initiate the build i.e. from valabuild directory: meson . build cd build ninja in order to use meson, you need to install ninja-build and meson package. They are small in size and handy anyway :) Why use valabuild and not meson all the time ? meson is great and could be used in most cases. However, the reason valabuild was created is to do some build with particular scenarios, specific to Cadexis. 1- Avoid the dependencies of architecture and the need to select a particular version of library. 2- Automatic download and check of dependent libraries in certain cases 3- Check missing dependencies and propose the command to import them So there is no real reason to use valabuild unless you have similar cases that you would like to resolve. You should note that valabuild also generate the meson build file (TODO actually...) so you should be able to use meson to build any of the project that have been originally compiled with valabuild. For more information on meson and vala, visit https://mesonbuild.com/Vala.html#building-libraries For more information on valabuild, please visit https://www.cadexis.com to get contact information