[ create a new paste ] login | about

Link: http://codepad.org/X3fLK5ir    [ raw code | fork ]

Plain Text, pasted on Nov 3:
import modules os ;

if [ os.on-windows ]
{
    using tar : bsdtar.exe ;
}
else
{
    using tar ;
}

import tar ;

path-constant BOOST_SOURCE : "./libraries/boost_1_43_0" ;
using ext-boost : 1_43_0 : $(BOOST_SOURCE) ;

# extract zlib tarball
tar.extract libraries/zlib-1.2.3.tar.bz2 : : <location>libraries : : check-last-file-only ;

local pwiz_src_tarball = [ SORT [ glob pwiz-src*.tar.bz2 ] ] ;
pwiz_src_tarball = $(pwiz_src_tarball[-1]) ; # take the last (latest) tarball

# extract only certain paths from the pwiz tarball
tar.extract
      # tar filepath
        $(pwiz_src_tarball)
    : # include patterns
        quickbuild.* clean.*
        Jamroot.jam
        LICENSE NOTICE
        pwiz
        pwiz_aux/msrc
        pwiz_aux/Jamfile.jam
        pwiz_tools/common

    : # requirements
        <location>pwiz_src
    : # usage-requirements
    : check-last-file-only
    ;


exe YourProgram : YourSource.cpp
 : # requirements
   <library>$(PWIZ_SOURCE)/pwiz/data/msdata//pwiz_data_msdata
   <library>$(PWIZ_SOURCE)/pwiz/data/proteome//pwiz_data_proteome
   <library>$(PWIZ_SOURCE)/pwiz_tools/common//pwiz_tools_common
   <library>$(PWIZ_SOURCE)/pwiz/analysis/spectrum_processing//pwiz_analysis_spectrum_processing
   <library>$(PWIZ_SOURCE)/pwiz/analysis/proteome_processing//pwiz_analysis_proteome_processing
   <library>/ext/boost//serialization
   <library>/ext/boost//filesystem
   <library>/ext/boost//iostreams
   <warnings>all
 : default-build
   <link>static
   <variant>release
   <threading>multi
 ;



Create a new paste based on this one


Comments: