• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" ?>
2<!--
3Copyright (C) 2007 Kevin Ollivier. All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions
7are met:
8
91.  Redistributions of source code must retain the above copyright
10    notice, this list of conditions and the following disclaimer.
112.  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.
143.  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.
17
18THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
19EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
22DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25ON 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
27THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29JavaScriptCore Bakefile project file.
30-->
31
32<makefile>
33    <set var="SRCDIR">.</set>
34
35    <include file="../WebKit/wx/wxwk-settings.bkl"/>
36    <include file="JavaScriptCoreSources.bkl"/>
37
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>
51        <install-to>$(WKOUTPUTDIR)</install-to>
52        <pic>on</pic>
53        <threading>multi</threading>
54
55        <include>$(SRCDIR)</include>
56        <include>$(SRCDIR)/..</include>
57        <include>$(SRCDIR)/API</include>
58        <include>$(SRCDIR)/bytecompiler</include>
59        <include>$(SRCDIR)/DerivedSources/JavaScriptCore</include>
60        <include>$(SRCDIR)/ForwardingHeaders</include>
61        <include>$(SRCDIR)/debugger</include>
62        <include>$(SRCDIR)/parser</include>
63        <include>$(SRCDIR)/pcre</include>
64        <include>$(SRCDIR)/profiler</include>
65        <include>$(SRCDIR)/runtime</include>
66        <include>$(SRCDIR)/interpreter</include>
67        <include>$(SRCDIR)/bytecode</include>
68        <include>$(SRCDIR)/wrec</include>
69        <include>$(SRCDIR)/jit</include>
70        <include>$(SRCDIR)/wtf</include>
71        <include>$(SRCDIR)/wtf/unicode</include>
72
73        <define>ENABLE_XSLT=1</define>
74
75        <if cond="FORMAT=='gnu'">
76            <!-- FIXME: we need proper configure checks -->
77            <define>HAVE_FUNC_ISNAN</define>
78            <!-- check for undefined symbols for debugging reasons -->
79            <ldflags>-Wl,--no-undefined</ldflags>
80        </if>
81
82        <if cond="PLATFORM_WIN32=='1'">
83            <include>$(SRCDIR)/os-win32</include>
84            <define>HAVE_SYS_TIMEB_H=1</define>
85            <define>HAVE_FLOAT_H=1</define>
86            <define>HAVE_FUNC__FINITE=1</define>
87        </if>
88
89    </template>
90
91    <exe id="jsc" template="icu,jscore,pthreads,wxwk">
92        <cxx-rtti>off</cxx-rtti>
93        <cxx-exceptions>off</cxx-exceptions>
94        <debug-info>on</debug-info>
95        <depends>jscore</depends>
96        <include>$(SRCDIR)</include>
97        <include>$(WK_ROOT)/JavaScriptCore</include>
98        <include>$(WK_ROOT)/JavaScriptCore/bytecompiler</include>
99        <include>$(WK_ROOT)/JavaScriptCore/debugger</include>
100        <include>$(WK_ROOT)/JavaScriptCore/parser</include>
101        <include>$(WK_ROOT)/JavaScriptCore/pcre</include>
102        <include>$(WK_ROOT)/JavaScriptCore/profiler</include>
103        <include>$(WK_ROOT)/JavaScriptCore/runtime</include>
104        <include>$(WK_ROOT)/JavaScriptCore/interpreter</include>
105        <include>$(WK_ROOT)/JavaScriptCore/bytecode</include>
106        <include>$(WK_ROOT)/JavaScriptCore/jit</include>
107        <include>$(WK_ROOT)/JavaScriptCore/wrec</include>
108        <include>$(WK_ROOT)/JavaScriptCore/wtf</include>
109        <dirname>$(WKOUTPUTDIR)</dirname>
110        <sources>$(SRCDIR)/jsc.cpp</sources>
111        <if cond="FORMAT=='gnu'">
112            <ldflags>$(WKOUTPUTDIR)/libjscore.a</ldflags>
113        </if>
114        <set var="READLINE_LIB">
115            <if cond="WX_PORT=='mac'">edit</if>
116        </set>
117        <sys-lib>$(READLINE_LIB)</sys-lib>
118        <if cond="FORMAT in ['msvc','msvs2005prj']">
119            <include>$(WK_ROOT)/WebKitLibraries/win/include</include>
120            <sys-lib>jscore</sys-lib>
121            <sys-lib>winmm</sys-lib> <!-- for timeGetTime -->
122            <lib-path>$(WKOUTPUTDIR)</lib-path>
123            <lib-path>$(WK_ROOT)/WebKitLibraries/win/lib</lib-path>
124        </if>
125
126    </exe>
127
128    <action id="DerivedSources">
129        <is-phony />
130        <command>bash make-generated-sources.sh</command>
131    </action>
132
133    <lib id="jscore" template="jscore_base,wx-lib">
134
135    </lib>
136</makefile>
137