Re: [Vala] Autovala: new program for developers



The process is divided in two stages:

   * the first stage search the project's folders and creates a custom
project file with what it supposes is the right-way-to-do(tm)
   * the second stage takes that custom project file and generates the
CMakeLists.txt files

In between you can modify the custom project file to do some changes and
customize how you want to compile it.

About your specific questions:

  1) you can add to the custom project file an "ignore" statement to
avoid Autovala use a file/folder
  1b) It's not possible to add conditional compilation directly, but you
can use an "include" statement in the project file to append a
manually-written CMake file to the end of the automatically generated
one, adding your specific commands

  2) Not yet, but is a good idea

Keep in mind that the idea for Autovala is to simplify the most common
cases, so you can't expect to be able to use in the 100% of the
projects, but only in the 90%. But that's the idea: for simple projects,
where you just need the most basic CMake things and manually writing the
files would be too hard, use Autovala; for complex projects use CMake
directly.

Even there's another possibility: use Autovala to generate the common
parts (this is: installing icons, documentation, po files and so on),
and manually write the parts for compiling your code.

El 30/03/13 18:25, Tal Hadad escribió:
This is sound very attractive, even I don't like CMake.

I have a few question tough:
1. I've read autovala search autocratically for vala files.
Can I disable this feature?
Supposing I want to compile some file only on some condition, can it be possible?

2. Can a C files be used with Vala?
Like using --use-fast-vapi and adding a C file to complication.

Hope the best for your tool.
Tal

From: tarnyko tarnyko net
To: vala-list gnome org
Date: Sat, 30 Mar 2013 16:14:00 +0100
Subject: Re: [Vala] Autovala: new program for developers

Nice ! Thanks for your work, will check that when I have time. 

Regards,
Tarnyko 

rastersoft writes: 

Hi all: 

Several days ago, another user commented in Elementary Dev list that
using CMake with Vala was quite hard and difficult. 

After thinking about it, I reached the conclusion that using CMake is
quite boring and repetitive, so I said to myself: why not creating a
tool that automatically generates the CMakeLists.txt files, based on
several rules and heuristics? 

The result is Autovala. It not only deduces where to put each file and
how to compile the binaries or libraries from the sources, but also
automagically finds the packages used in each project, and passes them
to the compiler. It also creates automatically the .gir and .vapi files
for libraries. 

You have a longer and more precise description in the README file, in
the github repository: 

    https://github.com/rastersoft/autovala 

It is still an alpha version, but fully usable. It still lacks some
minor things, like generating the .pc file for pkg-config, and other
things. For those I will need some help. If someone volunteers... 

Enjoy it! 

-- 
Nos leemos
                     RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com 

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
                                        
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list


-- 
Nos leemos
                         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]