[Interest] how to define string variable in *.pro based on other string variables?

Vincent Cai wcai at cypress.com
Wed Jan 23 09:10:40 CET 2013


Thanks a lot!

From: 1+1=2 [mailto:dbzhang800 at gmail.com]
Sent: 2013年1月23日 16:02
To: Mandeep Sandhu
Cc: Vincent Cai; interest at qt-project.org
Subject: Re: [Interest] how to define string variable in *.pro based on other string variables?

You should use:

TSA_LibFullName = $$TSA_LibPath/$${TSA_LibName}.lib

because $$TSA_LibName.lib equals to $${TSA_LibName.lib}, which is empty.

On Wed, Jan 23, 2013 at 3:59 PM, Mandeep Sandhu <mandeepsandhu.chd at gmail.com<mailto:mandeepsandhu.chd at gmail.com>> wrote:
On Wed, Jan 23, 2013 at 1:23 PM, Vincent Cai <wcai at cypress.com<mailto:wcai at cypress.com>> wrote:
> Dear,
>
>
>
>          I have below variable definition in *.pro file.
>
> n  TSA_LibName = TSA_Base_X86_GCC
>
> n  TSA_LibPath = "D:/TSA/TSA_Lib/trunk/dev/build/make/solutions/Base/lib"
>
> Then how can I define a variable which equal to below value
>
> D:/TSA/TSA_Lib/trunk/dev/build/make/solutions/Base/lib/TSA_Base_X86_GCC.lib
>
>
>
> I have tried below, but failed.
>
>     TSA_LibFullName = $$TSA_LibPath/$$TSA_LibName.lib
SUFFIX=".lib"
TSA_LibFullName = $$TSA_LibPath/$$TSA_LibName$$SUFFIX

HTH,
-mandeep


>
>
>
> Vincent.
>
> This message and any attachments may contain Cypress (or its subsidiaries)
> confidential information. If it has been received in error, please advise
> the sender and immediately delete this message.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org<mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest
>
_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest

This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130123/532d1785/attachment.html>


More information about the Interest mailing list