OSDN Git Service

external/webkit r30707
[android-x86/external-webkit.git] / WebKit / wx / dependencies.bkl
1 <?xml version="1.0" ?>
2 <!-- 
3
4 Copyright (C) 2005, 2006 Apple Computer, Inc.  All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions
8 are met:
9
10 1.  Redistributions of source code must retain the above copyright
11     notice, this list of conditions and the following disclaimer. 
12 2.  Redistributions in binary form must reproduce the above copyright
13     notice, this list of conditions and the following disclaimer in the
14     documentation and/or other materials provided with the distribution. 
15 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
16     its contributors may be used to endorse or promote products derived
17     from this software without specific prior written permission. 
18
19 THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
20 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
23 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 This file contains templates with settings for components used by JavaScriptCore
31 and WebCore. Include this file to use these settings.
32
33 -->
34
35
36 <makefile>
37
38     <option name="SQLITE3_LIBS">
39         <default-value>$(DOLLAR)(shell pkg-config --libs sqlite3)</default-value>
40     </option>
41
42     <option name="SQLITE3_CFLAGS">
43         <default-value>$(DOLLAR)(shell pkg-config --cflags sqlite3)</default-value>
44     </option>
45
46     <template id="sqlite3">
47         <sys-lib>sqlite3</sys-lib>
48         <if cond="FORMAT=='gnu'">
49             <ldflags>$(SQLITE3_LIBS)</ldflags>
50             <cxxflags>$(SQLITE3_CFLAGS)</cxxflags>
51         </if>
52         <if cond="FORMAT in ['msvc','msvs2005prj']">
53             <include>$(WK_ROOT)/WebKitLibraries/win/include/SQLite</include>
54         </if>
55     </template>
56
57     <option name="CURL_LIBS">
58         <default-value>$(DOLLAR)(shell curl-config --libs)</default-value>
59     </option>
60
61     <option name="CURL_CFLAGS">
62         <default-value>$(DOLLAR)(shell curl-config --cflags)</default-value>
63     </option>
64
65     <template id="curl">
66     <if cond="FORMAT not in ['msvc', 'msvc2005prj']">
67             <ldflags>$(CURL_LIBS)</ldflags>
68             <cxxflags>$(CURL_CFLAGS)</cxxflags>
69     </if>
70     <if cond="FORMAT in ['msvc', 'msvs2005prj']">
71         <sys-lib>libcurl</sys-lib>
72     </if>
73     </template>
74
75     <option name="GTK_LIBS">
76         <default-value>$(DOLLAR)(shell pkg-config --libs gtk+-2.0)</default-value>
77     </option>
78
79     <option name="GTK_CFLAGS">
80         <default-value>$(DOLLAR)(shell pkg-config --cflags gtk+-2.0)</default-value>
81     </option>
82
83     <!-- GTK settings, for GTK ports - wx doesn't use these -->
84     <template id="gtk">
85         <if cond="FORMAT=='gnu'">
86             <ldflags>$(GTK_LIBS)</ldflags>
87             <cxxflags>$(GTK_CFLAGS)</cxxflags>
88         </if>
89
90         <!--    TODO: non-Cygwin Windows support for this? :) --> 
91     </template>
92
93
94     <option name="XML2_LIBS">
95         <default-value>$(DOLLAR)(shell xml2-config --libs)</default-value>
96     </option>
97
98     <option name="XML2_CFLAGS">
99         <default-value>$(DOLLAR)(shell xml2-config --cflags)</default-value>
100     </option>
101
102     <!-- XML2 library settings -->
103     <template id="xml2">
104         <if cond="FORMAT=='gnu'">
105             <ldflags>$(XML2_LIBS)</ldflags>
106             <cxxflags>$(XML2_CFLAGS)</cxxflags>
107         </if>
108
109         <if cond="PLATFORM_WIN32=='1'">
110             <include>$(WK_ROOT)/WebKitLibraries/win/include/libxml</include>
111             <sys-lib>libxml2</sys-lib>
112         </if>
113     </template>
114
115
116     <option name="XSLT_LIBS">
117         <default-value>$(DOLLAR)(shell xslt-config --libs)</default-value>
118     </option>
119
120     <option name="XSLT_CFLAGS">
121         <default-value>$(DOLLAR)(shell xslt-config --cflags)</default-value>
122     </option>
123
124     <!-- XSLT library settings -->
125     <template id="xslt" template="xml2">
126         <if cond="FORMAT=='gnu'">
127             <ldflags>$(XSLT_LIBS)</ldflags>
128             <cxxflags>$(XSLT_CFLAGS)</cxxflags>
129         </if>
130
131         <if cond="PLATFORM_WIN32=='1'">
132             <include>$(WK_ROOT)/WebKitLibraries/win/include/libxslt</include>
133             <sys-lib>libxslt</sys-lib>
134         </if>
135     </template>
136
137     <!-- IBM ICU settings -->
138     <template id="icu">        
139         <if cond="FORMAT=='gnu'">
140             <!-- Mac includes ICU with the system, but doesn't include headers or
141                  icu-config, so we have to hardcode settings there. -->
142             <set var="ICU_INCLUDE"><if cond="WX_PORT=='mac'">$(WK_ROOT)/JavaScriptCore/icu</if></set>
143             <set var="ICU_INCLUDE"><if cond="WX_PORT=='mac'">$(WK_ROOT)/WebCore/icu</if></set>
144             <set var="ICU_LIB"><if cond="WX_PORT=='mac'">icucore</if></set>
145             <set var="ICU_LDFLAGS"><if cond="WX_PORT=='gtk2'">$(DOLLAR)(shell icu-config --ldflags)</if></set>
146             <set var="ICU_CFLAGS"><if cond="WX_PORT=='gtk2'">$(DOLLAR)(shell icu-config --cppflags)</if></set>
147             
148             <include>$(ICU_INCLUDE)</include>
149             <sys-lib>$(ICU_LIB)</sys-lib>
150             <ldflags>$(ICU_LDFLAGS)</ldflags>
151             <cxxflags>$(ICU_CFLAGS)</cxxflags>
152         </if>
153
154         <if cond="PLATFORM_WIN32=='1'">
155             <sys-lib>icuuc</sys-lib>
156             <sys-lib>icuin</sys-lib>
157         </if>
158     </template>
159
160
161     <template id="iconv">
162     </template>
163
164
165     <template id="pthreads">
166         <if cond="PLATFORM_WIN32=='1'">
167             <include>$(WK_ROOT)/WebKitLibraries/win/include/pthreads</include>
168             <sys-lib>pthreadVC2</sys-lib>
169         </if>
170     </template>
171     
172 </makefile>