#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006 (ita)

import Params, os, sys, base64, shutil 

APPNAME='ksirk'
VERSION='1.8'

srcdir = '.'
blddir = '_build_'

def build(bld):
	for dir in ['ksirk/Dialogs ksirk/GameLogic ksirk/SaveLoad ksirk/Sprites ksirk doc po']:
		bld.add_subdirs(dir)

def configure(conf):
        conf.check_tool('g++ KDE3')
        #conf.checkLibrary('crypt', '', '')
        conf.check_library2('crypt',        '',    '')
        conf.env['CXXFLAGS_QT']=['-DQT_THREAD_SUPPORT','-D_REENTRANT']
        conf.check_header('dlfcn.h','HAVE_DLFCN_H')
        # check for libkcal using the KDECORE variables
        #conf.checkLibrary('kcal', uselib='KDECORE')
        conf.env.appendValue('CXXFLAGS',  ['-O0 -g3 -DVERSION=\'"'+VERSION+'"\''])
        conf.env.appendValue('LIB',  ['crypt'])
        conf.write_config_header('config.h')


def set_options(opt):
        opt.tool_options('KDE3')

