Build Midori core as library, for easier use in tests

This commit is contained in:
Christian Dywan 2009-01-17 23:52:09 +01:00
parent 93bb9f6c5b
commit 97c80d0190
2 changed files with 20 additions and 5 deletions

View file

@ -2,10 +2,25 @@
# WAF build script for midori # WAF build script for midori
# This file is licensed under the terms of the expat license, see the file EXPAT. # This file is licensed under the terms of the expat license, see the file EXPAT.
import platform
obj = bld.new_task_gen ('cc', 'staticlib')
obj.name = 'midori'
obj.target = 'midori'
obj.includes = '. ..'
obj.find_sources_in_dirs ('.', excludes=['main.c'])
obj.add_marshal_file ('marshal.list', 'midori_cclosure_marshal')
obj.uselib = 'UNIQUE LIBSOUP GIO GTK SQLITE WEBKIT LIBXML'
obj.uselib_local = 'katze'
obj.install_path = None
if platform.architecture ()[0] == '64bit':
obj.env.append_value ('CCFLAGS', '-fPIC')
obj = bld.new_task_gen ('cc', 'program') obj = bld.new_task_gen ('cc', 'program')
obj.target = 'midori' obj.target = 'midori'
obj.includes = '. .. ../panels' obj.includes = '. .. ../panels'
obj.find_sources_in_dirs ('. ../panels') obj.source = 'main.c'
obj.add_marshal_file ('marshal.list', 'midori_cclosure_marshal') obj.find_sources_in_dirs ('../panels')
obj.uselib = 'UNIQUE LIBSOUP GMODULE GTHREAD GIO GTK SQLITE WEBKIT LIBXML' obj.uselib = 'UNIQUE LIBSOUP GMODULE GTHREAD GIO GTK SQLITE WEBKIT LIBXML'
obj.uselib_local = 'katze' obj.uselib_local = 'midori'

View file

@ -5,7 +5,7 @@
obj = bld.new_task_gen ('cc', 'program') obj = bld.new_task_gen ('cc', 'program')
obj.target = 'magic-uri' obj.target = 'magic-uri'
obj.includes = '.. ../midori' obj.includes = '.. ../midori'
obj.source = 'magic-uri.c ../midori/compat.c ../midori/sokoke.c' obj.source = 'magic-uri.c'
obj.uselib = 'UNIQUE LIBSOUP GIO GTK SQLITE WEBKIT LIBXML' obj.uselib = 'UNIQUE LIBSOUP GIO GTK SQLITE WEBKIT LIBXML'
obj.uselib_local = 'katze' obj.uselib_local = 'midori'
obj.unit_test = 1 obj.unit_test = 1