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. AMD's New Athlon/Semprons Give Old Phenom CPUs A Big Run For The Money
  2. 13-Way Low-End GPU Comparison With AMD's AM1 Athlon
  3. ASUS AM1I-A: A Mini-ITX Board For Socketed Kabini APUs
  4. Mini-Box M350: A Simple, Affordable Mini-ITX Case
Latest Linux Articles
  1. How Much Video RAM Is Needed For Catalyst R3 Graphics?
  2. Ubuntu 12.04 LTS vs. 14.04 LTS Cloud Benchmarks
  3. Ubuntu 12.04.4 vs. 13.10 vs. 14.04 LTS Desktop Benchmarks
  4. AMD OpenCL Performance With AM1 Kabini APUs
Latest Linux News
  1. OpenELEC 4.0 Beta 6 Works On 4K Graphics, RPi ALSA
  2. Linux 3.15 Lands Some DRM Graphics Driver Fixes
  3. AMD Is Disabling DPM Support For RV770 GPUs
  4. ReactOS Working On A Community Windows OS
  5. Borderlands Is Being Considered For Linux
  6. Mesa 10.0 & 10.1 Stable Get Updated
  7. Getting Hit By The Variable Performance Of The Public Cloud
  8. Git 2.0 Test Releases Begin With Many Changes
  9. Wine 1.7.17 Works On Its Task Scheduler, C Run-Time
  10. The Improv ARM Board Still Isn't Shipping; Riding A Dead Horse?
  11. Debian To Maintain 6.0 Squeeze As An LTS Release
  12. Wasteland 2 Is Finally Released For Linux Gamers
Latest Forum Discussions
  1. The GNOME Foundation Is Running Short On Money
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. Catalyst 14.3 Beta
  4. Suggestions about how to make a Radeon HD 7790 work decently?
  5. Radeon 8000M problematic on Linux?
  6. Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
  7. After Jack Keane, RuseSoft will briing Ankh 3 to Linux through Desura
  8. Suspected PHP Proxy Issue