Hi,

 

To make OS-specific builds using the same bjam script, I see two ways to refer to ThirdParty (TP) lib names and their paths:

 

  1. Define every TP lib as TP_WIN_lib and TP_LINUX_lib and refer to the OS-specific libs in the Jamfiles as something like this:

                                     <target-os>linux:<source>TP_LINUX_lib

                                     <target-os>windows:<source>TP_WIN_lib

 

  1. Define only one var (TP_lib) in user-config.jam. So, this would obviously differ in the two OS’s (say, TP_WIN.lib on Win and TP_LINUX.a on Linux). However, the Jamfile just refers to TP_lib.

 

The paths could be say, c:\win\dir  on Win and /usr/lib/blah on Linux.

 

Is option 2 considered better? Is there another option better than both?

 

Thanks so much,

Anant Rao