11evioenv = baseenv.Clone()
12evioenv.Replace(CPPPATH = [], CPPDEFINES = [], LIBS = [], LIBPATH = [], RPATH = [])
13debug = ARGUMENTS.get(
'debug',0)
15 evioenv.Append(CCFLAGS = [
'-g',
'-O0'])
17 evioenv.Append(CCFLAGS =
'-O')
19libname_soname = evioenv.subst(
'$SHLIBPREFIX')+libname+evioenv.subst(
'$SHLIBSUFFIX')
20pf = evioenv[
'PLATFORM']
22 evioenv.Append(SHLINKFLAGS =
'-Wl,-soname='+libname_soname)
24 evioenv.Append(SHLINKFLAGS =
'-Wl,-install_name,'+
'@rpath/'+libname_soname)
26eviolib = evioenv.SharedLibrary(target = libname, source = src)
28thisdir_fullpath = evioenv.Dir(
'.').path
30evioenv.Install(os.path.join(evioenv.subst(
'$INSTALLDIR'),evioenv.subst(
'$LIBSUBDIR')), eviolib)
31evioenv.Install(os.path.join(evioenv.subst(
'$INSTALLDIR'),
'include'), hdr)
32evioenv.Install(os.path.join(evioenv.subst(
'$INSTALLDIR'),
'src',thisdir_fullpath), src)