1<?xml version="1.0" ?> 2<!-- 3Copyright (C) 2007 Kevin Ollivier <kevino@theolliviers.com> 4 5Redistribution and use in source and binary forms, with or without 6modification, are permitted provided that the following conditions 7are met: 8 91. Redistributions of source code must retain the above copyright 10 notice, this list of conditions and the following disclaimer. 112. Redistributions in binary form must reproduce the above copyright 12 notice, this list of conditions and the following disclaimer in the 13 documentation and/or other materials provided with the distribution. 143. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 15 its contributors may be used to endorse or promote products derived 16 from this software without specific prior written permission. 17 18THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 19EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 22DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 29Bakefile for wxWebKit Python bindings. 30--> 31 32<makefile> 33 <set var="WX_UNICODE">1</set> 34 <set var="WX_SHARED">1</set> 35 <include file="../../wxwk-settings.bkl"/> 36 37 <!-- the WX_PYTHON option was added to presets/wx.bkl in 2.8.5, so define 38 it in case the presets/wx.bkl doesn't define it for us. --> 39 <if cond="not isdefined('WX_PYTHON')"> 40 <set var="WX_PYTHON">1</set> 41 </if> 42 43 <if cond="not isdefined('PYTHON_LIB')"> 44 <option name="PYTHON_LIB" never_empty="1"> 45 <default-value>python26</default-value> 46 <description> 47 The name of the Python library file. 48 </description> 49 </option> 50 </if> 51 52 <if cond="not isdefined('PYTHON_LIBDIR')"> 53 <option name="PYTHON_LIBDIR" category="path"> 54 <default-value>C:/Python25/Libs</default-value> 55 <description> 56 The directory containing the Python library to link against. 57 </description> 58 </option> 59 </if> 60 61 <module id="wxwebkit-python" template="wxwk,webcore,xml2,iconv,xslt,icu,jscore,curl,sqlite3,gtk,pthreads"> 62 <!-- make sure we relink wxwebkit if either webcore or jscore change --> 63 <if cond="FORMAT=='gnu'"> 64 <depends-on-file>$(WKOUTPUTDIR)/libjscore.a</depends-on-file> 65 <depends-on-file>$(WKOUTPUTDIR)/libwebcore-wx.a</depends-on-file> 66 </if> 67 <if cond="FORMAT=='msvc'"> 68 <depends-on-file>$(WKOUTPUTDIR)/jscore.lib</depends-on-file> 69 <depends-on-file>$(WKOUTPUTDIR)/webcore-wx.lib</depends-on-file> 70 </if> 71 <runtime-libs>dynamic</runtime-libs> 72 <dllname>_webview</dllname> 73 74 <include>$(WK_ROOT)/WebCore/platform/wx</include> 75 <include>$(WK_ROOT)/WebCore/bridge/wx</include> 76 <include>$(WK_ROOT)/WebCore/page/wx</include> 77 <include>$(WK_ROOT)/WebKit/wx</include> 78 <include>$(WK_ROOT)/WebKit/wx/WebKitSupport</include> 79 80 <if cond="FORMAT=='gnu'"> 81 <sys-lib>png</sys-lib> 82 <set var="MAC_FLAGS"> 83 <if cond="PLATFORM_OS=='mac'">-bundle -undefined dynamic_lookup</if> 84 </set> 85 <ldflags>$(PYTHON_LIB)</ldflags> 86 <ldflags>$(MAC_FLAGS)</ldflags> 87 </if> 88 <if cond="FORMAT in ['msvc','msvs2005prj']"> 89 <sys-lib>libpng</sys-lib> 90 <lib-path>$(WK_ROOT)/libpng</lib-path> 91 <sys-lib>$(PYTHON_LIB)</sys-lib> 92 </if> 93 94 <lib-path>$(PYTHON_LIBDIR)</lib-path> 95 96 97 <sys-lib>wxwebkit</sys-lib> 98 <lib-path>$(WKOUTPUTDIR)</lib-path> 99 100 <define>SWIG_TYPE_TABLE=_wxPython_table</define> 101 <define>WXP_USE_THREAD=1</define> 102 <define>SWIG_PYTHON_OUTPUT_TUPLE</define> 103 104 <sources> 105 webview.cpp 106 </sources> 107 </module> 108 109</makefile> 110