# Boost serialization Library Build Jamfile
#  (C) Copyright Robert Ramey 2002-2004.
#  Use, modification, and distribution are subject to the 
#  Boost Software License, Version 1.0. (See accompanying file 
#  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
#  See http://www.boost.org/libs/serialization for the library home page.

subproject libs/serialization/build ;

SOURCES = 
    basic_archive
    basic_iarchive
    basic_oarchive
    basic_serializer_map
    basic_text_iprimitive
    basic_text_oprimitive
    basic_xml_archive
    binary_iarchive
    binary_oarchive
    extended_type_info
    extended_type_info_no_rtti
    extended_type_info_typeid
    polymorphic_iarchive
    polymorphic_oarchive
    text_iarchive
    text_oarchive
    void_cast
    xml_grammar
    xml_iarchive
    xml_oarchive
;
    
WSOURCES = 
    codecvt_null
    basic_text_wiprimitive
    basic_text_woprimitive
    binary_wiarchive
    binary_woarchive
    text_wiarchive
    text_woarchive
    xml_wgrammar
    xml_wiarchive
    xml_woarchive
    utf8_codecvt_facet
;

lib boost_serialization
    : ## sources ##
        ../src/$(SOURCES).cpp
    : ## requirements ##
        std::locale-support
        <msvc><*><include>$(SPIRIT_ROOT) 
        <msvc-stlport><*><include>$(SPIRIT_ROOT) 
        <vc7><*><include>$(SPIRIT_ROOT) 
        <borland><*><include>$(SPIRIT_ROOT) 
        <borland-5_5_1><*><include>$(SPIRIT_ROOT) 
        <borland-5_6_4><*><include>$(SPIRIT_ROOT) 
        <sysinclude>$(BOOST_ROOT)
        <borland><*><cxxflags>"-w-8080 -w-8071 -w-8057"
        <msvc><*><cxxflags>-Gy
        <vc7><*><cxxflags>-Gy
        <vc7_1><*><cxxflags>-Gy
        <define>BOOST_TEST_NO_AUTO_LINK=1
    : ## default-build
        <runtime-link>static/dynamic <threading>single/multi
;

lib boost_wserialization
    : ## sources ##
        ../src/$(WSOURCES).cpp
    : ## requirements ##
        std::locale-support
        <msvc><*><include>$(SPIRIT_ROOT) 
        <msvc-stlport><*><include>$(SPIRIT_ROOT) 
        <vc7><*><include>$(SPIRIT_ROOT) 
        <borland><*><include>$(SPIRIT_ROOT) 
        <borland-5_5_1><*><include>$(SPIRIT_ROOT) 
        <borland-5_6_4><*><include>$(SPIRIT_ROOT) 
        <sysinclude>$(BOOST_ROOT)
        <borland><*><cxxflags>"-w-8080 -w-8071 -w-8057"
        <msvc><*><cxxflags>-Gy
        <vc7><*><cxxflags>-Gy
        <vc7_1><*><cxxflags>-Gy
        <define>BOOST_TEST_NO_AUTO_LINK=1
        <vacpp><*><define>BOOST_MPL_USE_APPLY_INTERNALLY
    : ## default-build
        <runtime-link>static/dynamic <threading>single/multi
;

install serialization lib :
    <lib>boost_serialization
    <lib>boost_wserialization
;

stage stage/lib :
        <lib>boost_serialization
        <lib>boost_wserialization
    :
        <locate>$(BOOST_ROOT)
        common-stage-tag
        <tag><postfix>-$(version-tag)
        <target>stage
        <target>all
    :
        debug release
;
