4d0a229e2a67405b685f9aa808b4a29d0472423c
[WebKit-https.git] / WebCore / webcore-base.bkl
1 <?xml version="1.0" ?>
2 <!-- 
3 Copyright (C) 2005, 2006 Apple Computer, Inc.  All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8
9 1.  Redistributions of source code must retain the above copyright
10     notice, this list of conditions and the following disclaimer. 
11 2.  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. 
14 3.  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
18 THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
19 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
22 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 ON 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
27 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 Base settings shared by all Bakefile-based ports.
30 -->
31
32 <makefile>
33
34     <!-- Common definitions etc.: -->
35
36     <set var="SRCDIR">../..</set>
37
38     <include file="../Bakefiles/presets.bkl"/>
39     <include file="WebCoreSources.bkl"/>
40     
41         <set var="WEBCORE_BASE_SOURCES">        
42                 $(WEBCORE_SOURCES_KWQ)
43                 $(WEBCORE_SOURCES_DERIVEDSOURCES)
44                 $(WEBCORE_SOURCES_KHTML)
45                 $(WEBCORE_SOURCES_MISC)
46                 $(WEBCORE_SOURCES_PAGE)
47                 $(WEBCORE_SOURCES_LOADER)
48                 $(WEBCORE_SOURCES_PLATFORM)
49                 $(WEBCORE_SOURCES_IMAGE-DECODERS)
50                 $(WEBCORE_SOURCES_GIF)
51                 $(WEBCORE_SOURCES_PNG)
52                 $(WEBCORE_SOURCES_ZLIB)
53                 $(WEBCORE_SOURCES_JPEG)
54                 $(WEBCORE_SOURCES_CSS)
55                 $(WEBCORE_SOURCES_RENDERING)
56                 $(WEBCORE_SOURCES_XML)
57                 $(WEBCORE_SOURCES_DOM)
58                 $(WEBCORE_SOURCES_BRIDGE)
59                 $(WEBCORE_SOURCES_EDITING)
60                 $(WEBCORE_SOURCES_HTML)
61                 $(WEBCORE_SOURCES_BINDINGS)
62                 $(WEBCORE_SOURCES_JS)
63         </set>
64
65     <set var="BUILDDIR">obj-$(FORMAT)</set>
66     
67     <template id="webcore_cairo">
68         <include>$(SRCDIR)/platform/cairo/cairo/src</include>
69         <include>$(SRCDIR)/platform/cairo/pixman/src</include>
70         <sources>
71             $(WEBCORE_SOURCES_CAIRO) 
72                     $(WEBCORE_SOURCES_PIXMAN) 
73         </sources>
74     </template>
75     
76     <template id="webcore_base" template="xml2,iconv,xslt,icu,jscore">
77         <include>$(SRCDIR)/.</include>
78         <include>$(SRCDIR)/include</include>
79         <include>$(SRCDIR)/DerivedSources/WebCore</include>
80         <include>$(SRCDIR)/bindings/js</include>
81         <include>$(SRCDIR)/bridge</include>
82         <include>$(SRCDIR)/editing</include>
83         <include>$(SRCDIR)/html</include>
84         <include>$(SRCDIR)/css</include>
85         <include>$(SRCDIR)/dom</include>
86         <include>$(SRCDIR)/kwq</include>
87         <include>$(SRCDIR)/loader</include>
88         <include>$(SRCDIR)/page</include>
89         <include>$(SRCDIR)/platform</include>
90         <include>$(SRCDIR)/platform/image-decoders</include>
91         <include>$(SRCDIR)/platform/image-decoders/gif</include>
92         <include>$(SRCDIR)/platform/image-decoders/jpeg</include>
93         <include>$(SRCDIR)/platform/image-decoders/png</include>
94         <include>$(SRCDIR)/platform/image-decoders/zlib</include>
95         <include>$(SRCDIR)/rendering</include>
96         <include>$(SRCDIR)/xml</include>
97         <include>$(SRCDIR)/xpath</include>
98         <include>$(SRCDIR)/xpath/impl</include>
99         
100         <sources>$(WEBCORE_BASE_SOURCES)</sources>
101
102
103 <!-- HACK ALERT! FIX THESE LATER!! -->
104         <include>$(SRCDIR)/platform/mac</include> <!-- when building on Mac, ExtraCFEncodings.h is needed -->      
105 <!-- END HACKS -->
106
107         <define>APPLE_CHANGES=1</define>
108         <define>KHTML_XSLT=1</define>
109         <define>XPATH_SUPPORT=1</define>
110
111         <!-- TODO: is there a Linux-specific platform define? -->
112         <if cond="PLATFORM_UNIX=='1'">
113             <if cond="PLATFORM_MACOSX=='0'">
114                 <define>LINUX</define>
115             </if>
116         </if>
117         <!-- this GC version requires Mach's thread suspend/resume: -->
118         <if cond="PLATFORM_MACOSX!='1'">
119             <define>USE_CONSERVATIVE_GC=0</define>
120         </if>
121         
122         <if cond="PLATFORM_MACOSX=='1'">
123             <define>USE_CONSERVATIVE_GC=1</define>
124         </if> 
125
126         <if cond="FORMAT=='gnu'">
127             <!-- FIXME: we need proper configure checks -->
128             <define>HAVE_FUNC_ISNAN</define>
129             <!-- check for undefined symbols for debugging reasons -->
130             <!-- FIXME: create a debug option and set these accordingly -->
131             <ldflags>-Wl,--no-undefined</ldflags>
132         </if>
133
134         <if cond="PLATFORM_WIN32=='1'">
135             <include>win32</include>
136             <define>HAVE_SYS_TIMEB_H=1</define>
137             <define>HAVE_FLOAT_H=1</define>
138             <define>HAVE_FUNC__FINITE=1</define>
139         </if>
140     </template>
141 </makefile>
142