OSDN Git Service

Merge commit 'goog/master' into merge
[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         <if cond="FORMAT=='gnu'">
48                 <set var="SQLITE_LDFLAGS"><if cond="PLATFORM_OS=='mac'">-lWebCoreSQLite3</if><if cond="PLATFORM_OS=='linux'">$(SQLITE3_LIBS)</if></set>
49                 <set var="SQLITE_CFLAGS"><if cond="PLATFORM_OS=='mac'">-I$(WK_ROOT)/WebKitLibraries/WebCoreSQLite3</if><if cond="PLATFORM_OS=='linux'">$(SQLITE3_CFLAGS)</if></set>
50             <ldflags>$(SQLITE_LDFLAGS)</ldflags>
51             <cxxflags>$(SQLITE_CFLAGS)</cxxflags>
52         </if>
53         <if cond="FORMAT in ['msvc','msvs2005prj']">
54             <sys-lib>sqlite3</sys-lib>
55             <include>$(WK_ROOT)/WebKitLibraries/win/include/SQLite</include>
56         </if>
57     </template>
58
59     <option name="CURL_LIBS">
60         <default-value>$(DOLLAR)(shell curl-config --libs)</default-value>
61     </option>
62
63     <option name="CURL_CFLAGS">
64         <default-value>$(DOLLAR)(shell curl-config --cflags)</default-value>
65     </option>
66
67     <template id="curl">
68     <if cond="FORMAT not in ['msvc', 'msvc2005prj']">
69             <ldflags>$(CURL_LIBS)</ldflags>
70             <cxxflags>$(CURL_CFLAGS)</cxxflags>
71     </if>
72     <if cond="FORMAT in ['msvc', 'msvs2005prj']">
73         <sys-lib>libcurl</sys-lib>
74     </if>
75     </template>
76
77     <option name="GTK_LIBS">
78         <default-value>$(DOLLAR)(shell pkg-config --libs gtk+-2.0)</default-value>
79     </option>
80
81     <option name="GTK_CFLAGS">
82         <default-value>$(DOLLAR)(shell pkg-config --cflags gtk+-2.0)</default-value>
83     </option>
84
85     <!-- GTK settings, for GTK ports - wx doesn't use these -->
86     <template id="gtk">
87         <if cond="FORMAT=='gnu'">
88             <ldflags>$(GTK_LIBS)</ldflags>
89             <cxxflags>$(GTK_CFLAGS)</cxxflags>
90         </if>
91
92         <!--    TODO: non-Cygwin Windows support for this? :) --> 
93     </template>
94
95
96     <option name="XML2_LIBS">
97         <default-value>$(DOLLAR)(shell xml2-config --libs)</default-value>
98     </option>
99
100     <option name="XML2_CFLAGS">
101         <default-value>$(DOLLAR)(shell xml2-config --cflags)</default-value>
102     </option>
103
104     <!-- XML2 library settings -->
105     <template id="xml2">
106         <if cond="FORMAT=='gnu'">
107             <ldflags>$(XML2_LIBS)</ldflags>
108             <cxxflags>$(XML2_CFLAGS)</cxxflags>
109         </if>
110
111         <if cond="PLATFORM_WIN32=='1'">
112             <include>$(WK_ROOT)/WebKitLibraries/win/include</include>
113             <sys-lib>libxml2</sys-lib>
114         </if>
115     </template>
116
117
118     <option name="XSLT_LIBS">
119         <default-value>$(DOLLAR)(shell xslt-config --libs)</default-value>
120     </option>
121
122     <option name="XSLT_CFLAGS">
123         <default-value>$(DOLLAR)(shell xslt-config --cflags)</default-value>
124     </option>
125
126     <!-- XSLT library settings -->
127     <template id="xslt" template="xml2">
128         <if cond="FORMAT=='gnu'">
129             <ldflags>$(XSLT_LIBS)</ldflags>
130             <cxxflags>$(XSLT_CFLAGS)</cxxflags>
131         </if>
132
133         <if cond="PLATFORM_WIN32=='1'">
134             <include>$(WK_ROOT)/WebKitLibraries/win/include</include>
135             <sys-lib>libxslt</sys-lib>
136         </if>
137     </template>
138
139     <!-- IBM ICU settings -->
140     <template id="icu">        
141         <if cond="FORMAT=='gnu'">
142             <!-- Mac includes ICU with the system, but doesn't include headers or
143                  icu-config, so we have to hardcode settings there. -->
144             <set var="ICU_INCLUDE"><if cond="PLATFORM_OS=='mac'">$(WK_ROOT)/JavaScriptCore/icu</if></set>
145             <set var="ICU_INCLUDE"><if cond="PLATFORM_OS=='mac'">$(WK_ROOT)/WebCore/icu</if></set>
146             <set var="ICU_LIB"><if cond="PLATFORM_OS=='mac'">icucore</if></set>
147             <set var="ICU_LDFLAGS"><if cond="PLATFORM_OS=='linux'">$(DOLLAR)(shell icu-config --ldflags)</if></set>
148             <set var="ICU_CFLAGS"><if cond="PLATFORM_OS=='linux'">$(DOLLAR)(shell icu-config --cppflags)</if></set>
149             
150             <include>$(ICU_INCLUDE)</include>
151             <sys-lib>$(ICU_LIB)</sys-lib>
152             <ldflags>$(ICU_LDFLAGS)</ldflags>
153             <cxxflags>$(ICU_CFLAGS)</cxxflags>
154         </if>
155
156         <if cond="PLATFORM_WIN32=='1'">
157             <sys-lib>icuuc</sys-lib>
158             <sys-lib>icuin</sys-lib>
159         </if>
160     </template>
161
162
163     <template id="iconv">
164     </template>
165
166
167     <template id="pthreads">
168         <if cond="PLATFORM_WIN32=='1'">
169             <include>$(WK_ROOT)/WebKitLibraries/win/include/pthreads</include>
170             <sys-lib>pthreadVC2</sys-lib>
171         </if>
172         <if cond="FORMAT=='gnu'">
173             <sys-lib>pthread</sys-lib>
174         </if>
175     </template>
176     
177 </makefile>