OSDN Git Service

Merge "Update viewport using webkit's way."
[android-x86/external-webkit.git] / Android.mk
1 ##
2 ## Copyright 2009, The Android Open Source Project
3 ##
4 ## Redistribution and use in source and binary forms, with or without
5 ## modification, are permitted provided that the following conditions
6 ## are met:
7 ##  * Redistributions of source code must retain the above copyright
8 ##    notice, this list of conditions and the following disclaimer.
9 ##  * Redistributions in binary form must reproduce the above copyright
10 ##    notice, this list of conditions and the following disclaimer in the
11 ##    documentation and/or other materials provided with the distribution.
12 ##
13 ## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
14 ## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 ## PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 ## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 ## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 ## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 ## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 ## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 ## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 ##
25
26 # Control SVG compiling in webkit.
27 # Default is true unless explictly disabled.
28 ifneq ($(ENABLE_SVG),false)
29     ENABLE_SVG = true
30 endif
31
32 # Control complex scripts support compiling in webkit.
33 # Default is true unless explictly disabled.
34 ifneq ($(SUPPORT_COMPLEX_SCRIPTS),false)
35     SUPPORT_COMPLEX_SCRIPTS = true
36 endif
37
38 # Two ways to control which JS engine is used:
39 # 1. use JS_ENGINE environment variable, value can be either 'jsc' or 'v8'
40 #    This is the preferred way.
41 # 2. if JS_ENGINE is not set, or is not 'jsc' or 'v8', this makefile picks
42 #    up a default engine to build.
43 #    To help setup buildbot, a new environment variable, USE_ALT_JS_ENGINE,
44 #    can be set to true, so that two builds can be different but without
45 #    specifying which JS engine to use.
46 # To enable JIT in Android's JSC, please set ENABLE_JSC_JIT environment
47 # variable to true.
48
49 # To enable JIT in Android's JSC, please set ENABLE_JSC_JIT environment
50 # variable to true.
51
52 # Read JS_ENGINE environment variable
53 JAVASCRIPT_ENGINE = $(JS_ENGINE)
54
55 # We default to the V8 JS engine.
56 DEFAULT_ENGINE = v8
57 ALT_ENGINE = jsc
58
59 ifneq ($(JAVASCRIPT_ENGINE),jsc)
60   ifneq ($(JAVASCRIPT_ENGINE),v8)
61     # No JS engine is specified, pickup the one we want as default.
62     ifeq ($(USE_ALT_JS_ENGINE),true)
63       JAVASCRIPT_ENGINE = $(ALT_ENGINE)
64     else
65       JAVASCRIPT_ENGINE = $(DEFAULT_ENGINE)
66     endif
67   endif
68 endif
69 # We can't use V8 on the simulator
70 ifeq ($(TARGET_SIMULATOR),true)
71   JAVASCRIPT_ENGINE = jsc
72 endif
73
74 # V8 also requires an ARMv7 CPU, and since we must use jsc, we cannot
75 # use the Chrome http stack either.
76 ifneq ($(strip $(ARCH_ARM_HAVE_ARMV7A)),true)
77   JAVASCRIPT_ENGINE := jsc
78   USE_ALT_HTTP := true
79 endif
80
81 # See if the user has specified a stack they want to use
82 HTTP_STACK = $(HTTP)
83 # We default to the Chrome HTTP stack.
84 DEFAULT_HTTP = chrome
85 ALT_HTTP = android
86
87 ifneq ($(HTTP_STACK),chrome)
88   ifneq ($(HTTP_STACK),android)
89     # No HTTP stack is specified, pickup the one we want as default.
90     ifeq ($(USE_ALT_HTTP),true)
91       HTTP_STACK = $(ALT_HTTP)
92     else
93       HTTP_STACK = $(DEFAULT_HTTP)
94     endif
95   endif
96 endif
97
98 # The Chrome stack can not be used with JSC and hence can not be used be used
99 # with the simulator.
100 ifeq ($(JAVASCRIPT_ENGINE),jsc)
101   ifeq ($(HTTP_STACK),chrome)
102     $(error Can not build with JSC and the Chrome HTTP stack)
103   endif
104 endif
105
106 # Read the environment variable to determine if Autofill is compiled.
107 # The default is on. Chrome HTTP stack must be used when Autofill
108 # is turned on.
109 ifneq ($(ENABLE_AUTOFILL),false)
110   ENABLE_AUTOFILL = true
111 endif
112 ifneq ($(HTTP_STACK),chrome)
113   ENABLE_AUTOFILL = false
114 endif
115
116 BASE_PATH := $(call my-dir)
117 include $(CLEAR_VARS)
118
119 # Define our module and find the intermediates directory
120 LOCAL_MODULE := libwebcore
121 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
122 base_intermediates := $(call local-intermediates-dir)
123
124 # Using := here prevents recursive expansion
125 WEBKIT_SRC_FILES :=
126
127 # We have to use bison 2.3
128 include $(BASE_PATH)/bison_check.mk
129
130 SOURCE_PATH := $(BASE_PATH)/Source
131 WEBCORE_PATH := $(SOURCE_PATH)/WebCore
132 JAVASCRIPTCORE_PATH := $(SOURCE_PATH)/JavaScriptCore
133 WEBKIT_PATH := $(SOURCE_PATH)/WebKit
134 WEBCORE_INTERMEDIATES_PATH := $(base_intermediates)/Source/WebCore
135
136 # Build our list of include paths. We include Source/WebKit/android/icu first so that
137 # any files that include <unicode/ucnv.h> will include our ucnv.h first. We
138 # also add external/ as an include directory so that we can specify the real
139 # icu header directory as a more exact reference to avoid including our ucnv.h.
140 #
141 # Note that JavasCriptCore/ must be included after WebCore/, so that we pick up
142 # the right config.h.
143 LOCAL_C_INCLUDES := \
144         $(JNI_H_INCLUDE) \
145         $(WEBKIT_PATH)/android/icu \
146         external/ \
147         external/icu4c/common \
148         external/icu4c/i18n \
149         external/jpeg \
150         external/libxml2/include \
151         external/libxslt \
152         external/hyphenation \
153         external/skia/emoji \
154         external/skia/gpu/include \
155         external/skia/include/core \
156         external/skia/include/effects \
157         external/skia/include/gpu \
158         external/skia/include/images \
159         external/skia/include/ports \
160         external/skia/include/utils \
161         external/skia/src/ports \
162         external/sqlite/dist \
163         frameworks/base/core/jni/android/graphics \
164         frameworks/base/include
165
166 # Add Source/ for the include of <JavaScriptCore/config.h> from WebCore/config.h
167 LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
168         $(SOURCE_PATH)
169
170 LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
171         $(WEBCORE_PATH) \
172         $(WEBCORE_PATH)/accessibility \
173         $(WEBCORE_PATH)/bindings/ \
174         $(WEBCORE_PATH)/bindings/generic \
175         $(WEBCORE_PATH)/css \
176         $(WEBCORE_PATH)/dom \
177         $(WEBCORE_PATH)/editing \
178         $(WEBCORE_PATH)/fileapi \
179         $(WEBCORE_PATH)/history \
180         $(WEBCORE_PATH)/history/android \
181         $(WEBCORE_PATH)/html \
182         $(WEBCORE_PATH)/html/canvas \
183         $(WEBCORE_PATH)/html/parser \
184         $(WEBCORE_PATH)/html/shadow \
185         $(WEBCORE_PATH)/inspector \
186         $(WEBCORE_PATH)/loader \
187         $(WEBCORE_PATH)/loader/appcache \
188         $(WEBCORE_PATH)/loader/archive \
189         $(WEBCORE_PATH)/loader/archive/android \
190         $(WEBCORE_PATH)/loader/cache \
191         $(WEBCORE_PATH)/loader/icon \
192         $(WEBCORE_PATH)/notifications \
193         $(WEBCORE_PATH)/page \
194         $(WEBCORE_PATH)/page/android \
195         $(WEBCORE_PATH)/page/animation \
196         $(WEBCORE_PATH)/platform \
197         $(WEBCORE_PATH)/platform/android \
198         $(WEBCORE_PATH)/platform/animation \
199         $(WEBCORE_PATH)/platform/graphics \
200         $(WEBCORE_PATH)/platform/graphics/android \
201         $(WEBCORE_PATH)/platform/graphics/filters \
202         $(WEBCORE_PATH)/platform/graphics/gpu \
203         $(WEBCORE_PATH)/platform/graphics/network \
204         $(WEBCORE_PATH)/platform/graphics/skia \
205         $(WEBCORE_PATH)/platform/graphics/transforms \
206         $(WEBCORE_PATH)/platform/image-decoders \
207         $(WEBCORE_PATH)/platform/image-decoders/bmp \
208         $(WEBCORE_PATH)/platform/image-decoders/gif \
209         $(WEBCORE_PATH)/platform/image-decoders/ico \
210         $(WEBCORE_PATH)/platform/image-decoders/jpeg \
211         $(WEBCORE_PATH)/platform/image-decoders/png \
212         $(WEBCORE_PATH)/platform/image-decoders/webp \
213         $(WEBCORE_PATH)/platform/mock \
214         $(WEBCORE_PATH)/platform/network \
215         $(WEBCORE_PATH)/platform/network/android \
216         $(WEBCORE_PATH)/platform/sql \
217         $(WEBCORE_PATH)/platform/text \
218         $(WEBCORE_PATH)/platform/text/transcoder \
219         $(WEBCORE_PATH)/plugins \
220         $(WEBCORE_PATH)/plugins/android \
221         $(WEBCORE_PATH)/rendering \
222         $(WEBCORE_PATH)/rendering/style \
223         $(WEBCORE_PATH)/rendering/svg \
224         $(WEBCORE_PATH)/storage \
225         $(WEBCORE_PATH)/svg \
226         $(WEBCORE_PATH)/svg/animation \
227         $(WEBCORE_PATH)/svg/graphics \
228         $(WEBCORE_PATH)/svg/graphics/filters \
229         $(WEBCORE_PATH)/svg/properties \
230         $(WEBCORE_PATH)/websockets \
231         $(WEBCORE_PATH)/workers \
232         $(WEBCORE_PATH)/xml
233
234 LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
235         $(WEBKIT_PATH)/android \
236         $(WEBKIT_PATH)/android/WebCoreSupport \
237         $(WEBKIT_PATH)/android/jni \
238         $(WEBKIT_PATH)/android/nav \
239         $(WEBKIT_PATH)/android/plugins
240
241 LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
242         $(JAVASCRIPTCORE_PATH) \
243         $(JAVASCRIPTCORE_PATH)/collector/handles \
244         $(JAVASCRIPTCORE_PATH)/heap \
245         $(JAVASCRIPTCORE_PATH)/wtf \
246         $(JAVASCRIPTCORE_PATH)/wtf/unicode \
247         $(JAVASCRIPTCORE_PATH)/wtf/unicode/icu
248
249 LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
250         $(WEBCORE_INTERMEDIATES_PATH) \
251         $(WEBCORE_INTERMEDIATES_PATH)/css \
252         $(WEBCORE_INTERMEDIATES_PATH)/html \
253         $(WEBCORE_INTERMEDIATES_PATH)/platform \
254         $(WEBCORE_INTERMEDIATES_PATH)/xml
255
256 # The following includes are needed by the AutoFill feature, or the chrome http
257 # stack
258 LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
259         $(WEBKIT_PATH)/chromium \
260         $(WEBKIT_PATH)/chromium/public \
261         external/chromium/chrome/browser \
262         external/chromium/chrome/renderer \
263         external/chromium \
264         external/chromium/chrome \
265         external/skia
266
267 ifeq ($(JAVASCRIPT_ENGINE),v8)
268 # Include WTF source file.
269 d := Source/JavaScriptCore
270 LOCAL_PATH := $(BASE_PATH)/$d
271 intermediates := $(base_intermediates)/$d
272 include $(LOCAL_PATH)/Android.v8.wtf.mk
273 WEBKIT_SRC_FILES += $(addprefix $d/,$(LOCAL_SRC_FILES))
274 endif  # JAVASCRIPT_ENGINE == v8
275
276 # Include source files for WebCore
277 d := Source/WebCore
278 LOCAL_PATH := $(BASE_PATH)/$d
279 intermediates := $(base_intermediates)/$d
280 include $(LOCAL_PATH)/Android.mk
281 ifeq ($(JAVASCRIPT_ENGINE),jsc)
282 include $(LOCAL_PATH)/Android.jscbindings.mk
283 endif
284 ifeq ($(JAVASCRIPT_ENGINE),v8)
285 include $(LOCAL_PATH)/Android.v8bindings.mk
286 endif
287 WEBKIT_SRC_FILES += $(addprefix $d/,$(LOCAL_SRC_FILES))
288 LOCAL_C_INCLUDES += $(BINDING_C_INCLUDES)
289
290 # Include the derived source files for WebCore. Uses the same path as
291 # WebCore
292 include $(LOCAL_PATH)/Android.derived.mk
293 ifeq ($(JAVASCRIPT_ENGINE),jsc)
294 include $(LOCAL_PATH)/Android.derived.jscbindings.mk
295 endif
296 ifeq ($(JAVASCRIPT_ENGINE),v8)
297 include $(LOCAL_PATH)/Android.derived.v8bindings.mk
298 endif
299
300 # Include source files for android WebKit port
301 d := Source/WebKit
302 LOCAL_PATH := $(BASE_PATH)/$d
303 intermediates := $(base_intermediates)/$d
304 include $(LOCAL_PATH)/Android.mk
305 WEBKIT_SRC_FILES += $(addprefix $d/,$(LOCAL_SRC_FILES))
306
307 # Redefine LOCAL_PATH here so the build system is not confused
308 LOCAL_PATH := $(BASE_PATH)
309
310 # Define our compiler flags
311 LOCAL_CFLAGS += -Wno-endif-labels -Wno-import -Wno-format
312 LOCAL_CFLAGS += -fno-strict-aliasing
313 LOCAL_CFLAGS += -include "WebCorePrefix.h"
314 LOCAL_CFLAGS += -fvisibility=hidden
315 LOCAL_CFLAGS += -DALWAYS_INLINE=inline
316 # Make sure assert.h is included before assert is defined
317 LOCAL_CFLAGS += -include "assert.h"
318 ifeq ($(HTTP_STACK),chrome)
319 LOCAL_CFLAGS += -DGOOGLEURL
320 LOCAL_CFLAGS += -DWTF_USE_CHROME_NETWORK_STACK
321 endif # HTTP_STACK == chrome
322 LOCAL_CPPFLAGS := -Wno-sign-promo
323
324 # Adds GL and EGL extensions for the GL backend
325 LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
326
327 # Enable JSC JIT if JSC is used and ENABLE_JSC_JIT environment
328 # variable is set to true
329 ifeq ($(JAVASCRIPT_ENGINE),jsc)
330 ifeq ($(ENABLE_JSC_JIT),true)
331 LOCAL_CFLAGS += -DENABLE_ANDROID_JSC_JIT=1
332 endif
333 endif
334
335 ifeq ($(TARGET_ARCH),arm)
336 LOCAL_CFLAGS += -Darm
337 # remove this warning: "note: the mangling of 'va_list' has changed in GCC 4.4"
338 LOCAL_CFLAGS += -Wno-psabi
339 endif
340
341 # need a flag to tell the C side when we're on devices with large memory
342 # budgets (i.e. larger than the low-end devices that initially shipped)
343 ifeq ($(ARCH_ARM_HAVE_VFP),true)
344 LOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE
345 endif
346
347 ifeq ($(ENABLE_SVG),true)
348 LOCAL_CFLAGS += -DENABLE_SVG=1 -DENABLE_SVG_ANIMATION=1
349 endif
350
351 ifeq ($(ENABLE_WTF_USE_ACCELERATED_COMPOSITING),false)
352 LOCAL_CFLAGS += -DWTF_USE_ACCELERATED_COMPOSITING=0
353 endif
354
355 ifeq ($(ENABLE_WTF_USE_ACCELERATED_COMPOSITING),true)
356 LOCAL_CFLAGS += -DWTF_USE_ACCELERATED_COMPOSITING=1
357 endif
358
359 ifeq ($(WEBCORE_INSTRUMENTATION),true)
360 LOCAL_CFLAGS += -DANDROID_INSTRUMENT
361 endif
362
363 # LOCAL_LDLIBS is used in simulator builds only and simulator builds are only
364 # valid on Linux
365 LOCAL_LDLIBS += -lpthread -ldl
366
367 # Build the list of shared libraries
368 LOCAL_SHARED_LIBRARIES := \
369         libandroid_runtime \
370         libnativehelper \
371         libsqlite \
372         libskia \
373         libutils \
374         libui \
375         libcutils \
376         libicuuc \
377         libicui18n \
378         libmedia \
379         libEGL \
380         libGLESv2 \
381         libgui
382
383 ifeq ($(PLATFORM_VERSION),3.1.4.1.5.9.2.6.5)
384 LOCAL_SHARED_LIBRARIES += libsurfaceflinger_client
385 endif
386
387 ifeq ($(WEBCORE_INSTRUMENTATION),true)
388 LOCAL_SHARED_LIBRARIES += libhardware_legacy
389 endif
390
391 # We have to use the android version of libdl when we are not on the simulator
392 ifneq ($(TARGET_SIMULATOR),true)
393 LOCAL_SHARED_LIBRARIES += libdl libstlport
394 # We have to fake out some headers when using stlport.
395 LOCAL_C_INCLUDES += \
396         external/chromium/android
397 include external/stlport/libstlport.mk
398 endif
399
400 # We need Harfbuzz library to support complex scripts(Arabic, Thai, Hindi...).
401 ifeq ($(SUPPORT_COMPLEX_SCRIPTS),true)
402 LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
403         external/harfbuzz/src \
404         external/harfbuzz/contrib
405 LOCAL_SHARED_LIBRARIES += libharfbuzz
406 LOCAL_CFLAGS += -DSUPPORT_COMPLEX_SCRIPTS=1
407 endif
408
409 # Build the list of static libraries
410 LOCAL_STATIC_LIBRARIES := libxml2 libxslt libhyphenation libskiagpu
411 ifeq ($(JAVASCRIPT_ENGINE),v8)
412 LOCAL_STATIC_LIBRARIES += libv8
413 endif
414
415 ifeq ($(HTTP_STACK),chrome)
416 LOCAL_STATIC_LIBRARIES += libchromium_net
417 LOCAL_SHARED_LIBRARIES += libcrypto libssl libz
418 endif # HTTP_STACK == chrome
419
420 ifeq ($(ENABLE_AUTOFILL),true)
421 LOCAL_SHARED_LIBRARIES += libexpat
422 endif
423
424 # Redefine LOCAL_SRC_FILES to be all the WebKit source files
425 LOCAL_SRC_FILES := $(WEBKIT_SRC_FILES)
426
427 # Define this for use in other makefiles.
428 WEBKIT_C_INCLUDES := $(LOCAL_C_INCLUDES)
429 WEBKIT_CFLAGS := $(LOCAL_CFLAGS)
430 WEBKIT_CPPFLAGS := $(LOCAL_CPPFLAGS)
431 WEBKIT_GENERATED_SOURCES := $(LOCAL_GENERATED_SOURCES)
432 WEBKIT_LDLIBS := $(LOCAL_LDLIBS)
433 WEBKIT_SHARED_LIBRARIES := $(LOCAL_SHARED_LIBRARIES)
434 WEBKIT_STATIC_LIBRARIES := $(LOCAL_STATIC_LIBRARIES)
435
436 # Build the library all at once
437 include $(BUILD_STATIC_LIBRARY)
438
439 ifeq ($(JAVASCRIPT_ENGINE),jsc)
440 # Now build libjs as a static library.
441 include $(CLEAR_VARS)
442 LOCAL_MODULE := libjs
443 LOCAL_LDLIBS := $(WEBKIT_LDLIBS)
444 LOCAL_SHARED_LIBRARIES := $(WEBKIT_SHARED_LIBRARIES)
445 LOCAL_STATIC_LIBRARIES := $(WEBKIT_STATIC_LIBRARIES)
446 LOCAL_CFLAGS := $(WEBKIT_CFLAGS)
447 # Include source files for JavaScriptCore
448 d := Source/JavaScriptCore
449 LOCAL_PATH := $(BASE_PATH)/$d
450 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
451 # Cannot use base_intermediates as this is a new module
452 intermediates := $(call local-intermediates-dir)
453 include $(LOCAL_PATH)/Android.mk
454 # Redefine LOCAL_SRC_FILES with the correct prefix
455 LOCAL_SRC_FILES := $(addprefix $d/,$(LOCAL_SRC_FILES))
456 # Use the base path to resolve file names
457 LOCAL_PATH := $(BASE_PATH)
458 # Append jsc intermediate include paths to the WebKit include list.
459 LOCAL_C_INCLUDES := $(WEBKIT_C_INCLUDES) \
460         $(intermediates) \
461         $(intermediates)/parser \
462         $(intermediates)/runtime \
463 # Build libjs
464 include $(BUILD_STATIC_LIBRARY)
465 endif  # JAVASCRIPT_ENGINE == jsc
466
467 # Now build the shared library using only the exported jni entry point. This
468 # will strip out any unused code from the entry point.
469 include $(CLEAR_VARS)
470 # Do not attempt prelink this library. Needed to keep master-gpl happy, no
471 # effect in master.
472 # TODO: remove this when master-gpl is updated.
473 LOCAL_PRELINK_MODULE := false
474 LOCAL_MODULE := libwebcore
475 LOCAL_LDLIBS := $(WEBKIT_LDLIBS)
476 LOCAL_SHARED_LIBRARIES := $(WEBKIT_SHARED_LIBRARIES)
477 LOCAL_STATIC_LIBRARIES := libwebcore $(WEBKIT_STATIC_LIBRARIES)
478 ifeq ($(JAVASCRIPT_ENGINE),jsc)
479 LOCAL_STATIC_LIBRARIES += libjs
480 endif
481 LOCAL_LDFLAGS := -fvisibility=hidden
482 LOCAL_CFLAGS := $(WEBKIT_CFLAGS)
483 LOCAL_CPPFLAGS := $(WEBKIT_CPPFLAGS)
484 LOCAL_C_INCLUDES := $(WEBKIT_C_INCLUDES)
485 LOCAL_PATH := $(BASE_PATH)
486 LOCAL_SRC_FILES := \
487         Source/WebKit/android/jni/WebCoreJniOnLoad.cpp
488
489 ifeq ($(ENABLE_AUTOFILL),true)
490 # AutoFill requires some cpp files from Chromium to link with
491 # libchromium_net. We cannot compile them into libchromium_net
492 # because they have cpp file extensions, not .cc.
493 LOCAL_CFLAGS += -DWEBKIT_IMPLEMENTATION=1
494 LOCAL_SRC_FILES += \
495         Source/WebKit/android/WebCoreSupport/autofill/MainThreadProxy.cpp \
496         Source/WebKit/chromium/src/WebCString.cpp \
497         Source/WebKit/chromium/src/WebRegularExpression.cpp \
498         Source/WebKit/chromium/src/WebString.cpp
499 endif
500
501 # Do this dependency by hand. The reason we have to do this is because the
502 # headers that this file pulls in are generated during the build of webcore.
503 # We make all of our object files depend on those files so that they are built
504 # before we try to compile the file.
505 LOCAL_ADDITIONAL_DEPENDENCIES := $(filter %.h, $(WEBKIT_GENERATED_SOURCES))
506 include $(BUILD_SHARED_LIBRARY)
507
508 # Build the wds client
509 include $(WEBKIT_PATH)/android/wds/client/Android.mk
510
511 # Build the performance command line tool.
512 include $(WEBKIT_PATH)/android/benchmark/Android.mk
513
514 # Build the webkit merge tool.
515 include $(BASE_PATH)/Tools/android/webkitmerge/Android.mk