2012-01-20 23 views
18

Sıkıştırma dosyalarını inceledim, kitaplık adının nasıl oluşturulduğunu. Örnek: libboost_log-mgw46-mt-1_48.dllYükseltme: Bir bjam kitaplık adını nasıl oluşturur?

Son kısmı görmezden gelmek, linker -o parametresini nasıl oluşturulduğumun adıyla iletirim. Birkaç versiyonum var ve büyük bir projede bağlantı kurmak beni proje dosyasında değişiklikler yapmaya zorluyor ve bu da bir çok yer.

Benim dileğim libboost_log.dll almaktır. Ben sadece yeniden adlandirdim, ama bir programi yürütürken, bu libboost_log-mgw46-mt-1_48.dll dosya bulamaz.

cevap

23

Yükseltme Bjam 'un 3 farklı düzen tanımlanmış tanımlı düzenini içerir. Jamroot dosyasında yerleştirilen yardım alıntı (Ben hiç iyi online belgeler farkında değilim):

# --layout=<layout>  Determines whether to choose library names 
#       and header locations such that multiple 
#       versions of Boost or multiple compilers can 
#       be used on the same system. 
# 
#        versioned - Names of boost binaries 
#        include the Boost version number, name and 
#        version of the compiler and encoded build 
#        properties. Boost headers are installed in a 
#        subdirectory of <HDRDIR> whose name contains 
#        the Boost version number. 
# 
#        tagged -- Names of boost binaries include the 
#        encoded build properties such as variant and 
#        threading, but do not including compiler name 
#        and version, or Boost version. This option is 
#        useful if you build several variants of Boost, 
#        using the same compiler. 
# 
#        system - Binaries names do not include the 
#        Boost version number or the name and version 
#        number of the compiler. Boost headers are 
#        installed directly into <HDRDIR>. This option 
#        is intended for system integrators who are 
#        building distribution packages. 
# 
#       The default value is 'versioned' on Windows, and 
#       'system' on Unix. 

system düzen istediğiniz adlandırma planı verir - Başka herhangi bir bilgi vermeden düz basename.

Boole çıktı dosyalarının adları, bu düzenlere göre boostcpp.jam dosyasında tanımlanan tag kuralı kullanılarak oluşturulur.

+4

Bu, SO paketinde bu belgeyi bulmaktan daha kolay olduğunu gösterir. – iAdjunct