#
# Copyright (c) 2014 CodiLime, Inc. All rights reserved.
#

# -*- mode: python; -*-

Import('BuildEnv')
import sys
env = BuildEnv.Clone()

env.Append(LIBPATH = env['TOP'] + '/base')
env.Append(LIBPATH = env['TOP'] + '/io')
env.Append(LIBPATH = env['TOP'] + '/bfd')
env.Append(LIBPATH = env['TOP'] + '/bfd/rest_api')
env.Append(LIBPATH = env['TOP'] + '/http')
env.Append(LIBPATH = env['TOP'] + '/http/client')

env.Prepend(LIBS = ['bfd', 'bfd_rest', 'io', 'sandesh',
                    'sandeshvns', 'http', 'httpc', 'http_parser', 'curl',
                    'pugixml', 'boost_program_options', 'boost_thread', 'io',
                    'ssl', 'crypto', 'boost_regex', 'process_info', 'base'])

libbfd_rest_source = ['bfd_rest_server.cc',
                          'bfd_rest_client.cc', 
                          'bfd_rest_common.cc',
                          'bfd_client_session.cc',
                          'bfd_json_config.cc']
libbfd_rest = env.Library('bfd_rest', libbfd_rest_source)

libbfd_rest_client_source = [ 'bfd_rest_client' ]
libbfd_rest_client = env.Library('bfd_rest_client', libbfd_rest_client_source)

rest_api_unit_tests = env.SConscript('test/SConscript', exports='BuildEnv',
                                     duplicate = 0)
Return('rest_api_unit_tests')
