-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcppDeploy.m
More file actions
21 lines (19 loc) · 942 Bytes
/
cppDeploy.m
File metadata and controls
21 lines (19 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% Copies all files required to build cpp to 'cppDeploy' folder
root = getappdata(0, 'root');
compileDir = fullfile(root, 'compile');
curPath = pwd;
cd(compileDir)
[~, ~, ~] = rmdir('fullCompile/cppDeploy', 's');
load fullCompile/codegen/lib/RATMain/buildInfo.mat;
packNGo(buildInfo,'fileName','deploy.zip');
unzip('fullCompile/deploy.zip', 'fullCompile/cppDeploy');
% Copy events
mkdir('fullCompile/cppDeploy/events/');
copyfile('events/eventManager.cpp', 'fullCompile/cppDeploy/events/eventManager.cpp');
copyfile('events/eventManager.h', 'fullCompile/cppDeploy/events/eventManager.h');
copyfile('events/eventManagerImpl.hpp', 'fullCompile/cppDeploy/events/eventManagerImpl.hpp');
% Clean up
delete 'fullCompile/deploy.zip' 'fullCompile/cppDeploy/buildInfo.mat'...
'fullCompile/cppDeploy/rtw_proj.tmw' 'fullCompile/cppDeploy/defines.txt'...
'fullCompile/cppDeploy/RATMain.a' 'fullCompile/cppDeploy/RATMain.lib';
cd(curPath);