Diff of /ltfatmex.m [6bc853] .. [8d7bed]  Maximize  Restore

Switch to unified view

a/ltfatmex.m b/ltfatmex.m
...
...
46
end;
46
end;
47
47
48
bp=mfilename('fullpath');
48
bp=mfilename('fullpath');
49
bp=bp(1:end-length(mfilename));
49
bp=bp(1:end-length(mfilename));
50
50
51
definput.flags.target={'auto','lib','mex','gpc','playrec'};
51
definput.flags.target={'auto','lib','mex','gpc','playrec','java'};
52
definput.flags.command={'compile','clean','test'};
52
definput.flags.command={'compile','clean','test'};
53
[flags,kv]=ltfatarghelper({},definput,varargin);
53
[flags,kv]=ltfatarghelper({},definput,varargin);
54
54
55
% Remember the current directory.
55
% Remember the current directory.
56
curdir=pwd;
56
curdir=pwd;
57
57
58
do_lib  = flags.do_lib || flags.do_auto;
58
do_lib  = flags.do_lib || flags.do_auto;
59
do_mex  = flags.do_mex || flags.do_auto;
59
do_mex  = flags.do_mex || flags.do_auto;
60
do_gpc  = flags.do_gpc || (flags.do_auto && ~isoctave);
60
do_gpc  = flags.do_gpc || (flags.do_auto && ~isoctave);
61
do_playrec  = flags.do_playrec && (~isoctave);
61
do_playrec  = flags.do_playrec && (~isoctave);
62
do_java  = flags.do_java;
62
63
63
if isoctave
64
if isoctave
64
  extname='oct';
65
  extname='oct';
65
  ext='oct';
66
  ext='oct';
66
else
67
else
...
...
133
    disp('========= Cleaning PLAYREC ================');
134
    disp('========= Cleaning PLAYREC ================');
134
    %deletefiles([bp,'thirdparty',filesep,'PolygonClip'],['PolygonClip.',mexext]);
135
    %deletefiles([bp,'thirdparty',filesep,'PolygonClip'],['PolygonClip.',mexext]);
135
    cd([bp,'thirdparty',filesep,'Playrec']);
136
    cd([bp,'thirdparty',filesep,'Playrec']);
136
    clear mex; 
137
    clear mex; 
137
    [status,result]=system([make_exe, ' -f ',makefilename,' clean',' EXT=',mexext]);
138
    [status,result]=system([make_exe, ' -f ',makefilename,' clean',' EXT=',mexext]);
139
  end;
140
  
141
  if do_java
142
    disp('========= Cleaning JAVA ================');
143
    %deletefiles([bp,'thirdparty',filesep,'PolygonClip'],['PolygonClip.',mexext]);
144
    cd([bp,'blockproc',filesep,'java']);
145
    %clear java; 
146
    [status,result]=system([make_exe, ' -f ',makefilename,' clean']);
138
  end;
147
  end;
139
  
148
  
140
  if ~isoctave
149
  if ~isoctave
141
    recycle(oldstate);
150
    recycle(oldstate);
142
  end;
151
  end;
...
...
260
                     ' ARCH=',computer('arch')]);
269
                     ' ARCH=',computer('arch')]);
261
    if(~status)
270
    if(~status)
262
      disp('Done.');
271
      disp('Done.');
263
    else
272
    else
264
      error('Failed to build PLAYREC:\n %s',result);
273
      error('Failed to build PLAYREC:\n %s',result);
274
    end
275
  end;
276
  
277
  if do_java
278
    disp('========= Compiling JAVA classes ===================');
279
    % Compile the JAVA classes
280
    cd([bp,'blockproc',filesep,'java']);
281
    clear mex; 
282
    [status,result]=system([make_exe, ' -f ',makefilename]);
283
    if(~status)
284
      disp('Done.');
285
    else
286
      error('Failed to build JAVA classes:\n %s',result);
265
    end
287
    end
266
  end;
288
  end;
267
end;
289
end;
268
290
269
% -------------- Handle testing ---------------------------------------
291
% -------------- Handle testing ---------------------------------------

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks