[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] Build only exe using run rule
From:       "Nogradi, Chris" <Chris.Nogradi () garmin ! com>
Date:       2011-02-16 19:44:04
Message-ID: 678F5E340B8CAC49B311333CD802D0C00BDE23B729 () OLE2K7CCR2 ! ad ! garmin ! com
[Download RAW message or body]

Thanks Steve.  However, I am still struggling with how to do this from the command \
line. If I am at the same level as the Jamroot.jam and I want to build the exe for a \
project a few dirs below, I tried this to no avail:

$ Tools/boost-build/bin/bjam.exe debug -l 120 -j8  \
                Verification/Tests/MOD_TEST_mytest.exe
notice: could not find main target Verification/Tests/MOD_TEST_mytest.exe
notice: assuming it is a name of file to create.
don't know how to make <e>Verification/Tests/MOD_TEST_mytest.exe
...found 1 target...
...can't find 1 target...

If I cd down to that dir and do this I get a similar error:

$ ../../../Tools/boost-build/bin/bjam.exe debug -l 120 -j8  MOD_TEST_mytest.exe
notice: could not find main target MOD_TEST_mytest.exe
notice: assuming it is a name of file to create.
don't know how to make <e>MOD_TEST_mytest.exe
...found 1 target...
...can't find 1 target...

My jamfile.jam is:

run MOD_TEST_mytest.c ;

Note that I am overriding the run rule in my Jamroot with:

rule run( ... )
{
   testing.run( ... ) ;
}

Thank,

Chris

-----Original Message-----
From: boost-build-bounces@lists.boost.org \
                [mailto:boost-build-bounces@lists.boost.org] On Behalf Of Steven \
                Watanabe
Sent: Wednesday, February 16, 2011 1:11 PM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] Build only exe using run rule

AMDG

On 2/16/2011 9:43 AM, Nogradi, Chris wrote:
> Is there a way from the command line to specify that only the exe be built (no test \
> run) when using the testing.run rule? 

Only on Windows.  If you have

run test.cpp ;

You can use bjam test.exe.  This works because
you can specify building a specific file on the
command line.  Unfortunately, the name of the
executable is the same as the name of the main
target, except on Windows.

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


This e-mail and any attachments may contain confidential material for the sole use of \
the intended recipient. If you are not the intended recipient, please be aware that \
any disclosure, copying, distribution or use of this e-mail or any attachment is \
prohibited. If you have received this e-mail in error, please contact the sender and \
delete all copies.

Thank you for your cooperation.

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic