1643ca7872b450ea4efacab6188849e5aac2ba161Steve Block#! /usr/bin/env python
2643ca7872b450ea4efacab6188849e5aac2ba161Steve Block
3643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# Copyright (C) 2009 Kevin Ollivier  All rights reserved.
4643ca7872b450ea4efacab6188849e5aac2ba161Steve Block#
5643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# Redistribution and use in source and binary forms, with or without
6643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# modification, are permitted provided that the following conditions
7643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# are met:
8643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# 1. Redistributions of source code must retain the above copyright
9643ca7872b450ea4efacab6188849e5aac2ba161Steve Block#    notice, this list of conditions and the following disclaimer.
10643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# 2. Redistributions in binary form must reproduce the above copyright
11643ca7872b450ea4efacab6188849e5aac2ba161Steve Block#    notice, this list of conditions and the following disclaimer in the
12643ca7872b450ea4efacab6188849e5aac2ba161Steve Block#    documentation and/or other materials provided with the distribution.
13643ca7872b450ea4efacab6188849e5aac2ba161Steve Block#
14643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
15643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
18643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
25643ca7872b450ea4efacab6188849e5aac2ba161Steve Block#
26643ca7872b450ea4efacab6188849e5aac2ba161Steve Block# wxBrowser sample app build script for the waf build system
27643ca7872b450ea4efacab6188849e5aac2ba161Steve Block
28643ca7872b450ea4efacab6188849e5aac2ba161Steve Blockimport sys
29643ca7872b450ea4efacab6188849e5aac2ba161Steve Block
30643ca7872b450ea4efacab6188849e5aac2ba161Steve Blockfrom settings import *
31643ca7872b450ea4efacab6188849e5aac2ba161Steve Block
32643ca7872b450ea4efacab6188849e5aac2ba161Steve Blockinclude_paths = [
33643ca7872b450ea4efacab6188849e5aac2ba161Steve Block                os.path.join(output_dir),
34cad810f21b803229eb11403f9209855525a25d57Steve Block                os.path.join(wk_root, 'Source', 'JavaScriptCore'),
35cad810f21b803229eb11403f9209855525a25d57Steve Block                os.path.join(wk_root, 'Source', 'WebCore'),
36cad810f21b803229eb11403f9209855525a25d57Steve Block                os.path.join(wk_root, 'Source', 'WebCore', 'bindings', 'wx'),
3765f03d4f644ce73618e5f4f50dd694b26f55ae12Ben Murdoch                os.path.join(wk_root, 'Source', 'WebKit', 'wx'), 
38643ca7872b450ea4efacab6188849e5aac2ba161Steve Block                '.', 
39643ca7872b450ea4efacab6188849e5aac2ba161Steve Block                'wx'
40643ca7872b450ea4efacab6188849e5aac2ba161Steve Block                ]
41643ca7872b450ea4efacab6188849e5aac2ba161Steve Blocksources = [
42643ca7872b450ea4efacab6188849e5aac2ba161Steve Block            'LayoutTestController.cpp',
43643ca7872b450ea4efacab6188849e5aac2ba161Steve Block            'WorkQueue.cpp',
44643ca7872b450ea4efacab6188849e5aac2ba161Steve Block            'wx/DumpRenderTreeWx.cpp',
45643ca7872b450ea4efacab6188849e5aac2ba161Steve Block            'wx/LayoutTestControllerWx.cpp',
46643ca7872b450ea4efacab6188849e5aac2ba161Steve Block            'wx/WorkQueueItemWx.cpp'
47643ca7872b450ea4efacab6188849e5aac2ba161Steve Block          ]
48643ca7872b450ea4efacab6188849e5aac2ba161Steve Block
49643ca7872b450ea4efacab6188849e5aac2ba161Steve Blockdef set_options(opt):
50643ca7872b450ea4efacab6188849e5aac2ba161Steve Block    common_set_options(opt)
51643ca7872b450ea4efacab6188849e5aac2ba161Steve Block
52643ca7872b450ea4efacab6188849e5aac2ba161Steve Blockdef configure(conf):
53643ca7872b450ea4efacab6188849e5aac2ba161Steve Block    common_configure(conf)
54643ca7872b450ea4efacab6188849e5aac2ba161Steve Block    
55643ca7872b450ea4efacab6188849e5aac2ba161Steve Blockdef build(bld):
56643ca7872b450ea4efacab6188849e5aac2ba161Steve Block    obj = bld.new_task_gen(
57643ca7872b450ea4efacab6188849e5aac2ba161Steve Block        features = 'cxx cprogram',
58643ca7872b450ea4efacab6188849e5aac2ba161Steve Block        includes = ' '.join(include_paths),
59643ca7872b450ea4efacab6188849e5aac2ba161Steve Block        source = sources,
60643ca7872b450ea4efacab6188849e5aac2ba161Steve Block        target = 'DumpRenderTree',
61f486d19d62f1bc33246748b14b14a9dfa617b57fIain Merrick        uselib = 'ICU WX ' + get_config(),
62643ca7872b450ea4efacab6188849e5aac2ba161Steve Block        libpath = [output_dir],
63f486d19d62f1bc33246748b14b14a9dfa617b57fIain Merrick        uselib_local = 'jscore wxwebkit',
64643ca7872b450ea4efacab6188849e5aac2ba161Steve Block        install_path = output_dir)
65643ca7872b450ea4efacab6188849e5aac2ba161Steve Block        
66