-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompileHermes.m
33 lines (28 loc) · 1.04 KB
/
compileHermes.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
32
33
%COMPILEHERMES compile HERMES to run in deployed mode
% Run this script to compile an hermesStart executable into ./deployed folder
%
% Syntax: compileHermes
%
% Author: Anderson Lizardo (AL), Renato Barbosa Abreu (RBA)
% Work Address: INDT Manaus
% E-mail: [email protected], [email protected]
% History:
% v2.0 15 Jul 2015 (AL, RBA) - created
%
% Copyright (c) 2015 INDT - Institute of Technology Development.
%
% The program may be used and/or copied only with the written
% permission of INDT, or in accordance with the terms and conditions
% stipulated in the agreement/contract under which the program has been
% supplied.
deployDir = 'deployed';
% Create a deploy directory if it does not exist
if ( exist(deployDir, 'dir') ~= 7 )
mkdir( deployDir );
end
% Copy seeds file to deploy folder
copyfile( 'RandomNumberGeneratorSeeds.mat', deployDir );
% Build MEX files
buildMexFiles( );
% Compile hermesStart executable
system( [ 'mcc -d ' deployDir ' -R -singleCompThread -a src -m -v hermesStart.m' ] );