namespace build

build

Attributes

Name
stringextsrcdir
Build dirs.
stringextbuilddir
srcdir
libdir
listincdirs
listlookupdirs
stringincargs
Include args.
stringcmpargs
Compile args.
stringlinkargs
Link args – base on install-prefix, or on local lib dirs for pre-install build.
listlibraries
Library args.
stringlibargs
stringpyargs
Python compile/link args.
listlibpys
libpy
stringbuilddir
listsrcnames
Modules to build, adding rootcompat if requested.
srcpath
Run the compilation in the build dir for each source file.
xcmpargs
Add errors source for core only.
xlinkargs
stringcompile_cmd
Assemble the compile & link command.
cwd

Attributes Documentation

variable extsrcdir

string extsrcdir =  "/home/anarendran/Documents/temp/yoda/pyext/yoda";

Build dirs.

variable extbuilddir

string extbuilddir =  "/home/anarendran/Documents/temp/yoda/pyext/yoda";

variable srcdir

srcdir =  os.path.abspath("/home/anarendran/Documents/temp/yoda/src");

variable libdir

libdir =  os.path.abspath("/home/anarendran/Documents/temp/yoda/src/.libs");

variable incdirs

list incdirs =  [os.path.abspath("/home/anarendran/Documents/temp/yoda/include"),
           os.path.abspath("/home/anarendran/Documents/temp/yoda/include"),
           os.path.abspath(extsrcdir),
           os.path.abspath(extbuilddir)];

variable lookupdirs

list lookupdirs =  [];

variable incargs

string incargs =  " ".join("-I{}".format(d) for d in incdirs);

Include args.

variable cmpargs

string cmpargs =  "-O3 -Wno-unused-but-set-variable -Wno-sign-compare";

Compile args.

variable linkargs

string linkargs =  " ".join("-L{}".format(d) for d in lookupdirs);

Link args – base on install-prefix, or on local lib dirs for pre-install build.

variable libraries

list libraries =  ["YODA"];

Library args.

variable libargs

string libargs =  " ".join("-l{}".format(l) for l in libraries);

variable pyargs

string pyargs =  "-I" + sysconfig.get_config_var("INCLUDEPY");

Python compile/link args.

variable libpys

list libpys =  [os.path.join(sysconfig.get_config_var(ld), sysconfig.get_config_var("LDLIBRARY")) for ld in ["LIBPL", "LIBDIR"]];

variable libpy

libpy =  None;

variable builddir

string builddir =  "/home/anarendran/Documents/temp/yoda/pyext/build/yoda";

variable srcnames

list srcnames =  ["core", "util"];

Modules to build, adding rootcompat if requested.

variable srcpath

srcpath =  os.path.join(extbuilddir, srcname+".cpp");

Run the compilation in the build dir for each source file.

Find the extension source file

variable xcmpargs

xcmpargs;

Add errors source for core only.

Add ROOT args for rootcompat only

variable xlinkargs

xlinkargs;

variable compile_cmd

string compile_cmd =  "  ".join([os.environ.get("CXX", "g++"), "-shared -fPIC", "-o {}.so".format(srcname),
                             srcpath, incargs, xcmpargs, xlinkargs, libargs, pyargs]);

Assemble the compile & link command.

variable cwd

cwd;

Updated on 2022-08-08 at 20:05:55 +0100