Rubber-stamped by Brady Eidson.
[webbrowser.git] / JavaScriptCore / jscore.bkl
blob25e17d775e4adf02cf41259cdf05c6285adb3390
1 <?xml version="1.0" ?>
2 <!--
3 Copyright (C) 2007 Kevin Ollivier. All rights reserved.
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
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.
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.
29 JavaScriptCore Bakefile project file.
30 -->
32 <makefile>
33 <set var="SRCDIR">.</set>
35 <include file="../WebKit/wx/wxwk-settings.bkl"/>
36 <include file="JavaScriptCoreSources.bkl"/>
38 <template id="jscore_base" template="icu,pthreads,wxwk_build_settings">
39 <sources>
40 $(JSCORE_API_SOURCES)
41 $(JSCORE_BYTECOMPILER_SOURCES)
42 $(JSCORE_DEBUGGER_SOURCES)
43 $(JSCORE_JSC_SOURCES)
44 $(JSCORE_PCRE_SOURCES)
45 $(JSCORE_PARSER_SOURCES)
46 $(JSCORE_PROFILER_SOURCES)
47 $(JSCORE_RUNTIME_SOURCES)
48 $(JSCORE_VM_SOURCES)
49 $(JSCORE_WTF_SOURCES)
50 </sources>
52 <set var="ASSEMBLER_SOURCES">
53 <if cond="WX_PORT=='gtk2'">
54 $(JSCORE_VM_SOURCES_POSIX)
55 </if>
56 <if cond="PLATFORM_OS=='mac'">
57 $(JSCORE_VM_SOURCES_POSIX)
58 </if>
59 <if cond="WX_PORT=='msw'">
60 $(JSCORE_VM_SOURCES_WIN)
61 </if>
62 </set>
64 <sources>
65 $(ASSEMBLER_SOURCES)
66 </sources>
67 <install-to>$(WKOUTPUTDIR)</install-to>
68 <pic>on</pic>
69 <threading>multi</threading>
71 <include>$(SRCDIR)</include>
72 <include>$(SRCDIR)/..</include>
73 <include>$(SRCDIR)/API</include>
74 <include>$(SRCDIR)/assembler</include>
75 <include>$(SRCDIR)/bytecompiler</include>
76 <include>$(SRCDIR)/DerivedSources/JavaScriptCore</include>
77 <include>$(SRCDIR)/ForwardingHeaders</include>
78 <include>$(SRCDIR)/debugger</include>
79 <include>$(SRCDIR)/parser</include>
80 <include>$(SRCDIR)/pcre</include>
81 <include>$(SRCDIR)/profiler</include>
82 <include>$(SRCDIR)/runtime</include>
83 <include>$(SRCDIR)/interpreter</include>
84 <include>$(SRCDIR)/bytecode</include>
85 <include>$(SRCDIR)/wrec</include>
86 <include>$(SRCDIR)/jit</include>
87 <include>$(SRCDIR)/wtf</include>
88 <include>$(SRCDIR)/wtf/unicode</include>
90 <define>ENABLE_XSLT=1</define>
92 <if cond="FORMAT=='gnu'">
93 <!-- FIXME: we need proper configure checks -->
94 <define>HAVE_FUNC_ISNAN</define>
95 <!-- check for undefined symbols for debugging reasons -->
96 <ldflags>-Wl</ldflags>
97 </if>
99 <if cond="PLATFORM_WIN32=='1'">
100 <include>$(SRCDIR)/os-win32</include>
101 <define>HAVE_SYS_TIMEB_H=1</define>
102 <define>HAVE_FLOAT_H=1</define>
103 <define>HAVE_FUNC__FINITE=1</define>
104 </if>
106 </template>
108 <exe id="jsc" template="icu,jscore,pthreads,wxwk">
109 <cxx-rtti>off</cxx-rtti>
110 <cxx-exceptions>off</cxx-exceptions>
111 <debug-info>on</debug-info>
112 <depends>jscore</depends>
113 <include>$(SRCDIR)</include>
114 <include>$(WK_ROOT)/JavaScriptCore</include>
115 <include>$(WK_ROOT)/JavaScriptCore/assembler</include>
116 <include>$(WK_ROOT)/JavaScriptCore/bytecompiler</include>
117 <include>$(WK_ROOT)/JavaScriptCore/debugger</include>
118 <include>$(WK_ROOT)/JavaScriptCore/parser</include>
119 <include>$(WK_ROOT)/JavaScriptCore/pcre</include>
120 <include>$(WK_ROOT)/JavaScriptCore/profiler</include>
121 <include>$(WK_ROOT)/JavaScriptCore/runtime</include>
122 <include>$(WK_ROOT)/JavaScriptCore/interpreter</include>
123 <include>$(WK_ROOT)/JavaScriptCore/bytecode</include>
124 <include>$(WK_ROOT)/JavaScriptCore/jit</include>
125 <include>$(WK_ROOT)/JavaScriptCore/wrec</include>
126 <include>$(WK_ROOT)/JavaScriptCore/wtf</include>
127 <dirname>$(WKOUTPUTDIR)</dirname>
128 <sources>$(SRCDIR)/jsc.cpp</sources>
129 <set var="READLINE_LIB">
130 <if cond="WX_PORT=='mac'">edit</if>
131 </set>
132 <sys-lib>$(READLINE_LIB)</sys-lib>
133 <if cond="FORMAT in ['msvc','msvs2005prj']">
134 <include>$(WK_ROOT)/WebKitLibraries/win/include</include>
135 <sys-lib>winmm</sys-lib> <!-- for timeGetTime -->
136 <lib-path>$(WKOUTPUTDIR)</lib-path>
137 <lib-path>$(WK_ROOT)/WebKitLibraries/win/lib</lib-path>
138 </if>
140 </exe>
142 <action id="DerivedSources">
143 <is-phony />
144 <command>bash make-generated-sources.sh</command>
145 </action>
147 <lib id="jscore" template="jscore_base,wx-lib">
149 </lib>
150 </makefile>