#!/usr/bin/env ascript
import(module_builder) {build, extraDir}
build('mysql.azd', ['Module_mysql.cpp']) {
	mysqlDir = path.join(extraDir, 'mysql-connector-c-noinstall-6.0.2-win32')
	msc = bcc = %{
		`incDirs => [path.join(mysqlDir, 'include')]
		`dlls => [path.join(mysqlDir, 'lib', 'libmysql.dll')]
		`addUnderscoreFlag => false
	}
	gnuc = %{
		`libs => ['mysqlclient']
		`incDirs => ['/usr/include/mysql', '/usr/local/include/mysql']
		`hint => '''\
It seems necessary libraries have not been installed on your system.
See the following steps to resolve this problem.
- Install Debian package:
  $ sudo apt-get install libmysqlclient-dev
'''
	}
}
