#!/usr/bin/env ascript
import(module_builder) {build, ascriptDir, extraDir}
build('xml.azd', ['Module_xml.cpp',
		path.join('..', 'Module_codecs_japanese', 'Conv_Japanese.cpp')]) {
	msc = %{
		`incDirs => [
			path.join(extraDir, 'expat-2.0.1', 'lib'),
			path.join(ascriptDir, 'src', 'Module_codecs_japanese')
		]
		`cflags => [
			'/DXML_STATIC'
		]
		`libs => [path.join(extraDir, 'expat-2.0.1', 'win32', 'bin', 'release', 'libexpatMT.lib')]
	}
	bcc = %{
		`incDirs => [
			path.join(extraDir, 'expat-2.0.1', 'lib'),
			path.join(ascriptDir, 'src', 'Module_codecs_japanese')
		]
		`cflags => [
			'-DXML_STATIC'
		]
		`libs => [path.join(extraDir, 'expat-2.0.1', 'bcb5', 'release', 'libexpats_mtd.lib')]
	}
	gnuc = %{
		`libs => ['expat']
		`incDirs => [path.join('..', 'Module_codecs_japanese')]
		`hint => '''\
It seems necessary libraries have not been installed on your system.
See the following step(s) to resolve this problem.
- Install Debian package:
  $ sudo apt-get install libexpat1-dev
'''
		
	}
}
