#! /usr/bin/env python
# encoding: utf-8
# Oliver Sauder, 2010

import Options

lib = bld.shlib (
  features = 'c cshlib',
  target = 'diodon',
  name = 'libdiodon',
  vnum = '0.0.0',
  vapi_dirs = '../vapi',
  uselib = 'GTK GEE X11 GDKX PEAS PEASGTK XTST GDK ZEITGEIST',
  cflags = ['-include', 'config.h'],
  header_path = '${INCLUDEDIR}/diodon',
  gir = 'Diodon-1.0',
  packages = 'gtk+-3.0 gee-0.8',
  packages_private = 'zeitgeist-2.0 x11 gdk-x11-3.0 libpeas-gtk-1.0 libpeas-1.0 config xtst gdk-3.0',
  source = bld.path.ant_glob (incl='**/*.vala'))

lib_typelib = bld.new_task_gen(
  name = 'libdiodon_typelib',
  after = 'libdiodon',
  source = 'Diodon-1.0.gir',
  target = 'Diodon-1.0.typelib',
  install_path = '${LIBDIR}/girepository-1.0',
  rule='g-ir-compiler --shared-library=libdiodon -o ${TGT} ${SRC}')

