Re: [Vala] Is there a way to specify a prefix path in the vapi file for --library?
- From: Jürg Billeter <j bitron ch>
- To: Yu Feng <rainwoodman gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Is there a way to specify a prefix path in the vapi file for --library?
- Date: Mon, 12 May 2008 17:30:55 +0200
Hi Yu,
On Sun, 2008-05-11 at 02:51 -0400, Yu Feng wrote:
It is often the case that each library put it's header file in a
separated subdir to avoid naming conflicting.
For example, glib.h is located at <glib-2.0/glib.h>
Not true for glib.h, that's just <glib.h>, however, it's the case for
some libraries, yes.
However in vala generated library(built by valac) the headers are always
assumed to be in <xxx.h>, as stated in the generated .vapi files.
Is there a parameter in valac to specify this? does -b work?
Yes, you should use -b / --basedir for this. You can for example try
--basedir ..
With automake I use --basedir $(top_srcdir).
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]