Boost logo

Boost-Build :

Subject: Re: [Boost-build] Unknow target type RC2
From: Sherwood Hu (sherwood_at_[hidden])
Date: 2009-01-15 13:44:17


Steve,

Thank for the quick reply. I changed the file .rc2.php to .rc2-php
because I thought that I have to give an unique file extension.

The "Unkown target type RC2" is now gone, but still it complained that
it could locate "res\PRJNAME.rc2".

Sherwood

-----Original Message-----
From: boost-build-bounces_at_[hidden]
[mailto:boost-build-bounces_at_[hidden]] On Behalf Of Steven
Watanabe
Sent: Thursday, January 15, 2009 1:29 PM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] Unknow target type RC2

AMDG

Sherwood Hu wrote:
> I am new to boost.build - I am trying to write a jam file for a MFC
> project. The project has a .rc file, which includes another .rc2 file
> under 'res' directory. Just like what a typical MFC Project look like.
>
> We require that this .rc2 is generated dynamically. In the existing
> makefile, this is a simple line:
>
> res/PRJNAME.rc2 : res/PRJNAME.rc2.php
> php res/PRJNAME.rc2.php > res/PRJNAME.rc2
>
>
> I read the boost.build v2 manual, and it seemed to me that the only
way
> is to write an extender, and I did:
>
> Rc2-php.jam
> =======
>
> import type ;
>
> type.register RC2PHP : rc2-php ;
>

This will match files like *.rc2-php, not *.rc2.php, BTW.

Anyway, since there is no RC2 type, try creating it:
type.register RC2 : rc2 ;

> However, when I ran the bjam, it reported an error "Unknown target
type
> RC2".
>

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost-build


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk