2008-05-31 09:55:54 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# WAF build script for midori
|
2008-10-11 05:27:52 +00:00
|
|
|
# This file is licensed under the terms of the expat license, see the file EXPAT.
|
2008-05-31 09:55:54 +00:00
|
|
|
|
2009-01-17 22:52:09 +00:00
|
|
|
import platform
|
|
|
|
|
2010-01-01 17:20:08 +00:00
|
|
|
progressive = True
|
|
|
|
libs = 'M UNIQUE LIBSOUP GMODULE GTHREAD LIBIDN GIO GTK SQLITE ' \
|
|
|
|
'LIBNOTIFY WEBKIT LIBXML X11 WS2_32 OPENSSL HILDON HILDON_FM'
|
2009-01-17 22:52:09 +00:00
|
|
|
|
2010-01-01 17:20:08 +00:00
|
|
|
if progressive or Options.commands['check']:
|
|
|
|
obj = bld.new_task_gen ('cc', 'staticlib')
|
|
|
|
obj.target = 'midori-core'
|
|
|
|
obj.includes = '.. ../katze .'
|
|
|
|
obj.find_sources_in_dirs ('../katze . ../panels', excludes=['main.c'])
|
|
|
|
obj.uselib = libs
|
|
|
|
obj.add_marshal_file ('marshal.list', 'midori_cclosure_marshal')
|
|
|
|
obj.install_path = None
|
|
|
|
bld.add_group ()
|
2009-02-15 21:01:27 +00:00
|
|
|
|
2010-01-01 17:20:08 +00:00
|
|
|
if progressive:
|
|
|
|
obj = bld.new_task_gen ('cc', 'program')
|
|
|
|
obj.target = 'midori'
|
|
|
|
obj.includes = '.. ../katze . ../panels'
|
2010-01-03 21:58:04 +00:00
|
|
|
obj.source = './main.c'
|
2010-01-01 17:20:08 +00:00
|
|
|
obj.uselib = libs
|
|
|
|
obj.uselib_local = 'midori-core'
|
|
|
|
if bld.env['WINRC']:
|
|
|
|
obj.source += ' ../data/midori.rc'
|
|
|
|
else:
|
|
|
|
obj = bld.new_task_gen ('cc', 'program')
|
|
|
|
obj.target = 'midori'
|
|
|
|
obj.includes = '.. ../katze . ../panels'
|
|
|
|
obj.find_sources_in_dirs ('../katze . ../panels')
|
|
|
|
obj.add_marshal_file ('marshal.list', 'midori_cclosure_marshal')
|
|
|
|
obj.uselib = libs
|
|
|
|
if bld.env['WINRC']:
|
|
|
|
obj.source += ' ../data/midori.rc'
|