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 Articles & Reviews
  1. Samsung 850 EVO SSD Linux Benchmarks
  2. Kubuntu 15.04 Is Turning Out Quite Nice, Good Way To Try Out The Latest KDE
  3. 5-Way Linux Distribution Comparison On The Core i3 NUC
  4. OCZ ARC 100 Linux SSD Benchmarks
  5. Lenovo ThinkPad X1 Carbon Works Great As A Linux Ultrabook
  6. Transcend SSD370 256GB
Latest Linux News
  1. Mozilla Thunderbird Adoption Climbs, Thunderbird 38 In May
  2. The Most Popular Linux Benchmark Results On OpenBenchmarking.org
  3. Intel's Graphics Driver For Linux 4.1 Will Have More XenGT vGPU Support
  4. PlayOnLinux 4.2.6 Fixes A Number Of Issues
  5. Mesa 10.5-RC3 Now Available To Test Improved GPU Drivers
  6. New Specifications On The Alleged Ubuntu Tablet
  7. LLVM 3.6 Officially Released With Many Compiler Advantages
  8. VLC 2.2 "Weathermax" Brings Better VP9 & H.265 Support
  9. Open-Source .NET On Linux Continues Maturing
  10. Features Coming For The Imminent Xfce 4.12 Release
Most Viewed News This Week
  1. Linux 4.0-RC1 Tagged, Linux 4.0 Will Bring Many Notable Improvements
  2. Screenshots Of The GNOME 3.16 Changes
  3. More Proof That Allwinner Is Violating The GPL
  4. Linux 4.0 Doesn't Have The Weirdest Codename
  5. Mir Now Depends Upon C++14
  6. GNOME 3.16 Beta Brings Wayland-Based Log-in Screen
  7. LLVM Clang Compiling The Linux Kernel Is A Big Topic For 2015
  8. Krita 2.9 Released, Their Biggest Release Ever
%%CLICK_URL_UNESC%%