#!/usr/bin/env ascript
import(module_builder) {build, extraDir}
build('sdl.azd', ['Module_sdl.cpp']) {
	msc = bcc = %{
		`incDirs => [path.join(extraDir, 'include', 'SDL')]
		`dlls => ['SDL.dll', 'SDL_image.dll', 'SDL_mixer.dll', 'SDL_ttf.dll']
		`cflags => ['-D__DMC__']
	}
	gnuc = %{
		`libs => ['SDL', 'SDL_image', 'SDL_mixer']
		`incDirs => ['/usr/include/SDL', '/usr/local/include/SDL']
		`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 libsdl1.2-dev
  $ sudo apt-get install libsdl-image1.2-dev
  $ sudo apt-get install libsdl-mixer1.2-dev
'''
	}
}
