/
SConscript
28 lines (22 loc) · 986 Bytes
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
#
# -*- mode: python; -*-
Import('BuildEnv')
env = BuildEnv.Clone()
env.Append(CPPPATH = env['TOP'])
env.Append(CPPPATH = [env['TOP'] + '/bgp'])
env.Append(CPPPATH = [env['TOP'] + '/db'])
env.Append(CPPPATH = [env['TOP'] + '/io'])
env.Append(CPPPATH = [env['TOP'] + '/ifmap'])
env.Append(CPPPATH = [env['TOP'] + '/base/sandesh'])
env.Append(CPPPATH = [env['TOP'] + '/tools/sandesh/library/common'])
# Generate the source files
SandeshGenFiles = env.SandeshGenCpp('routing_policy.sandesh')
SandeshGenFiles += env.SandeshGenOnlyCpp('routing_policy_internal.sandesh')
SandeshGenSrcs = env.ExtractCpp(SandeshGenFiles)
librouting_policy = env.Library('routing_policy', SandeshGenSrcs +
['routing_policy.cc',
'routing_policy_action.cc',
'routing_policy_match.cc',
'show_routing_policy.cc'])