midori/extensions/wscript_build

31 lines
974 B
Text
Raw Normal View History

2008-11-18 01:07:53 +00:00
#! /usr/bin/env python
# WAF build script for midori
# This file is licensed under the terms of the expat license, see the file EXPAT.
extensions = os.listdir ('extensions')
for extension in extensions:
folder = 'extensions' + os.sep + extension
if os.path.isdir (folder):
2008-11-18 01:07:53 +00:00
files = os.listdir (folder)
target = extension
source = ''
for fila in files:
if fila[-2:] == '.c':
source += ' ' + extension + os.sep + fila
if not source:
Utils.pprint ('RED', folder + ': No source files found')
continue
else:
2008-11-18 01:07:53 +00:00
if extension[-2:] != '.c':
continue
target = extension[:-2]
source = extension
obj = bld.new_task_gen ('cc', 'shlib')
2008-11-18 01:07:53 +00:00
obj.target = target
obj.includes = '..'
2008-11-18 01:07:53 +00:00
obj.source = source
obj.uselib = 'UNIQUE LIBSOUP GIO GTK SQLITE WEBKIT LIBXML'
obj.uselib_local = 'katze'
obj.install_path = '${LIBDIR}/midori'