1<?xml version="1.0" ?> 2<!-- 3Copyright (C) 2007 Kevin Ollivier All rights reserved. 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 29JavaScriptCore Bakefile project file. 30--> 31 32<makefile> 33 <set var="WX_UNICODE">1</set> 34 <set var="WX_SHARED">1</set> 35 36 <include file="presets/wx.bkl"/> 37 <include file="presets/wxwebkit.bkl"/> 38 <include file="dependencies.bkl"/> 39 40 <set var="BUILDDIR">obj-$(FORMAT)</set> 41 <!-- the WX_PYTHON option was added to presets/wx.bkl in 2.8.5, so define 42 it in case the presets/wx.bkl doesn't define it for us. --> 43 44 <if cond="not isdefined('WX_PYTHON')"> 45 <set var="WX_PYTHON">0</set> 46 </if> 47 48 <template id="wxwk_build_settings"> 49 <dirname>$(WKOUTPUTDIR)</dirname> 50 <warnings>default</warnings> 51 <cxx-rtti>on</cxx-rtti> 52 <cxx-exceptions>on</cxx-exceptions> 53 <define>BUILDING_WX__=1</define> 54 <define>ENABLE_DOM_STORAGE</define> 55 <define> 56 $(substituteFromDict(DEBUG,{'1':'','0':'NDEBUG'})) 57 </define> 58 <define>USE_SYSTEM_MALLOC</define> 59 <optimize> 60 $(substituteFromDict(DEBUG,{'1':'off','0':'speed'})) 61 </optimize> 62 <debug-info> 63 $(substituteFromDict(DEBUG,{'1':'on','0':'off'})) 64 </debug-info> 65 <if cond="FORMAT in ['msvc', 'msvs2005prj']"> 66 <set var="DEBUG_RUNTIME"> 67 <if cond="WX_PYTHON=='1' and WX_DEBUG=='0'">off</if> 68 <if cond="WX_PYTHON=='0' and WX_DEBUG=='0'">off</if> 69 <if cond="WX_PYTHON=='1' and WX_DEBUG=='1'">off</if> 70 <if cond="WX_PYTHON=='0' and WX_DEBUG=='1'">on</if> 71 </set> 72 <debug-runtime-libs> 73 $(DEBUG_RUNTIME) 74 </debug-runtime-libs> 75 </if> 76 <if cond="FORMAT=='gnu'"> 77 <include>$(WK_ROOT)/WebKitLibraries/unix/include</include> 78 <lib-path>$(WK_ROOT)/WebKitLibraries/unix/lib</lib-path> 79 <lib-path>$(WK_ROOT)/WebKitLibraries</lib-path> 80 </if> 81 <if cond="FORMAT in ['msvc', 'msvs2005prj']"> 82 <include>$(WK_ROOT)/WebKitLibraries/win/include</include> 83 <lib-path>$(WK_ROOT)/WebKitLibraries/win/lib</lib-path> 84 </if> 85 </template> 86 <template id="wxwk" template="wxwk_build_settings,wx"> 87 <!-- 88 since wx 2.8's libpng and libjpeg symbols get exported when using gcc/gnu make 89 we need to make sure our versions appear first, so that it will get the symbols 90 from the right place 91 --> 92 <if cond="FORMAT=='gnu'"> 93 <ldflags>-ljpeg -lpng</ldflags> 94 </if> 95 96 <set var="WEBCORE_LIBS"> 97 <if cond="PLATFORM_OS=='mac'"> 98 WebKitSystemInterfaceTiger 99 </if> 100 </set> 101 <sys-lib>$(WEBCORE_LIBS)</sys-lib> 102 <wx-lib>core</wx-lib> 103 <wx-lib>base</wx-lib> 104 <if cond="PLATFORM_WIN32=='1'"> 105 <define>WXUSINGDLL=1</define> 106 </if> 107 </template> 108 109</makefile> 110