4 Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved.
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions
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.
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.
30 This file contains templates with settings for components used by JavaScriptCore
31 and WebCore. Include this file to use these settings.
38 <option name="SQLITE3_LIBS">
39 <default-value>$(DOLLAR)(shell pkg-config --libs sqlite3)</default-value>
42 <option name="SQLITE3_CFLAGS">
43 <default-value>$(DOLLAR)(shell pkg-config --cflags sqlite3)</default-value>
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>
52 <if cond="FORMAT in ['msvc','msvs2005prj']">
53 <include>$(WK_ROOT)/WebKitLibraries/win/include/SQLite</include>
57 <option name="CURL_LIBS">
58 <default-value>$(DOLLAR)(shell curl-config --libs)</default-value>
61 <option name="CURL_CFLAGS">
62 <default-value>$(DOLLAR)(shell curl-config --cflags)</default-value>
66 <if cond="FORMAT not in ['msvc', 'msvc2005prj']">
67 <ldflags>$(CURL_LIBS)</ldflags>
68 <cxxflags>$(CURL_CFLAGS)</cxxflags>
70 <if cond="FORMAT in ['msvc', 'msvs2005prj']">
71 <sys-lib>libcurl</sys-lib>
75 <option name="GTK_LIBS">
76 <default-value>$(DOLLAR)(shell pkg-config --libs gtk+-2.0)</default-value>
79 <option name="GTK_CFLAGS">
80 <default-value>$(DOLLAR)(shell pkg-config --cflags gtk+-2.0)</default-value>
83 <!-- GTK settings, for GTK ports - wx doesn't use these -->
85 <if cond="FORMAT=='gnu'">
86 <ldflags>$(GTK_LIBS)</ldflags>
87 <cxxflags>$(GTK_CFLAGS)</cxxflags>
90 <!-- TODO: non-Cygwin Windows support for this? :) -->
94 <option name="XML2_LIBS">
95 <default-value>$(DOLLAR)(shell xml2-config --libs)</default-value>
98 <option name="XML2_CFLAGS">
99 <default-value>$(DOLLAR)(shell xml2-config --cflags)</default-value>
102 <!-- XML2 library settings -->
104 <if cond="FORMAT=='gnu'">
105 <ldflags>$(XML2_LIBS)</ldflags>
106 <cxxflags>$(XML2_CFLAGS)</cxxflags>
109 <if cond="PLATFORM_WIN32=='1'">
110 <include>$(WK_ROOT)/WebKitLibraries/win/include/libxml</include>
111 <sys-lib>libxml2</sys-lib>
116 <option name="XSLT_LIBS">
117 <default-value>$(DOLLAR)(shell xslt-config --libs)</default-value>
120 <option name="XSLT_CFLAGS">
121 <default-value>$(DOLLAR)(shell xslt-config --cflags)</default-value>
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>
131 <if cond="PLATFORM_WIN32=='1'">
132 <include>$(WK_ROOT)/WebKitLibraries/win/include/libxslt</include>
133 <sys-lib>libxslt</sys-lib>
137 <!-- IBM ICU settings -->
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>
148 <include>$(ICU_INCLUDE)</include>
149 <sys-lib>$(ICU_LIB)</sys-lib>
150 <ldflags>$(ICU_LDFLAGS)</ldflags>
151 <cxxflags>$(ICU_CFLAGS)</cxxflags>
154 <if cond="PLATFORM_WIN32=='1'">
155 <sys-lib>icuuc</sys-lib>
156 <sys-lib>icuin</sys-lib>
161 <template id="iconv">
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>