]> git.saurik.com Git - apple/javascriptcore.git/blob - jscore.bkl
2339691fea67ba5dac84329c5960c22cdefb70f6
[apple/javascriptcore.git] / jscore.bkl
1 <?xml version="1.0" ?>
2 <!--
3 Copyright (C) 2007 Kevin Ollivier. All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8
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.
17
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.
28
29 JavaScriptCore 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 <set var="BUILDDIR">obj-$(FORMAT)</set>
39
40 <template id="jscore_base" template="icu,pthreads,wxwk_build_settings">
41 <sources>
42 $(JSCORE_SOURCES_API)
43 $(JSCORE_SOURCES_BINDINGS)
44 $(JSCORE_SOURCES_KJS)
45 $(JSCORE_SOURCES_PCRE)
46 $(WTF_SOURCES)
47 </sources>
48 <install-to>$(WKOUTPUTDIR)</install-to>
49 <pic>on</pic>
50 <threading>multi</threading>
51
52 <include>$(SRCDIR)</include>
53 <include>$(SRCDIR)/..</include>
54 <include>$(SRCDIR)/DerivedSources/JavaScriptCore</include>
55 <include>$(SRCDIR)/ForwardingHeaders</include>
56 <include>$(SRCDIR)/bindings/c</include>
57 <include>$(SRCDIR)/bindings/jni</include>
58 <include>$(SRCDIR)/bindings</include>
59 <include>$(SRCDIR)/kjs</include>
60 <include>$(SRCDIR)/pcre</include>
61 <include>$(SRCDIR)/wtf</include>
62
63 <define>ENABLE_XSLT=1</define>
64
65 <if cond="FORMAT=='gnu'">
66 <!-- FIXME: we need proper configure checks -->
67 <define>HAVE_FUNC_ISNAN</define>
68 <!-- check for undefined symbols for debugging reasons -->
69 <ldflags>-Wl,--no-undefined</ldflags>
70 </if>
71
72 <if cond="PLATFORM_WIN32=='1'">
73 <include>$(SRCDIR)/os-win32</include>
74 <define>HAVE_SYS_TIMEB_H=1</define>
75 <define>HAVE_FLOAT_H=1</define>
76 <define>HAVE_FUNC__FINITE=1</define>
77 </if>
78
79 </template>
80
81 <exe id="testkjs" template="icu,jscore,pthreads">
82 <cxx-rtti>off</cxx-rtti>
83 <cxx-exceptions>off</cxx-exceptions>
84 <debug-info>on</debug-info>
85 <depends>jscore</depends>
86 <include>$(SRCDIR)</include>
87 <include>$(WK_ROOT)/JavaScriptCore</include>
88 <include>$(WK_ROOT)/JavaScriptCore/kjs</include>
89 <include>$(WK_ROOT)/JavaScriptCore/pcre</include>
90 <include>$(WK_ROOT)/JavaScriptCore/wtf</include>
91 <dirname>$(WKOUTPUTDIR)</dirname>
92 <sources>$(SRCDIR)/kjs/testkjs.cpp</sources>
93 <if cond="FORMAT=='gnu'">
94 <ldflags>$(WKOUTPUTDIR)/libjscore.a</ldflags>
95 </if>
96 <if cond="FORMAT in ['msvc','msvs2005prj']">
97 <include>$(WK_ROOT)/WebKitLibraries/win/include</include>
98 <sys-lib>jscore</sys-lib>
99 <sys-lib>winmm</sys-lib> <!-- for timeGetTime -->
100 <lib-path>$(WKOUTPUTDIR)</lib-path>
101 <lib-path>$(WK_ROOT)/WebKitLibraries/win/lib</lib-path>
102 </if>
103
104 </exe>
105
106 <action id="DerivedSources">
107 <is-phony />
108 <command>bash make-generated-sources.sh</command>
109 </action>
110
111 <lib id="jscore" template="jscore_base">
112
113 </lib>
114 </makefile>