# Copyright 2007 Andrey Semashev.
# Distributed under 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)
import lib ;
import os ;
import feature ;
import feature ;
import toolset ;
local rule default_logapi ( )
{
local api = unix ;
if [ os.name ] = "NT" { api = winnt ; }
return $(api) ;
}
feature.feature logapi : unix winnt : propagated ;
feature.set-default logapi : [ default_logapi ] ;
#feature.extend toolset : intel ;
#feature.subfeature toolset intel : platform : : propagated link-incompatible ;
feature.subfeature toolset intel : version : : propagated link-incompatible ;
project boost/log
: source-location ../src
: requirements
shared:BOOST_LOG_DLL
unix:BOOST_LOG_USE_NATIVE_SYSLOG=1
/boost/date_time//boost_date_time
/boost/regex//boost_regex
/boost/filesystem//boost_filesystem
/boost/system//boost_system
single:BOOST_LOG_NO_THREADS
multi:/boost/thread//boost_thread
;
DEPENDS event_log_backend.cpp : simple_event_log.mc ;
alias platform_log_sources
: ## winnt sources ##
simple_event_log.mc
event_log_backend.cpp
nt6_event_log_backend.cpp
debug_output_backend.cpp
: ## requirements ##
winnt
;
alias platform_log_sources
: ## unix sources ##
syslog_backend.cpp
: ## requirements ##
unix
;
lib boost_log
: ## sources ##
attribute_set.cpp
attribute_values_view.cpp
slim_string.cpp
code_conversion.cpp
core.cpp
stream_provider.cpp
severity_level.cpp
global_logger_storage.cpp
named_scope.cpp
timer.cpp
sink.cpp
text_ostream_backend.cpp
thread_specific.cpp
parser_utils.cpp
init_from_stream.cpp
filter_parser.cpp
formatter_parser.cpp
platform_log_sources
: ## requirements ##
BOOST_LOG_BUILDING_THE_LIB=1
;