#!/usr/bin/env python import os, time, sys, glob # for the following two, AADIR should be in pythonpath from util.aafabricate import * import setup sources = ["antdst_reader.cc","tantra_muon_veto.cc"] def build(): # build the antdst library setup.rootcintopt += " -I ./antdstv1r5/src " os.environ['ANTDSTROOT'] = setup.aadir+'/antares/antdstv1r5' os.system ("cd "+setup.aadir+"/antares/antdstv1r5 ; make ; cd - ") os.system ("cp "+setup.aadir+"/antares/antdstv1r5/lib/libAntDST.so "+setup.lib_dir ) os.system ("cp "+setup.aadir+"/antares/antdstv1r5/src/*.pcm "+setup.lib_dir ) return setup.default_build_shared_library( sources, extra_compile_args = " -I ./antdstv1r5/src ", extra_link_args = " -L "+setup.lib_dir+" -lAntDST ", target = setup.aadir+"/lib/libaantares.so" ) def clean(): autoclean() main(parallel_ok=True, jobs=10)