- Timestamp:
- May 1, 2018, 8:17:03 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/compile.m
r1033 r1034 25 25 26 26 function compile (FctName,SubfctPath) 27 27 28 hh=[]; % handles of message display window 29 28 30 if isempty(which('mcc')) 29 31 msgbox_uvmat('ERROR','no Matlab compiler toolbox mcc installed') … … 32 34 hh=msgbox_uvmat('WAITING...',['compilation of ' FctName ' in progress...']); 33 35 end 36 34 37 disp(['compiling ' FctName ' ...']) 38 35 39 % commands to compile civ_matlab and eventually other functions 36 40 if ~exist('bin','dir') … … 40 44 end 41 45 end 46 42 47 if ~isempty(SubfctPath) 43 48 SubfctPath=['-I ' SubfctPath]; % string indicating the option of including the path SubfctPath 44 49 end 50 45 51 [mcrmajor, mcrminor] = mcrversion; 46 52 MCRROOT = ['MCRROOT',int2str(mcrmajor),int2str(mcrminor)]; 47 53 FctNameVersion=[FctName,'_',MCRROOT]; 54 48 55 try 49 56 disp(['mcc -m -R -nojvm -R -nodisplay -R -singleCompThread ' SubfctPath ' ' FctName '.m']) … … 56 63 hh=msgbox_uvmat('ERROR',ME.message); 57 64 end 65 58 66 display('** END **') 67 59 68 if ~isempty(hh) 60 delete(hh)69 delete(hh) 61 70 end 62 71
Note: See TracChangeset
for help on using the changeset viewer.