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
|
|
|
|
2010-10-18 20:24:27 +00:00
|
|
|
import Options
|
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 ' \
|
2012-02-19 19:21:37 +00:00
|
|
|
'LIBNOTIFY WEBKIT JAVASCRIPTCOREGTK LIBXML X11 XSS WS2_32 HILDON' \
|
2012-08-05 20:20:13 +00:00
|
|
|
'HILDON_FM GCR GRANITE ZEITGEIST'
|
2009-01-17 22:52:09 +00:00
|
|
|
|
2012-09-10 22:38:09 +00:00
|
|
|
if progressive:
|
2010-01-01 17:20:08 +00:00
|
|
|
obj = bld.new_task_gen ('cc', 'staticlib')
|
|
|
|
obj.target = 'midori-core'
|
2010-06-17 18:03:11 +00:00
|
|
|
obj.includes = '.. ../katze . ../toolbars'
|
|
|
|
obj.find_sources_in_dirs ('../katze . ../panels ../toolbars', excludes=['main.c'])
|
2010-01-01 17:20:08 +00:00
|
|
|
obj.uselib = libs
|
|
|
|
obj.add_marshal_file ('marshal.list', 'midori_cclosure_marshal')
|
|
|
|
obj.install_path = None
|
2012-05-27 13:08:23 +00:00
|
|
|
obj.vapi_dirs = '../midori ../katze'
|
2012-08-29 18:19:05 +00:00
|
|
|
obj.packages = 'glib-2.0 gio-2.0 libsoup-2.4 posix'
|
2012-05-27 13:08:23 +00:00
|
|
|
if bld.env['HAVE_GTK3']:
|
|
|
|
obj.packages += ' gtk+-3.0 webkitgtk-3.0'
|
|
|
|
else:
|
|
|
|
obj.packages += ' gtk+-2.0 webkit-1.0'
|
2010-01-01 17:20:08 +00:00
|
|
|
bld.add_group ()
|
2009-02-15 21:01:27 +00:00
|
|
|
|
2010-01-01 17:20:08 +00:00
|
|
|
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'
|