Re: [Vala] Autovala: new program for developers

2013-04-14 Thread rastersoft
Yes, I was, precisely, the one with the problem :D

El 14/04/13 04:18, Jonas Kulla escribió:
 2013/4/14 Francis Giraldeau francis.girald...@gmail.com
 I have some problem to compile configuration.vala, seems related to Posix:


 /home/francis/workspace-vala/autovala/src/autovala_lib/configuration.c:2264:2:
 error: too many arguments to function ‘realpath’

 Here is the generated C code:

 _tmp35_ = realpath (_tmp34_, NULL, 0);

 The problem is that realpath takes only two arguments, but three are
 passed. This is not related to autovala, I can reproduce the problem
 with this small snippet:

 #!/usr/bin/vala --debug --verbose --save-temps --pkg posix

 using Posix;

 class Realpath : GLib.Object {

 public static int main(string[] args) {
 string path = Posix.realpath(realpath.vala);
 GLib.stdout.printf(test %s\n, path);
 return 0;
 }

 }

 I runs on Ubuntu 12.10 with vala-0.18. Does somebody else have this
 problem?

 Cheers,

 Francis

 Hi,

 I think that's something that came up recently on the list:
 https://mail.gnome.org/archives/vala-list/2013-March/msg00012.html

 Basically, the prototype in the vapi needs to be:

 [CCode (cheader_filename = stdlib.h)]
 public string? realpath (string path, [CCode (array_length=false)] uint8[]?
 resolved_path = null);

 Jonas
 ___
 vala-list mailing list
 vala-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/vala-list


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

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


Re: [Vala] Autovala: new program for developers

2013-04-14 Thread Alexander Krivács Schrøder
On 30.03.2013 02:34, rastersoft wrote:
 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

I think it's a bit of an unfortunate name choice, as it makes it sound
like it has something to do with the autotools suite... ;)

Regards,
Alexander K. Schrøder



signature.asc
Description: OpenPGP digital signature
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Autovala: new program for developers

2013-04-14 Thread rastersoft
I'm fully open to suggestions...

El 14/04/13 18:48, Alexander Krivács Schrøder escribió:
 On 30.03.2013 02:34, rastersoft wrote:
 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
 I think it's a bit of an unfortunate name choice, as it makes it sound
 like it has something to do with the autotools suite... ;)

 Regards,
 Alexander K. Schrøder



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

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

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


Re: [Vala] Autovala: new program for developers

2013-04-13 Thread Francis Giraldeau
On 2013-03-29 20:34, rastersoft wrote :
 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.
I have some problem to compile configuration.vala, seems related to Posix:

/home/francis/workspace-vala/autovala/src/autovala_lib/configuration.c:2264:2:
error: too many arguments to function ‘realpath’

Here is the generated C code:

_tmp35_ = realpath (_tmp34_, NULL, 0);

The problem is that realpath takes only two arguments, but three are
passed. This is not related to autovala, I can reproduce the problem
with this small snippet:

#!/usr/bin/vala --debug --verbose --save-temps --pkg posix

using Posix;

class Realpath : GLib.Object {

public static int main(string[] args) {
string path = Posix.realpath(realpath.vala);
GLib.stdout.printf(test %s\n, path);
return 0;
}

}

I runs on Ubuntu 12.10 with vala-0.18. Does somebody else have this problem?

Cheers,

Francis



smime.p7s
Description: Signature cryptographique S/MIME
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Autovala: new program for developers

2013-04-13 Thread Jonas Kulla
2013/4/14 Francis Giraldeau francis.girald...@gmail.com

 I have some problem to compile configuration.vala, seems related to Posix:


 /home/francis/workspace-vala/autovala/src/autovala_lib/configuration.c:2264:2:
 error: too many arguments to function ‘realpath’

 Here is the generated C code:

 _tmp35_ = realpath (_tmp34_, NULL, 0);

 The problem is that realpath takes only two arguments, but three are
 passed. This is not related to autovala, I can reproduce the problem
 with this small snippet:

 #!/usr/bin/vala --debug --verbose --save-temps --pkg posix

 using Posix;

 class Realpath : GLib.Object {

 public static int main(string[] args) {
 string path = Posix.realpath(realpath.vala);
 GLib.stdout.printf(test %s\n, path);
 return 0;
 }

 }

 I runs on Ubuntu 12.10 with vala-0.18. Does somebody else have this
 problem?

 Cheers,

 Francis


Hi,

I think that's something that came up recently on the list:
https://mail.gnome.org/archives/vala-list/2013-March/msg00012.html

Basically, the prototype in the vapi needs to be:

[CCode (cheader_filename = stdlib.h)]
public string? realpath (string path, [CCode (array_length=false)] uint8[]?
resolved_path = null);

Jonas
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Autovala: new program for developers

2013-04-05 Thread rastersoft
By the way... when you say:

Supposing I want to compile some file only on some condition, can it be 
possible?

Can you be more specific? Maybe there's a way of implementing it in an
easy way...

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: tarn...@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)
 ras...@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)
ras...@rastersoft.com  http://www.rastersoft.com

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


Re: [Vala] Autovala: new program for developers

2013-04-03 Thread rastersoft
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: tarn...@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)
 ras...@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)
ras...@rastersoft.com  http://www.rastersoft.com

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


Re: [Vala] Autovala: new program for developers

2013-03-30 Thread tarnyko
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)
ras...@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


Re: [Vala] Autovala: new program for developers

2013-03-30 Thread Tal Hadad
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: tarn...@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)
  ras...@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


Re: [Vala] Autovala: new program for developers

2013-03-30 Thread Mario Daniel Ruiz Saavedra
Maybe you could create something similar for GNU Automake. I'd be greatly 
thankful.

Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mru...@uninorte.edu.co - identi.ca/desiderantes

-Original Message-
From: rastersoft ras...@rastersoft.com
Sender: vala-list vala-list-boun...@gnome.org
Date: Sat, 30 Mar 2013 01:34:04 
To: vala-list@gnome.org
Subject: [Vala] Autovala: new program for developers

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)
ras...@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


Re: [Vala] Autovala: new program for developers

2013-03-30 Thread Evan Nemerson
On Sat, 2013-03-30 at 21:58 +, Mario Daniel Ruiz Saavedra wrote:
 Maybe you could create something similar for GNU Automake. I'd be greatly 
 thankful.

You might want to take a look at Bake [1].  It looks quite nice (the
recipes are very simple--check out the tests folder), and it's written
in Vala.


[1] https://launchpad.net/bake

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


Re: [Vala] Autovala: new program for developers

2013-03-30 Thread Mario Daniel Ruiz Saavedra
Wow, thanks!
--Mensaje original--
De: Evan Nemerson
Para: Mario Daniel Ruiz Saavedra
CC: rastersoft
CC: vala-list@gnome.org
Asunto: Re: [Vala] Autovala: new program for developers
Enviado: 30 de mar, 2013 6:09 PM

On Sat, 2013-03-30 at 21:58 +, Mario Daniel Ruiz Saavedra wrote:
 Maybe you could create something similar for GNU Automake. I'd be greatly 
 thankful.

You might want to take a look at Bake [1].  It looks quite nice (the
recipes are very simple--check out the tests folder), and it's written
in Vala.


[1] https://launchpad.net/bake




Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mru...@uninorte.edu.co - identi.ca/desiderantes

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


[Vala] Autovala: new program for developers

2013-03-29 Thread rastersoft
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)
ras...@rastersoft.com  http://www.rastersoft.com

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