mana-core-rootutils / wscript

# -*- python -*-

import waflib.Logs as msg

PACKAGE = {
    'name': 'RootUtils',
    'author': ['atlas collaboration'],
}

def pkg_deps(ctx):
    ctx.use_pkg('ext/python')
    ctx.use_pkg('ext/root')
    return

def configure(ctx):
    msg.debug ('[configure] package name: '+PACKAGE['name'])
    return

def build(ctx):


    ctx.build_linklib(
        name     = 'RootUtils',
        source   = '*.cxx',
        use      = ['ROOT', 'Reflex',
                    ],
        )

    ctx.build_linklib(
        name     = 'RootUtilsPyROOT',
        source   = 'pyroot/*.cxx',
        use      = ['ROOT', 'Reflex', 'PyROOT',
                    'RootUtils',
                    'python',
                    ],
        lib      = ['TreePlayer',],
        )

    ctx.build_reflex_dict(
        name     = 'RootUtils',
        source   = 'RootUtils/RootUtilsDict.h',
        selection_file = 'RootUtils/selection.xml',
        use      = ['RootUtils','ROOT', 'Reflex',],
        )

    ctx.build_reflex_dict(
        name     = 'RootUtilsPyROOT',
        source   = 'RootUtils/RootUtilsPyROOTDict.h',
        selection_file = 'RootUtils/selection_PyROOT.xml',
        use      = ['RootUtilsPyROOT','ROOT', 'Reflex', 'PyROOT'],
        lib      = ['TreePlayer',],
        )

    ctx.install_headers()
    ctx.build_pymodule(source=['python/*.py'])
    
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.