#!/usr/bin/env ascript
import(module_builder) {build, extraDir}
build('jpeg.azd', ['Module_jpeg.cpp']) {
	msc = %{
		`incDirs => [path.join(extraDir, 'jpeg-8b')]
		`libs => [path.join(extraDir, 'jpeg-8b', 'libjpeg.lib')]
	}
	bcc = %{
		`incDirs => [path.join(extraDir, 'jpeg-8b')]
		`libs => [path.join(extraDir, 'jpeg-8b', 'libjpeg.bcc.lib')]
	}
	gnuc = %{
		`libs => ['jpeg']
		`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 libjpeg62-dev
'''
	}
}
