-
Notifications
You must be signed in to change notification settings - Fork 171
/
SConscript
37 lines (28 loc) · 946 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
28
29
30
31
32
33
34
35
36
37
#
# Copyright (c) 2014, 2015 Semihalf. All rights reserved.
#
import os
Import('VRouterEnv')
Import('dpdk_lib')
env = VRouterEnv.Clone()
# Flags
env.Append(CCFLAGS = '-Werror -Wall')
env.Append(CCFLAGS = '-msse4.2')
if env['OPT'] == 'debug':
env.Append(CCFLAGS = '-DCOMPILE_DEBUG_LOGS')
# Include/lLib paths
env.Append(LIBPATH = [env['TOP_LIB']])
env.Append(LIBPATH = ['../host', '../sandesh', '../dp-core'])
# Libraries
env.Replace(LIBS = ['dp_core', 'dp_sandesh_c', 'dp_core', 'sandesh-c'])
env.Append(LIBS = ['rt', 'dl', 'pthread', 'urcu-qsbr'])
env.Append(LINKFLAGS = env['DPDK_LINKFLAGS'])
dpdk_objs = env.Object(Glob('*.c'))
dpdk_vrouter = env.Program('contrail-vrouter-dpdk', dpdk_objs)
env.Requires(dpdk_objs, dpdk_lib)
# to make sure that all are built when you do 'scons' @ the top level
env.Default(dpdk_vrouter)
env.Alias('install', env.Install(env['INSTALL_BIN'], dpdk_vrouter))
# Local Variables:
# mode: python
# End: