Boost logo

Boost-Build :

Subject: Re: [Boost-build] MATCH regular expression question.
From: Aparna Kumta (aparna.kumta_at_[hidden])
Date: 2015-11-06 16:37:13


On 11/06/15 13:29, Steven Watanabe wrote:
> AMDG
>
> On 11/06/2015 02:22 PM, Aparna Kumta wrote:
>> actions link.dll bind LIBRARIES
>> {
>> if [ MATCH "(std)" : $(OPTIONS) ]
>> {
> You can't use MATCH inside an action block.
> The body is literal text passed to the
> shell. The only processing that Boost.Build
> does is variable expansion.
Can MATCH be used outside the action block as follows?

if [ MATCH "(std)" : $(OPTIONS) ]
{
      actions link.dll bind LIBRARIES
      {
         
         "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o
         "$(<)" -h$(<[1]:D=) -G -library=stdcpp,CrunG3 "$(>)" "$(LIBRARIES)"
         -Bdynamic -l$(FINDLIBS-SA) -Bstatic -l$(FINDLIBS-ST) -B$(LINK-RUNTIME)
      }
}
else
{
  
actions link.dll bind LIBRARIES
      {
         ...
      }
}

Thanks,

Aparna

>
>> "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o
>> "$(<)" -h$(<[1]:D=) -G -library=stdcpp,CrunG3 "$(>)" "$(LIBRARIES)"
>> -Bdynamic -l$(FINDLIBS-SA) -Bstatic -l$(FINDLIBS-ST) -B$(LINK-RUNTIME)
>> }
>> }
>>
> 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