1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Autovala: Auto-Generating CMake Files For Vala Code

Free Software

Published on 09 February 2014 10:41 AM EST
Written by Michael Larabel in Free Software
7 Comments

For those tired of manually making CMake files for your software's build system, Autovala is a new project developed by a Phoronix reader that seeks to automate the process of generating CMake scripts.

The developer behind Autovala, Sergio Costas, wrote into Phoronix this morning to explain his project. Costas explained, "The idea behind Autovala is that CMake is a very powerful tool, but writing its configuration files is boring and repetitive, so why don't let the computer to do it automatically? To do so, Autovala is divided in two parts. The main one generates the CMake files itself, starting from a descriptive configuration file. There, instead of putting things like 'install this file here, that file there...', you just define things like 'this is an icon, this is a manpage, this is a binary that uses these source files and these packages...', and Autovala automagically determines where to install them. To do so, it even examines the files itself, so, for example, icons, it will check its size and type to decide whether to put it in 'scalable', '16x16'... Or for manpages, it automatically converts them from any of the supported formats to groff."

Additionally, "the second part, that, in fact, runs before the main one, simplifies the process further, by actually checking the files currently available in the hard disk and generating the configuration file. To do so, the project must follow a precise folder hierarchy (/src for source files, /data/icons for icons, and so on). This hierarchy can also be automatically created with Autovala before starting the project. It even peeps inside source files to determine which packages are needed to compile them with Vala. This part can also be called as many times as the user need, after adding new files. It is possible to manually tweak the configuration file after being created by the automated generator, in order to fix incorrect assumptions made by it, like putting all the source files in a single binary instead of creating two binaries, one with one half and one with the other half, and so on. Of course, these changes remains after running again the automatic generator, so it is possible to add new files inside a folder after having tweaked the configuration file and just run Autovala again to add them to the configuration file, and everything should be added in the right way, taking into account the changes made by the user before."

The developer says Autovala should be flexible to work with about 95% of the Vala projects out in the wild and can be used for generating libraries and not only binaries. Right now only CMake is supported but Automake support could be added.

Those interested in more details on this open-source project can find it hosted on GitHub.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. MSI X99S SLI PLUS On Linux
  2. NVIDIA GeForce GTX 970 Offers Great Linux Performance
  3. CompuLab Intense-PC2: An Excellent, Fanless, Mini PC Powered By Intel's i7 Haswell
  4. From The Atom 330 To Haswell ULT: Intel Linux Performance Benchmarks
Latest Linux Articles
  1. RunAbove: A POWER8 Compute Cloud With Offerings Up To 176 Threads
  2. 6-Way Ubuntu 14.10 Linux Desktop Benchmarks
  3. Ubuntu 14.10 XMir System Compositor Benchmarks
  4. Btrfs RAID HDD Testing On Ubuntu Linux 14.10
Latest Linux News
  1. RadeonSI/R600g HyperZ Support Gets Turned Back On
  2. openSUSE Factory & Tumbleweed Are Merging
  3. More Fedora Delays: Fedora 21 Beta Slips
  4. Mono Brings C# To The Unreal Engine 4
  5. Coreboot Now Has Support For Intel Broadwell Hardware
  6. Enlightenment's EFL 1.12 Alpha Has Evas GL-DRM Engine, OpenGL ES 1.1 Support
  7. GTK+ Lands Experimental Backend For Mir Display Server
  8. Ubuntu 14.10 Officially Released
  9. Mesa 10.4 Might Re-Enable HyperZ For R600g/RadeonSI
  10. Intel GVT-g GPU Virtualization Moves Closer
Latest Forum Discussions
  1. HOPE: The Ease Of Python With The Speed Of C++
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. Ubuntu 16.04 Might Be The Distribution's Last 32-Bit Release
  4. Linux hacker compares Solaris kernel code:
  5. Advertisements On Phoronix
  6. Users/Developers Threatening Fork Of Debian GNU/Linux
  7. AMD Releases UVD Video Decode Support For R600 GPUs
  8. Proof that strlcpy is un-needed