Re: dllobject/libobject

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Lars Ivar Igesund wrote:

> > Did you try:
> > 
> > :action compile object,dllobject,libobject,default d
> >    etc.
> 
> I had, but something went wrong on the way, see below.
> 
> > If it still doesn't work you can see in AAPDIR/log what dependencies
> > were generated for the ":program", ":lib" and ":dll" commands.  I can't
> > say much else without seeing the error you get.
> 
> It seems like my test example wasn't minimal enough. At the same time
> it might have revealed a problem with subdirs.
> 
> Now; I created a dir foo with a file bar.d and a main.aap. The main.aap
> contained this line:
> 
> :dll foo : bar.d
> 
> which gave the attached log file. The action it complains about is this:
> 
> :action compile object,libobject,dllobject,default d
>     @if not _no.get("target"):
>  target = `src2obj(fname)`
>     @if _no.get("D_COMPILE_ACTION"):
>  :do $D_COMPILE_ACTION {target = $target} $source
>     @else:
>  :buildcheck $OPTIMIZE $?DEBUG
>  :sys $DC $DFLAGS $?DEFINE $?INCLUDE -c -of$target $source
> 
> :rule {default} %$OBJSUF : {buildcheck = $DC $DFLAGS $?DEFINE $?INCLUDE 
>                                             $OPTIMIZE $?DEBUG } %.d
>     :do compile {target = $target} $source

It appears indents are messed up.  Does your mailer replace tabs with a
space?

From the tail of the log:

> depend:	3 - Updating "build-nt\bar.sob" from "bar.d{filetype=3Dd}": no =
> old signature for "bar.d"
> extra:	Do compile d -> dllobject
> error:	Error in recipe "c:/documents and settings/lars =
> ivar/aap/startup/dmodule.aap" line 85: Error executing commands for =
> compile d: Error in recipe "c:/documents and settings/lars =
> ivar/aap/startup/dmodule.aap" line 32: No commands defined for =
> compile_dmd dllobject from d

Where did that "compile_dmd" come from?  There must be a
":do compile_dmd <file>" somewhere, and there apparently is no
compile_dmd action defined for a 'dllobject" filetype.

If you can't figure it out, please send the whole dmodule.aap to me,
otherwise we keep doing it bit by bit.

-- 
TIM: But follow only if you are men of valour.  For the entrance to this cave
     is guarded by a monster, a creature so foul and cruel that no man yet has
     fought with it and lived.  Bones of full fifty men lie strewn about its
     lair ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.