23 lines
853 B
Matlab
23 lines
853 B
Matlab
|
|
function rtwTargetInfo(tr)
|
||
|
|
%RTWTARGETINFO Registration file for custom toolchains.
|
||
|
|
tr.registerTargetInfo(@loc_createToolchain);
|
||
|
|
end
|
||
|
|
|
||
|
|
% -------------------------------------------------------------------------
|
||
|
|
% Create the ToolchainInfoRegistry entries
|
||
|
|
% -------------------------------------------------------------------------
|
||
|
|
function config = loc_createToolchain
|
||
|
|
|
||
|
|
i = 1;
|
||
|
|
%% Windows
|
||
|
|
if exist(fullfile(fileparts(mfilename('fullpath')), 'armcc_win_tc.mat'), 'file') == 2
|
||
|
|
config(i) = coder.make.ToolchainInfoRegistry;
|
||
|
|
config(i).Name = 'armcc | gmake makefile (64-bit Windows)';
|
||
|
|
config(i).FileName = fullfile(fileparts(mfilename('fullpath')), 'armcc_win_tc.mat');
|
||
|
|
config(i).TargetHWDeviceType = {'*'};
|
||
|
|
config(i).Platform = {computer('arch')};
|
||
|
|
i = i + 1;
|
||
|
|
end
|
||
|
|
|
||
|
|
end
|