www.gusucode.com > rtwdemos 工具箱matlab源码程序 > rtwdemos/pil_demo/sl_customization.m
function sl_customization(cm) % SL_CUSTOMIZATION for PIL connectivity config: mypil.ConnectivityConfig % Copyright 2008-2013 The MathWorks, Inc. cm.registerTargetInfo(@loc_createConfig); % local function function config = loc_createConfig config = rtw.connectivity.ConfigRegistry; config.ConfigName = 'My PIL Example'; config.ConfigClass = 'mypil.ConnectivityConfig'; % match only ert.tlc config.SystemTargetFile = {'ert.tlc'}; if slfeature('UseToolchainInfo')==1 % match using the host-based toolchains config.Toolchain = rtw.connectivity.Utils.getHostToolchainNames; else % match the standard ert TMF's config.TemplateMakefile = {'ert_default_tmf' ... 'ert_unix.tmf', ... 'ert_vc.tmf', ... 'ert_vcx64.tmf', ... 'ert_lcc.tmf'}; end % match regular 32-bit machines and Custom for e.g. 64-bit Linux config.TargetHWDeviceType = {'Generic->32-bit x86 compatible' ... 'Generic->Custom' ... 'ARM Compatible->ARM Cortex', ... 'Intel->x86-64 (Windows64)', ... 'Intel->x86-64 (Mac OS X)', ... 'Intel->x86-64 (Linux 64)'};