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. Rosewill RS-MI-01: An Ultra Low-Cost Mini-ITX Chassis
  2. D-Link DCS-2330L HD Wireless Network Camera
  3. Gigabyte AM1M-S2H
  4. AMD's New Athlon/Semprons Give Old Phenom CPUs A Big Run For The Money
Latest Linux Articles
  1. Red Hat Enterprise Linux 7.0 RC Benchmarks
  2. AMD Catalyst 14.4 Brings Few Linux Performance Improvements
  3. The Performance Of Fedora 20 Updated
  4. Clang Fights GCC On AMD's Athlon AM1 APU With Jaguar Cores
Latest Linux News
  1. More Steam Linux Tests/Benchmarks Might Be Coming
  2. NVIDIA's Amazing Single-Board ARM Computer Might Be Delayed
  3. Fedora 21 To Get A Playground, New Features
  4. PC-BSD Is Developing Its Own Desktop Environment
  5. Valve Is Bringing VOGL To Windows & Working On Regression Tests
  6. Canonical Is Taking Over Linux 3.13 Kernel Maintenance
  7. Google Web Designer Is Now Natively Available On Linux
  8. Ubuntu 14.10 Is Codenamed The Utopic Unicorn
  9. Audacious 3.5 Lightweight Audio Player Released
  10. Steam Updated For Ubuntu 14.04 LTS, SteamOS
  11. DNF 0.5 Yum Replacement Now Supports Groups
  12. Red Hat Enterprise Linux 7.0 Is Looking Fantastic
Latest Forum Discussions
  1. HTPC-upgrade advice: AMD Richland A8-7600 or Kaveri A10-6700T ???
  2. The GNOME Foundation Is Running Short On Money
  3. What Else Would You Like To See On Phoronix This Spring?
  4. Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
  5. The Most Amazing OpenGL Tech Demo In 64kb
  6. Announcing radeontop, a tool for viewing the GPU usage
  7. New card. Open source drivers only.
  8. Script for Fan Speed Control