Beispiel #1
0
    libraries += ["png"]
    libraryDirs += [pngLib]
    includeDirs += [pngIncDir]

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

# Test if OSMesa exists =======================================================
# Put this to True for using CPlot in batch mode
if UseOSMesa:
    (OSMesa, OSMesaIncDir, OSMesaLib) = Dist.checkOSMesa(additionalLibPaths,
                                                         additionalIncludePaths)
    if OSMesa:
        libraries += ["OSMesa"]
        libraryDirs += [OSMesaLib]
        includeDirs += [OSMesaIncDir]
else: OSMesa = False
    
# Extensions =================================================================
import srcs

import KCore.installPath
EXTRA = ['-D__SHADERS__']
if OSMesa: EXTRA += ['-D__MESA__']

cppargs = Dist.getCppArgs()
EXTRA += cppargs
Beispiel #2
0
    libraries = ["kcore", "X11", "Xmu", "cplot"]
    libGL = ['GL', 'GLU']
else:
    libraries = ["cplot", "kcore", "Xi", "Xmu", "rt"]
    libGL = ['GL', 'GLU']

from KCore.config import *
prod = os.getenv("ELSAPROD")
if prod is None: prod = 'xx'
libraryDirs = ["build/" + prod]
includeDirs = [numpyIncDir, kcoreIncDir]

# Test if OSMesa exists =======================================================
if UseOSMesa:
    (OSMesa, OSMesaIncDir, OSMesaLibDir,
     libname) = Dist.checkOSMesa(additionalLibPaths, additionalIncludePaths)
else:
    OSMesa = False

if not OSMesa: libraries += libGL
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,