import Options
import Environment
import sys, os, shutil, glob
from os import unlink, symlink, popen
from os.path import join, dirname, abspath, normpath

srcdir = '.'
blddir = 'build'
VERSION = '0.5.0'

def set_options(opt):
	opt.tool_options('compiler_cxx')
	opt.tool_options('compiler_cc')
	opt.tool_options('misc')
	
	opt.add_option( '--clearsilver'
		, action='store'
		, type='string'
		, default=False
		, help='clearsilver install'
		, dest='clearsilver'
		)

def configure(conf):
	conf.check_tool('compiler_cxx')
	if not conf.env.CXX: conf.fatal('c++ compiler not found')
	conf.check_tool('compiler_cc')
	if not conf.env.CC: conf.fatal('c compiler not found')
	conf.check_tool('node_addon')
	
	o = Options.options

	if o.clearsilver:
	    conf.env.append_value("CPPFLAGS", '-I%s/include' % o.clearsilver)
	    conf.env.append_value("CPPFLAGS", '-I%s/include/ClearSilver' % o.clearsilver)
	    conf.env.append_value("LINKFLAGS", '-L%s/lib' % o.clearsilver)
	
	# print conf.env
	
	# check ClearSilver libs
	conf.check_cc( lib='neo_cs', mandatory=True )
	conf.check_cc( lib='neo_utl', mandatory=True )
	conf.check_cc( lib='neo_cgi', mandatory=True )
	conf.check_cc( lib='pthread', mandatory=True )

def build(bld):
	# print 'build'
	t = bld.new_task_gen('cxx', 'shlib', 'node_addon')
	t.target = 'ClearSilver'
	t.source = './src/clearsilver.cc'
	t.includes = ['.']
	t.lib = ['neo_cs','neo_cgi','neo_utl','pthread']

def shutdown(ctx):
	pass

e33aeff683f917031af70c5d1090396545d216f2
<mask token>


def configure(conf):
    conf.check_tool('compiler_cxx')
    if not conf.env.CXX:
        conf.fatal('c++ compiler not found')
    conf.check_tool('compiler_cc')
    if not conf.env.CC:
        conf.fatal('c compiler not found')
    conf.check_tool('node_addon')
    o = Options.options
    if o.clearsilver:
        conf.env.append_value('CPPFLAGS', '-I%s/include' % o.clearsilver)
        conf.env.append_value('CPPFLAGS', '-I%s/include/ClearSilver' % o.
            clearsilver)
        conf.env.append_value('LINKFLAGS', '-L%s/lib' % o.clearsilver)
    conf.check_cc(lib='neo_cs', mandatory=True)
    conf.check_cc(lib='neo_utl', mandatory=True)
    conf.check_cc(lib='neo_cgi', mandatory=True)
    conf.check_cc(lib='pthread', mandatory=True)


def build(bld):
    t = bld.new_task_gen('cxx', 'shlib', 'node_addon')
    t.target = 'ClearSilver'
    t.source = './src/clearsilver.cc'
    t.includes = ['.']
    t.lib = ['neo_cs', 'neo_cgi', 'neo_utl', 'pthread']


def shutdown(ctx):
    pass

<mask token>


def set_options(opt):
    opt.tool_options('compiler_cxx')
    opt.tool_options('compiler_cc')
    opt.tool_options('misc')
    opt.add_option('--clearsilver', action='store', type='string', default=
        False, help='clearsilver install', dest='clearsilver')


def configure(conf):
    conf.check_tool('compiler_cxx')
    if not conf.env.CXX:
        conf.fatal('c++ compiler not found')
    conf.check_tool('compiler_cc')
    if not conf.env.CC:
        conf.fatal('c compiler not found')
    conf.check_tool('node_addon')
    o = Options.options
    if o.clearsilver:
        conf.env.append_value('CPPFLAGS', '-I%s/include' % o.clearsilver)
        conf.env.append_value('CPPFLAGS', '-I%s/include/ClearSilver' % o.
            clearsilver)
        conf.env.append_value('LINKFLAGS', '-L%s/lib' % o.clearsilver)
    conf.check_cc(lib='neo_cs', mandatory=True)
    conf.check_cc(lib='neo_utl', mandatory=True)
    conf.check_cc(lib='neo_cgi', mandatory=True)
    conf.check_cc(lib='pthread', mandatory=True)


def build(bld):
    t = bld.new_task_gen('cxx', 'shlib', 'node_addon')
    t.target = 'ClearSilver'
    t.source = './src/clearsilver.cc'
    t.includes = ['.']
    t.lib = ['neo_cs', 'neo_cgi', 'neo_utl', 'pthread']


def shutdown(ctx):
    pass

<mask token>
srcdir = '.'
blddir = 'build'
VERSION = '0.5.0'


def set_options(opt):
    opt.tool_options('compiler_cxx')
    opt.tool_options('compiler_cc')
    opt.tool_options('misc')
    opt.add_option('--clearsilver', action='store', type='string', default=
        False, help='clearsilver install', dest='clearsilver')


