|
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 <template id="jscore"> |
|
39 <include>$(SRCDIR)/../JavaScriptCore</include> |
|
40 <if cond="FORMAT=='gnu'"> |
|
41 <ldflags>$(SRCDIR)/../JavaScriptCore/libjscore.a</ldflags> |
|
42 </if> |
|
43 </template> |
|
44 |
|
45 |
|
46 <option name="SQLITE3_LIBS"> |
|
47 <default-value>$(os.popen("pkg-config --libs sqlite3").read())</default-value> |
|
48 </option> |
|
49 |
|
50 <option name="SQLITE3_CFLAGS"> |
|
51 <default-value>$(os.popen("pkg-config --cflags sqlite3").read())</default-value> |
|
52 </option> |
|
53 |
|
54 <template id="sqlite3"> |
|
55 <ldflags>$(SQLITE3_LIBS)</ldflags> |
|
56 <cxxflags>$(SQLITE3_CFLAGS)</cxxflags> |
|
57 </template> |
|
58 |
|
59 |
|
60 <option name="FREETYPE2_LIBS"> |
|
61 <default-value>$(os.popen("pkg-config --libs freetype2").read())</default-value> |
|
62 </option> |
|
63 |
|
64 <option name="FREETYPE2_CFLAGS"> |
|
65 <default-value>$(os.popen("pkg-config --cflags freetype2").read())</default-value> |
|
66 </option> |
|
67 |
|
68 <option name="FONTCONFIG_LIBS"> |
|
69 <default-value>$(os.popen("pkg-config --libs fontconfig").read())</default-value> |
|
70 </option> |
|
71 |
|
72 <option name="FONTCONFIG_CFLAGS"> |
|
73 <default-value>$(os.popen("pkg-config --cflags fontconfig").read())</default-value> |
|
74 </option> |
|
75 |
|
76 <template id="freetype"> |
|
77 <ldflags>$(FREETYPE2_LIBS)</ldflags> |
|
78 <cxxflags>$(FREETYPE2_CFLAGS)</cxxflags> |
|
79 <ldflags>$(FONTCONFIG_LIBS)</ldflags> |
|
80 <cxxflags>$(FONTCONFIG_CFLAGS)</cxxflags> |
|
81 </template> |
|
82 |
|
83 |
|
84 <option name="CURL_LIBS"> |
|
85 <default-value>$(os.popen("curl-config --libs").read())</default-value> |
|
86 </option> |
|
87 |
|
88 <option name="CURL_CFLAGS"> |
|
89 <default-value>$(os.popen("curl-config --cflags").read())</default-value> |
|
90 </option> |
|
91 |
|
92 <template id="curl"> |
|
93 <ldflags>$(CURL_LIBS)</ldflags> |
|
94 <cxxflags>$(CURL_CFLAGS)</cxxflags> |
|
95 </template> |
|
96 |
|
97 |
|
98 <option name="CAIRO_LIBS"> |
|
99 <default-value>$(os.popen("pkg-config --libs cairo").read())</default-value> |
|
100 </option> |
|
101 |
|
102 <option name="CAIRO_CFLAGS"> |
|
103 <default-value>$(os.popen("pkg-config --cflags cairo").read())</default-value> |
|
104 </option> |
|
105 |
|
106 <template id="cairo"> |
|
107 <ldflags>$(CAIRO_LIBS)</ldflags> |
|
108 <cxxflags>$(CAIRO_CFLAGS)</cxxflags> |
|
109 </template> |
|
110 |
|
111 |
|
112 <option name="GTK_LIBS"> |
|
113 <default-value>$(os.popen("pkg-config --libs gtk+-2.0").read())</default-value> |
|
114 </option> |
|
115 |
|
116 <option name="GTK_CFLAGS"> |
|
117 <default-value>$(os.popen("pkg-config --cflags gtk+-2.0").read())</default-value> |
|
118 </option> |
|
119 |
|
120 <!-- GTK settings, for GTK ports - wx doesn't use these --> |
|
121 <template id="gtk"> |
|
122 <if cond="FORMAT=='gnu'"> |
|
123 <ldflags>$(GTK_LIBS)</ldflags> |
|
124 <cxxflags>$(GTK_CFLAGS)</cxxflags> |
|
125 </if> |
|
126 |
|
127 <!-- TODO: non-Cygwin Windows support for this? :) --> |
|
128 </template> |
|
129 |
|
130 |
|
131 <option name="XML2_LIBS"> |
|
132 <default-value>$(os.popen("xml2-config --libs").read())</default-value> |
|
133 </option> |
|
134 |
|
135 <option name="XML2_CFLAGS"> |
|
136 <default-value>$(os.popen("xml2-config --cflags").read())</default-value> |
|
137 </option> |
|
138 |
|
139 <!-- XML2 library settings --> |
|
140 <template id="xml2"> |
|
141 <if cond="FORMAT=='gnu'"> |
|
142 <ldflags>$(XML2_LIBS)</ldflags> |
|
143 <cxxflags>$(XML2_CFLAGS)</cxxflags> |
|
144 </if> |
|
145 |
|
146 <if cond="PLATFORM_WIN32=='1'"> |
|
147 <include>$(SRCDIR)/../libxml/include</include> |
|
148 </if> |
|
149 </template> |
|
150 |
|
151 |
|
152 <option name="XSLT_LIBS"> |
|
153 <default-value>$(os.popen("xslt-config --libs").read())</default-value> |
|
154 </option> |
|
155 |
|
156 <option name="XSLT_CFLAGS"> |
|
157 <default-value>$(os.popen("xslt-config --cflags").read())</default-value> |
|
158 </option> |
|
159 |
|
160 <!-- XSLT library settings --> |
|
161 <template id="xslt"> |
|
162 <if cond="FORMAT=='gnu'"> |
|
163 <ldflags>$(XSLT_LIBS)</ldflags> |
|
164 <cxxflags>$(XSLT_CFLAGS)</cxxflags> |
|
165 </if> |
|
166 |
|
167 <if cond="PLATFORM_WIN32=='1'"> |
|
168 <include>$(SRCDIR)/../libxslt/include</include> |
|
169 <include>$(SRCDIR)/../libxml/include</include> |
|
170 </if> |
|
171 </template> |
|
172 |
|
173 |
|
174 <option name="ICU_LIBS"> |
|
175 <default-value>$(os.popen("icu-config --ldflags").read())</default-value> |
|
176 </option> |
|
177 |
|
178 <option name="ICU_CFLAGS"> |
|
179 <default-value>$(os.popen("icu-config --cxxflags").read())</default-value> |
|
180 </option> |
|
181 |
|
182 <!-- IBM ICU settings --> |
|
183 <template id="icu"> |
|
184 <if cond="FORMAT=='gnu'"> |
|
185 <ldflags>$(ICU_LIBS)</ldflags> |
|
186 <cxxflags>$(ICU_CFLAGS)</cxxflags> |
|
187 </if> |
|
188 |
|
189 <if cond="PLATFORM_WIN32=='1'"> |
|
190 <include>$(SRCDIR)/../icu/include</include> |
|
191 </if> |
|
192 </template> |
|
193 |
|
194 |
|
195 <template id="iconv"> |
|
196 <if cond="PLATFORM_WIN32=='1'"> |
|
197 <include>$(SRCDIR)/../iconv/include</include> |
|
198 </if> |
|
199 </template> |
|
200 |
|
201 </makefile> |