Ejemplo n.º 1
0
    includeDirs.append(mpiIncDir)
    includeDirs.append(mpi4pyIncDir)
if hdf: libraries.append('hdf5')
if png: libraries.append('png')
if mpi: libraries.append('mpi')
(ok, libs, paths) = Dist.checkFortranLibs([], additionalLibPaths)
libraryDirs += paths
libraries += libs
(ok, libs, paths) = Dist.checkCppLibs([], additionalLibPaths)
libraryDirs += paths
libraries += libs

if png:
    mySystem = Dist.getSystem()
    if mySystem[0] == 'mingw':
        if not Dist.useStatic(): libraries += ["zlib1"]
        else: libraries += ["z"]

# Extensions ==================================================================
listExtensions = []
listExtensions.append(
    Extension('Converter.converter',
              sources=['Converter/converter.cpp'],
              include_dirs=["Converter"] + additionalIncludePaths +
              includeDirs,
              library_dirs=additionalLibPaths + libraryDirs,
              libraries=libraries + additionalLibs,
              extra_compile_args=Dist.getCppArgs(),
              extra_link_args=Dist.getLinkArgs()))

# setup ======================================================================
Ejemplo n.º 2
0
else:
    libraries += [libname] + libGL
    libraryDirs += [OSMesaLibDir]
    includeDirs += [OSMesaIncDir]

(ok, libs, paths) = Dist.checkCppLibs([], additionalLibPaths)
libraryDirs += paths
libraries += libs

# Test if PNG exists =========================================================
(png, pngIncDir, pngLib) = Dist.checkPng(additionalLibPaths,
                                         additionalIncludePaths)
if png:
    libraries += ["png"]
    if mySystem[0] == 'mingw':
        if Dist.useStatic() == False: libraries += ["zlib1"]
        else: libraries += ["z"]
    libraryDirs += [pngLib]
    includeDirs += [pngIncDir]

# Test if MPEG exists =========================================================
(mpeg, mpegIncDir, mpegLib) = Dist.checkMpeg(additionalLibPaths,
                                             additionalIncludePaths)
if mpeg:
    libraries += ["avcodec", "avutil"]
    libraryDirs += [mpegLib]
    includeDirs += [mpegIncDir]

libraryDirs += [kcoreLibDir]

# Extensions =================================================================