def configure(conf):
    conf.check_tool('compiler_cxx')
    if not conf.env.CXX:
        conf.fatal('c++ compiler not found')
    conf.check_tool('compiler_cc')
    if not conf.env.CC:
        conf.fatal('c compiler not found')
    conf.check_tool('node_addon')
    o = Options.options
    if o.clearsilver:
        conf.env.append_value('CPPFLAGS', '-I%s/include' % o.clearsilver)
        conf.env.append_value('CPPFLAGS', '-I%s/include/ClearSilver' % o.
            clearsilver)
        conf.env.append_value('LINKFLAGS', '-L%s/lib' % o.clearsilver)
    conf.check_cc(lib='neo_cs', mandatory=True)
    conf.check_cc(lib='neo_utl', mandatory=True)
    conf.check_cc(lib='neo_cgi', mandatory=True)
    conf.check_cc(lib='pthread', mandatory=True)


def build(bld):
    t = bld.new_task_gen('cxx', 'shlib', 'node_addon')
    t.target = 'ClearSilver'
    t.source = './src/clearsilver.cc'
    t.includes = ['.']
    t.lib = ['neo_cs', 'neo_cgi', 'neo_utl', 'pthread']


def shutdown(ctx):
    pass

import Options
import Environment
import sys, os, shutil, glob
from os import unlink, symlink, popen
from os.path import join, dirname, abspath, normpath
srcdir = '.'
blddir = 'build'
VERSION = '0.5.0'


def set_options(opt):
    opt.tool_options('compiler_cxx')
    opt.tool_options('compiler_cc')
    opt.tool_options('misc')
    opt.add_option('--clearsilver', action='store', type='string', default=
        False, help='clearsilver install', dest='clearsilver')


def configure(conf):
    conf.check_tool('compiler_cxx')
    if not conf.env.CXX:
        conf.fatal('c++ compiler not found')
    conf.check_tool('compiler_cc')
    if not conf.env.CC:
        conf.fatal('c compiler not found')
    conf.check_tool('node_addon')
    o = Options.options
    if o.clearsilver:
        conf.env.append_value('CPPFLAGS', '-I%s/include' % o.clearsilver)
        conf.env.append_value('CPPFLAGS', '-I%s/include/ClearSilver' % o.
            clearsilver)
        conf.env.append_value('LINKFLAGS', '-L%s/lib' % o.clearsilver)
    conf.check_cc(lib='neo_cs', mandatory=True)
    conf.check_cc(lib='neo_utl', mandatory=True)
    conf.check_cc(lib='neo_cgi', mandatory=True)
    conf.check_cc(lib='pthread', mandatory=True)


def build(bld):
    t = bld.new_task_gen('cxx', 'shlib', 'node_addon')
    t.target = 'ClearSilver'
    t.source = './src/clearsilver.cc'
    t.includes = ['.']
    t.lib = ['neo_cs', 'neo_cgi', 'neo_utl', 'pthread']


def shutdown(ctx):
    pass

import Options
import Environment
import sys, os, shutil, glob
from os import unlink, symlink, popen
from os.path import join, dirname, abspath, normpath

srcdir = '.'
blddir = 'build'
VERSION = '0.5.0'

def set_options(opt):
	opt.tool_options('compiler_cxx')
	opt.tool_options('compiler_cc')
	opt.tool_options('misc')
	
	opt.add_option( '--clearsilver'
		, action='store'
		, type='string'
		, default=False
		, help='clearsilver install'
		, dest='clearsilver'
		)

def configure(conf):
	conf.check_tool('compiler_cxx')
	if not conf.env.CXX: conf.fatal('c++ compiler not found')
	conf.check_tool('compiler_cc')
	if not conf.env.CC: conf.fatal('c compiler not found')
	conf.check_tool('node_addon')
	
	o = Options.options

	if o.clearsilver:
	    conf.env.append_value("CPPFLAGS", '-I%s/include' % o.clearsilver)
	    conf.env.append_value("CPPFLAGS", '-I%s/include/ClearSilver' % o.clearsilver)
	    conf.env.append_value("LINKFLAGS", '-L%s/lib' % o.clearsilver)
	
	# print conf.env
	
	# check ClearSilver libs
	conf.check_cc( lib='neo_cs', mandatory=True )
	conf.check_cc( lib='neo_utl', mandatory=True )
	conf.check_cc( lib='neo_cgi', mandatory=True )
	conf.check_cc( lib='pthread', mandatory=True )

def build(bld):
	# print 'build'
	t = bld.new_task_gen('cxx', 'shlib', 'node_addon')
	t.target = 'ClearSilver'
	t.source = './src/clearsilver.cc'
	t.includes = ['.']
	t.lib = ['neo_cs','neo_cgi','neo_utl','pthread']

def shutdown(ctx):
	pass
