#!/usr/bin/env ascript
import(module_builder) {build, extraDir}
build('tcl.azd', ['Module_tcl.cpp']) {
	msc = %{
		`libs => [
			path.join(extraDir, 'tcl', 'lib', 'tcl85.lib')
			path.join(extraDir, 'tcl', 'lib', 'tk85.lib')
		]
		`incDirs => [
			path.join(extraDir, 'tcl', 'include')
		]
	}
	bcc = %{
		`dlls => ['tcl85.dll', 'tk85.dll']
		`incDirs => [
			path.join(extraDir, 'tcl', 'include')
		]
	}
	gnuc = %{
		`libs => ['tcl8.5', 'tk8.5']
		`incDirs => ['/usr/include/tcl8.5']
		`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 tk8.5-dev
'''
	}
}
