source: webkit/trunk/Source/JavaScriptCore/GNUmakefile.am@ 94475

Last change on this file since 94475 was 92263, checked in by Carlos Garcia Campos, 14 years ago

[GTK] Reorganize pkg-config files
https://bugs.webkit.org/show_bug.cgi?id=65548

Reviewed by Martin Robinson.

.:

  • GNUmakefile.am: Initialize pkgconfigdir and pkgconfig_DATA which

are common to all libraries.

  • configure.ac: Update pkg-config files.

Source/JavaScriptCore:

  • GNUmakefile.am:
  • javascriptcoregtk.pc.in: Renamed from Source/WebKit/gtk/javascriptcoregtk.pc.in.

Source/WebKit/gtk:

  • GNUmakefile.am: Remove javascriptcore pc file references.

Source/WebKit2:

  • GNUmakefile.am: Rename pc file as webkit2gtk.pc.in. WebKit2

depends on gtk3 unconditionally so we don't need to use
WEBKITGTK_PC_NAME.

  • webkit2gtk.pc.in: Renamed from Source/WebKit2/gtk/webkit2.pc.in.
File size: 6.7 KB
Line 
1include $(srcdir)/Source/JavaScriptCore/GNUmakefile.list.am
2
3lib_LTLIBRARIES += \
4 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@[email protected]
5
6# We are going to make everything public for now. When
7# https://bugs.webkit.org/show_bug.cgi?id=27551 is fixed we'll able to
8# simply rely on the usual symbol visibility flags.
9libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
10 -version-info @LIBWEBKITGTK_VERSION@ \
11 $(no_undefined)
12
13nodist_EXTRA_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
14 $(javascriptcore_built_nosources)
15
16nodist_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
17 $(javascriptcore_built_sources)
18
19libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/JavaScriptCore
20libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = $(javascriptcore_h_api)
21
22libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
23 $(javascriptcore_sources)
24
25libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
26 $(UNICODE_LIBS) \
27 $(GLIB_LIBS) \
28 $(WINMM_LIBS) \
29 -lpthread
30
31libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
32 $(global_cxxflags) \
33 $(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS)
34
35libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
36 -fstrict-aliasing \
37 -O3 \
38 $(javascriptcore_cflags)
39
40libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
41 $(global_cppflags) \
42 $(javascriptcore_cppflags)
43
44javascriptcore_cppflags += \
45 -I$(srcdir)/Source \
46 -I$(srcdir)/Source/JavaScriptCore \
47 -I$(srcdir)/Source/JavaScriptCore/API \
48 -I$(srcdir)/Source/JavaScriptCore/assembler \
49 -I$(srcdir)/Source/JavaScriptCore/bytecode \
50 -I$(srcdir)/Source/JavaScriptCore/bytecompiler \
51 -I$(srcdir)/Source/JavaScriptCore/heap \
52 -I$(srcdir)/Source/JavaScriptCore/debugger \
53 -I$(srcdir)/Source/JavaScriptCore/ForwardingHeaders \
54 -I$(srcdir)/Source/JavaScriptCore/interpreter \
55 -I$(srcdir)/Source/JavaScriptCore/jit \
56 -I$(srcdir)/Source/JavaScriptCore/jit \
57 -I$(srcdir)/Source/JavaScriptCore/parser \
58 -I$(srcdir)/Source/JavaScriptCore/profiler \
59 -I$(srcdir)/Source/JavaScriptCore/runtime \
60 -I$(srcdir)/Source/JavaScriptCore/wtf \
61 -I$(srcdir)/Source/JavaScriptCore/wtf \
62 -I$(srcdir)/Source/JavaScriptCore/wtf/gobject \
63 -I$(srcdir)/Source/JavaScriptCore/wtf/gtk \
64 -I$(srcdir)/Source/JavaScriptCore/wtf/text \
65 -I$(srcdir)/Source/JavaScriptCore/wtf/unicode \
66 -I$(srcdir)/Source/JavaScriptCore/yarr \
67 -I$(top_builddir)/Source/JavaScriptCore \
68 -I$(top_builddir)/Source/JavaScriptCore/parser \
69 -I$(top_builddir)/Source/JavaScriptCore/runtime
70
71javascriptcore_cflags += \
72 $(global_cflags) \
73 $(GLIB_CFLAGS) \
74 $(UNICODE_CFLAGS)
75
76pkgconfig_DATA += Source/JavaScriptCore/javascriptcoregtk-@[email protected]
77
78Source/JavaScriptCore/Lexer.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
79 $(AM_V_GEN)$(PERL) $^ > $@
80
81Source/JavaScriptCore/%.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/%.cpp
82 $(AM_V_GEN)$(PERL) $^ -i > $@
83
84Source/JavaScriptCore/RegExpJitTables.h: $(srcdir)/Source/JavaScriptCore/create_regex_tables
85 $(AM_V_GEN)$(PYTHON) $^ > $@
86
87Source/JavaScriptCore/KeywordLookup.h: $(srcdir)/Source/JavaScriptCore/KeywordLookupGenerator.py $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
88 $(AM_V_GEN)$(PYTHON) $^ > $@
89
90jsc: $(javascriptcore_built_nosources) Programs/jsc$(EXEEXT)
91
92bin_PROGRAMS += \
93 Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
94
95noinst_PROGRAMS += \
96 Programs/jsc \
97 Programs/minidom
98
99Programs_minidom_CPPFLAGS = \
100 $(global_cppflags) \
101 $(javascriptcore_cppflags)
102
103Programs_minidom_CFLAGS = \
104 -ansi \
105 -fno-strict-aliasing \
106 $(global_cflags) \
107 $(GLOBALDEPS_CFLAGS)
108
109Programs_minidom_LDADD = \
110 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@[email protected] \
111 $(WINMM_LIBS) \
112 -lm \
113 -lpthread \
114 -lstdc++
115
116Programs_minidom_LDFLAGS = \
117 -no-install \
118 -no-fast-install
119
120# jsc
121Programs/jsc$(EXEEXT): Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
122 $(AM_V_GEN)cp -f Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT) Programs/jsc$(EXEEXT)
123Programs_jsc_LDADD =
124Programs_jsc_SOURCES =
125
126Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CPPFLAGS = \
127 $(global_cppflags) \
128 $(javascriptcore_cppflags)
129
130Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CXXFLAGS = \
131 -fno-strict-aliasing \
132 $(global_cxxflags) \
133 $(global_cflags) \
134 $(GLOBALDEPS_CFLAGS) \
135 $(UNICODE_CFLAGS)
136
137Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_LDADD = \
138 -lpthread \
139 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@[email protected] \
140 $(WINMM_LIBS)
141
142EXTRA_DIST += \
143 Source/JavaScriptCore/AUTHORS \
144 Source/JavaScriptCore/ChangeLog \
145 Source/JavaScriptCore/COPYING.LIB \
146 Source/JavaScriptCore/create_hash_table \
147 Source/JavaScriptCore/create_regex_tables \
148 Source/JavaScriptCore/icu/LICENSE \
149 Source/JavaScriptCore/icu/README \
150 Source/JavaScriptCore/KeywordLookupGenerator.py \
151 Source/JavaScriptCore/parser/Keywords.table \
152 Source/JavaScriptCore/THANKS
153
154# Clean rules for JavaScriptCore
155# FIXME: Should this list be generated from javascriptcore_built_nosources?
156CLEANFILES += \
157 Source/JavaScriptCore/Lexer.lut.h \
158 Source/JavaScriptCore/RegExpJitTables.h \
159 Source/JavaScriptCore/runtime/ArrayConstructor.lut.h \
160 Source/JavaScriptCore/runtime/ArrayPrototype.lut.h \
161 Source/JavaScriptCore/runtime/BooleanPrototype.lut.h \
162 Source/JavaScriptCore/runtime/DateConstructor.lut.h \
163 Source/JavaScriptCore/runtime/DatePrototype.lut.h \
164 Source/JavaScriptCore/runtime/ErrorPrototype.lut.h \
165 Source/JavaScriptCore/runtime/JSGlobalObject.lut.h \
166 Source/JavaScriptCore/runtime/JSONObject.lut.h \
167 Source/JavaScriptCore/runtime/MathObject.lut.h \
168 Source/JavaScriptCore/runtime/NumberConstructor.lut.h \
169 Source/JavaScriptCore/runtime/NumberPrototype.lut.h \
170 Source/JavaScriptCore/runtime/ObjectConstructor.lut.h \
171 Source/JavaScriptCore/runtime/ObjectPrototype.lut.h \
172 Source/JavaScriptCore/runtime/RegExpConstructor.lut.h \
173 Source/JavaScriptCore/runtime/RegExpObject.lut.h \
174 Source/JavaScriptCore/runtime/RegExpPrototype.lut.h \
175 Source/JavaScriptCore/runtime/StringConstructor.lut.h \
176 Source/JavaScriptCore/runtime/StringPrototype.lut.h \
177 Programs/jsc \
178 Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@ \
179 Programs/minidom
180
181DISTCLEANFILES += \
182 $(top_builddir)/Source/JavaScriptCore/javascriptcoregtk-@[email protected]
Note: See TracBrowser for help on using the repository browser.