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

unable to build healpix

parent 8192d064
BLDROOT = $(SRCROOT)/build.$(HEALPIX_TARGET) BLDROOT = $(TGT)/build.$(HEALPIX_TARGET)
PREFIX = $(SRCROOT)/$(HEALPIX_TARGET) PREFIX = $(TGT)
BINDIR = $(PREFIX)/bin BINDIR = $(PREFIX)/bin
INCDIR = $(PREFIX)/include INCDIR = $(PREFIX)/include
LIBDIR = $(PREFIX)/lib 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,25 +32,33 @@ def configure( conf ): ...@@ -32,25 +32,33 @@ def configure( conf ):
conf.env.append_value( 'LINKFLAGS', ['-fopenmp'] ) conf.env.append_value( 'LINKFLAGS', ['-fopenmp'] )
# healpix # healpix
hp_base_dir = op.abspath(conf.options.with_healpix) conf.env.WHEALPIX = conf.options.with_healpix
conf.env.INCLUDES_HEALPIX = [op.join(hp_base_dir,'include')] if conf.options.with_healpix:
conf.env.LIBPATH_HEALPIX = [op.join(hp_base_dir,'lib')] hp_base_dir = op.abspath(conf.options.with_healpix)
conf.env.LIB_HEALPIX = ['cfitsio'] conf.env.INCLUDES_HEALPIX = [op.join(hp_base_dir,'include')]
conf.env.STLIB_HEALPIX = ['healpix_cxx', 'cxxsupport', 'psht', 'c_utils', 'fftpack'] conf.env.LIBPATH_HEALPIX = [op.join(hp_base_dir,'lib')]
conf.env.DEFINES_HEALPIX = ['HEALPIXDATA="'+op.join(hp_base_dir,'../data"')] conf.env.LIB_HEALPIX = ['cfitsio']
conf.check_cxx(stlib='healpix_cxx', use='HEALPIX') conf.env.STLIB_HEALPIX = ['healpix_cxx', 'cxxsupport', 'psht', 'c_utils', 'fftpack']
conf.check_cxx(stlib='cxxsupport', use='HEALPIX') conf.env.DEFINES_HEALPIX = ['HEALPIXDATA="'+op.join(hp_base_dir,'../data"')]
conf.check_cxx(stlib='psht', use='HEALPIX') conf.check_cxx(stlib='healpix_cxx', use='HEALPIX')
conf.check_cxx(stlib='c_utils', use='HEALPIX') conf.check_cxx(stlib='cxxsupport', use='HEALPIX')
conf.check_cxx(stlib='fftpack', use='HEALPIX') 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 # gsl
if conf.find_program( 'gsl-config' ): if conf.find_program( 'gsl-config' ):
conf.check_cfg(path='gsl-config', args='--libs --cflags', uselib_store='GSL',package='') conf.check_cfg(path='gsl-config', args='--libs --cflags', uselib_store='GSL',package='')
def build( bld ): def build( bld ):
if not bld.env.WHEALPIX:
bld.add_subdirs( [ "healpix",
] )
print "coco"
bld.add_subdirs( [ "lib/src", bld.add_subdirs( [ "lib/src",
"nilc", "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