-
Notifications
You must be signed in to change notification settings - Fork 73
/
getexeext.m
39 lines (38 loc) · 928 Bytes
/
getexeext.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
function exesuff = getexeext()
%
% exesuff=getexeext()
%
% get meshing external tool extension names for the current platform
%
% author: Qianqian Fang, <q.fang at neu.edu>
%
% output:
% exesuff: file extension for iso2mesh tool binaries
%
% -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
%
exesuff = '.exe';
if (isunix)
exesuff = ['.', mexext];
end
if (isoctavemesh)
if (~ispc)
if (~ismac)
if (isempty(regexp(computer, '86_64')))
exesuff = '.mexglx';
else
exesuff = '.mexa64';
end
else
if (~isempty(regexp(computer, 'aarch64')))
exesuff = '.mexmaca64';
elseif (isempty(regexp(computer, '86_64')))
exesuff = '.mexmaci';
else
exesuff = '.mexmaci64';
end
end
else
exesuff = '.exe';
end
end