-
Notifications
You must be signed in to change notification settings - Fork 1
/
setbuildargsBoost.m
31 lines (27 loc) · 1.02 KB
/
setbuildargsBoost.m
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
function setbuildargsBoost(buildInfo)
global functionsToThread outputFunctionName benchmarking;
% The example being compiled requires threading support.
% The flag requests that the thread library be included
% in the build
%compileFlags = {'-std=c++11 -lboost_thread -lboost_system'};
% add '-g -pg' for debugging
if benchmarking
compileFlags = {'-std=c++11','-DBENCHMARKING'};
else
compileFlags = {'-std=c++11'};
end
addCompileFlags(buildInfo, compileFlags);
% add '-g -pg' for debugging
linkFlags = {'-pthread'};
%end
%linkFlags = {'-lboost_thread -lboost_system'};
addLinkFlags(buildInfo, linkFlags);
library = {'boost_thread'};
addSysLibs(buildInfo, library);
library = {'boost_system'};
addSysLibs(buildInfo, library);
% Not used anymore
%library = {'boost_signals'};
%addSysLibs(buildInfo, library);
% Generate header blocks
system(['python2 process_header.py ',strjoin(functionsToThread,' '),' ',outputFunctionName{:},' >include/blocks_gen.h']);