-
Notifications
You must be signed in to change notification settings - Fork 390
/
SConscript
75 lines (69 loc) · 2.91 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
# -*- mode: python; -*-
import sys
Import('AgentEnv')
env = AgentEnv.Clone()
except_env = env.Clone()
cflags = except_env['CCFLAGS']
if '-fno-exceptions' in cflags:
cflags.remove('-fno-exceptions')
except_env.Replace(CCFLAGS=cflags)
SandeshGenFiles = env.SandeshGenCpp('agent.sandesh')
SandeshGenFiles += env.SandeshGenCpp('agent_profile.sandesh')
SandeshGenFiles += env.SandeshGenCpp('multicast.sandesh')
SandeshGenSrcs = env.ExtractCpp(SandeshGenFiles)
sandesh_objs = AgentEnv.BuildExceptionCppObj(env, SandeshGenSrcs)
optional_objs = []
if GetOption('with_libvirt'):
optional_objs.append(except_env.Object('libvirt_instance_adapter.cc'))
vnswoperdb = env.Library('vnswoperdb',
sandesh_objs +
optional_objs +
['agent_sandesh.cc',
'agent_path.cc',
'agent_profile.cc',
'agent_route.cc',
'agent_route_resync.cc',
'agent_route_walker.cc',
'bridge_route.cc',
'config_manager.cc',
'evpn_route.cc',
'global_vrouter.cc',
'ifmap_dependency_manager.cc',
'inet_interface.cc',
'inet4_multicast_route.cc',
'inet_unicast_route.cc',
'interface.cc',
'loadbalancer.cc',
'loadbalancer_config.cc',
'loadbalancer_properties.cc',
'logical_interface.cc',
'mirror_table.cc',
'mpls.cc',
'multicast.cc',
except_env.Object('instance_manager.cc'),
except_env.Object('docker_instance_adapter.cc'),
except_env.Object('netns_instance_adapter.cc'),
'instance_task.cc',
'nexthop.cc',
'operdb_init.cc',
'path_preference.cc',
'peer.cc',
'physical_device.cc',
'physical_device_vn.cc',
'physical_interface.cc',
'remote_physical_interface.cc',
'service_instance.cc',
'sg.cc',
'vm.cc',
'vm_interface.cc',
'vn.cc',
'vrf.cc',
'vrf_assign.cc',
'vxlan.cc'
])
subdirs = ['test']
for dir in subdirs:
env.SConscript(dir + '/SConscript', exports='AgentEnv', duplicate=0)