diff options
author | imarom <imarom@cisco.com> | 2015-10-27 19:25:03 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-10-27 19:27:57 +0200 |
commit | ea0b6efc3a41f425e46d81f4b6b8bbbf3238add1 (patch) | |
tree | a566d14e5869fd71068912438b9ec88d9fde12b5 /linux | |
parent | 99109fa49c9a4d09a69172367911758892203ee2 (diff) |
working cont. stream on 1 core
Diffstat (limited to 'linux')
-rwxr-xr-x | linux/ws_main.py | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/linux/ws_main.py b/linux/ws_main.py index a94e975c..00fd3f21 100755 --- a/linux/ws_main.py +++ b/linux/ws_main.py @@ -91,10 +91,11 @@ def configure(conf): conf.load('g++') verify_cc_version(conf.env) - +bp_sim_main = SrcGroup(dir='src', + src_list=['main.cpp']) + main_src = SrcGroup(dir='src', src_list=[ - 'main.cpp', 'bp_sim.cpp', 'bp_gtest.cpp', 'os_time.cpp', @@ -146,6 +147,8 @@ stateless_src = SrcGroup(dir='src/stateless/', 'cp/trex_stream_vm.cpp', 'cp/trex_stateless.cpp', 'cp/trex_stateless_port.cpp', + 'dp/trex_stateless_dp_core.cpp', + 'messaging/trex_stateless_messaging.cpp', ]) # RPC code rpc_server_src = SrcGroup(dir='src/rpc-server/', @@ -169,8 +172,6 @@ rpc_server_mock_src = SrcGroup(dir='src/mock/', 'trex_rpc_server_mock.cpp', 'trex_platform_api_mock.cpp', '../gtest/rpc_test.cpp', - '../pal/linux/mbuf.cpp', - '../os_time.cpp', ]) # JSON package @@ -179,12 +180,6 @@ json_src = SrcGroup(dir='external_libs/json', 'jsoncpp.cpp' ]) -rpc_server_mock = SrcGroups([cmn_src, - rpc_server_src, - rpc_server_mock_src, - stateless_src, - json_src - ]) yaml_src = SrcGroup(dir='external_libs/yaml-cpp/src/', src_list=[ @@ -216,11 +211,30 @@ yaml_src = SrcGroup(dir='external_libs/yaml-cpp/src/', 'stream.cpp', 'tag.cpp']); + +rpc_server_mock = SrcGroups([ + main_src, + cmn_src, + rpc_server_src, + rpc_server_mock_src, + stateless_src, + json_src, + yaml_src, + net_src, + ]) + +# REMOVE ME - need to decide if stateless is part of bp sim or not +bp_hack_for_compile = SrcGroup(dir='/src/stub/', + src_list=['trex_stateless_stub.cpp' + ]) + bp =SrcGroups([ + bp_sim_main, main_src, cmn_src , net_src , yaml_src, + bp_hack_for_compile, ]); @@ -242,6 +256,7 @@ includes_path =''' ../src/pal/linux/ ../src/rpc-server/ ../src/stateless/cp/ ../src/stateless/dp/ + ../src/stateless/messaging/ ../external_libs/json/ ../external_libs/zmq/include/ ../external_libs/yaml-cpp/include/ @@ -372,13 +387,11 @@ class build_option: build_types = [ - #build_option(name = "bp-sim", src = bp, debug_mode= DEBUG_, platform = PLATFORM_32, is_pie = False), build_option(name = "bp-sim", src = bp, debug_mode= DEBUG_, platform = PLATFORM_64, is_pie = False), - #build_option(name = "bp-sim", src = bp, debug_mode= RELEASE_,platform = PLATFORM_32, is_pie = False), build_option(name = "bp-sim", src = bp, debug_mode= RELEASE_,platform = PLATFORM_64, is_pie = False), build_option(name = "mock-rpc-server", use = ['zmq'], src = rpc_server_mock, debug_mode= DEBUG_,platform = PLATFORM_64, is_pie = False, - flags = ['-DTREX_RPC_MOCK_SERVER', '-Wall', '-Wno-sign-compare', '-Werror'], + flags = ['-DTREX_RPC_MOCK_SERVER', '-Wall', '-Wno-sign-compare'], rpath = ['.']), ] |