Commit 3d5cee39 authored by Marc Betoule's avatar Marc Betoule
Browse files

unable to build healpix

parent 8192d064
BLDROOT = $(SRCROOT)/build.$(HEALPIX_TARGET)
PREFIX = $(SRCROOT)/$(HEALPIX_TARGET)
BLDROOT = $(TGT)/build.$(HEALPIX_TARGET)
PREFIX = $(TGT)
BINDIR = $(PREFIX)/bin
INCDIR = $(PREFIX)/include
LIBDIR = $(PREFIX)/lib
......
# -*- mode: python -*-
#from waflib.Task import Task
#class make(Task):
# def run(self):
# return self.exec_command('make HEALPIX_TARGET=spherelib' % (
# self.inputs[0].abspath(),
# self.outputs[0].abspath()))
import os.path as op
def build( bld ):
#bld(rule='make HEALPIX_TARGET=spherelib', target='spherelib')
sources = bld.path.ant_glob('*.cpp', bld=False)
lib = bld( name = 'HEALPIX',
rule='echo ${TGT};cd ../healpix;pwd;make HEALPIX_TARGET=spherelib TGT=../build/${TGT}',
target = "spherelib",
includes = './spherelib/include',
export_defines = ['HEALPIXDATA="'+op.abspath('./data')+'"'],
export_includes = './spherelib/include',
stlibpath = ['./spherelib/lib'],
stlib = ['healpix_cxx', 'cxxsupport', 'psht', 'c_utils', 'fftpack', 'cfitsio'],
)
......@@ -32,6 +32,8 @@ def configure( conf ):
conf.env.append_value( 'LINKFLAGS', ['-fopenmp'] )
# healpix
conf.env.WHEALPIX = conf.options.with_healpix
if conf.options.with_healpix:
hp_base_dir = op.abspath(conf.options.with_healpix)
conf.env.INCLUDES_HEALPIX = [op.join(hp_base_dir,'include')]
conf.env.LIBPATH_HEALPIX = [op.join(hp_base_dir,'lib')]
......@@ -43,13 +45,19 @@ def configure( conf ):
conf.check_cxx(stlib='psht', use='HEALPIX')
conf.check_cxx(stlib='c_utils', use='HEALPIX')
conf.check_cxx(stlib='fftpack', use='HEALPIX')
else:
conf.start_msg('Checking for healpix')
conf.end_msg('using the builtin healpix installation')
# gsl
if conf.find_program( 'gsl-config' ):
conf.check_cfg(path='gsl-config', args='--libs --cflags', uselib_store='GSL',package='')
def build( bld ):
if not bld.env.WHEALPIX:
bld.add_subdirs( [ "healpix",
] )
print "coco"
bld.add_subdirs( [ "lib/src",
"nilc",
] )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment