forked from tungstenfabric/tf-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct
47 lines (33 loc) · 1.41 KB
/
SConstruct
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
# -*- mode: python; -*-
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
# repository root directory
import os
import sys
sys.path.append('tools/build')
import rules
conf = Configure(DefaultEnvironment(ENV = os.environ))
env = rules.SetupBuildEnvironment(conf)
SConscript(dirs=['src/contrail-common', 'controller', 'vrouter'])
if os.path.exists('openstack/nova_contrail_vif/SConscript'):
SConscript('openstack/nova_contrail_vif/SConscript',
variant_dir='build/noarch/nova_contrail_vif')
if os.path.exists("openstack/contrail-nova-extensions/contrail_network_api/SConscript"):
SConscript('openstack/contrail-nova-extensions/contrail_network_api/SConscript',
variant_dir='build/noarch/contrail_nova_networkapi')
if os.path.exists('openstack/neutron_plugin/SConscript'):
SConscript('openstack/neutron_plugin/SConscript',
variant_dir='build/noarch/neutron_plugin')
if os.path.exists("openstack/ceilometer_plugin/SConscript"):
SConscript('openstack/ceilometer_plugin/SConscript',
variant_dir='build/noarch/ceilometer_plugin')
if os.path.exists("contrail-f5/SConscript"):
SConscript('contrail-f5/SConscript',
variant_dir='build/noarch/contrail-f5')
if GetOption("describe-tests"):
rules.DescribeTests(env, COMMAND_LINE_TARGETS)
Exit(0)
if GetOption("describe-aliases"):
rules.DescribeAliases()
Exit(0)