# Boost Filesystem Library auto-link-test Jamfile

# Copyright Beman Dawes 2003

# Use, modification, and distribution is 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 library home page at http://www.boost.org/libs/filesystem

subproject libs/filesystem/test/auto-link-test ;

# bring in the rules for testing
import testing ;

# Make tests run by default.
DEPENDS all : test ;

# start with a static linking version:

run 
   # sources
      ../operations_test.cpp
   :
   :  # input files
   :   # requirements
      <library-path>../../../../stage/lib
      <define>BOOST_LIB_DIAGNOSTIC=1
   :   # program name
      operations_test          
   ;

# and then a dll linking version:
   
run 
   # sources
      ../operations_test.cpp
   :
   :  # input files
   :   # requirements
      <library-path>../../../../stage/lib
      <define>BOOST_LIB_DIAGNOSTIC=1
      <define>BOOST_ALL_DYN_LINK=1
      <runtime-link>dynamic
   :   # program name
      operations_test_dll          
   ;
