Re: Missing info about commands, variables and attributes

Magnus Therning <[email protected]> Mon, 26 Jul 2004 13:58:50 +0200
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
On Mon, Jul 26, 2004 at 10:33:52AM +0200, Bram Moolenaar wrote:
>
>Magnus Therning wrote:
>
>> It should at least be possible to list what variables/attributes are
>> involved in the commands in aap, right? The names of the
>> variables/attributes should be quite self-explanatory.
>
>I think they are quite obvious, if you have worked with other programs
>and make.

Yes, for most, but it would be nice to have the info where it's needed,
i.e. the info on what variables are used in :program is listed where
:program is explained.

>> The beginning of a list for :program would be:
>> 
>>  Variables:
>>    INCLUDE
>>    CFLAGS
>>    CXXFLAGS
>>    CC
>>    CXX
>>    LIBS
>>    LD
>>    LDFLAGS
>
>There are quite a few more, and when using tools many more.  It is not
>possible to give a complete list.  Would an incomplete list of the most
>often used variables still be useful?

Yes, I personally believe every tool should make it easy to perform the
things most users do most of the time, or at least find documentation on
the common usage scenarios. Maybe there isn't big enough a user
community yet to do that though...

>>  Attributes:
>>    add_LIBS
>>    add_LDFLAGS
>
>You can do that for all variables.

Well, it seems I can't. I tried with add_INCLUDE on both :program and
:dll (for :program it might be related to what you say below).

>> >Did you try to use any of these:
>> >
>> >  :program bar { INCLUDE = -I../foo } : main.c
>> 
>> Don't work.
>> 
>> >  :program bar : { INCLUDE = -I../foo } main.c
>> 
>> Don't work.
>> 
>> >  :program bar : main.c { INCLUDE = -I../foo }
>> 
>> Don't work.
>
>It appears you have run into a bug.  :program doesn't use the
>attributes on the sources as expected.  You need to set the variable,
>and attribute doesn't work here.

I can report that :dll behaves the same way as :program

>I'll have to think about how attributes on a source file are used.
>This should be consistent.

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
[email protected]
http://magnus.therning.org/

X-Windows: ...You'll envy the dead.
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBBPH6iMWTaatN+6QRAl1KAJ477m3sq8ZeWSt8zNwYy8iPTHAZGwCeOmir
9zqLrVzI6rzkzqF1Bo6bSGA=
=1y+q
-----END PGP SIGNATURE-----