#! /usr/bin/env python
# WAF build script for Postler (based on Midori's wscript)
#
# This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# See the file COPYING for the full license text.

obj = bld.new_task_gen ('cc', 'program')
obj.name = 'postler'
obj.target = 'postler'
obj.includes = '. ..'
obj.find_sources_in_dirs ('.')
obj.uselib = 'GIO GTHREAD GTK LIBNOTIFY LIBCANBERRA INDICATE UNIQUE WEBKIT'
obj.packages = 'config postler posix gio-2.0 gtk+-2.0 libnotify libcanberra ' \
               'unique-1.0 webkit-1.0'
obj.vapi_dirs = '.'

if bld.env['HAVE_INDICATE']:
    obj.packages += ' indicate'

