OSDN Git Service

Only support saveWebArchive for (X)HTML
[android-x86/external-webkit.git] / Android.mk
index 212f579..0bddbc1 100644 (file)
@@ -73,6 +73,13 @@ ifeq ($(TARGET_SIMULATOR),true)
   JAVASCRIPT_ENGINE = jsc
 endif
 
+# V8 also requires an ARMv7 CPU, and since we must use jsc, we cannot
+# use the Chrome http stack either.
+ifneq ($(strip $(ARCH_ARM_HAVE_ARMV7A)),true)
+  JAVASCRIPT_ENGINE := jsc
+  USE_ALT_HTTP := true
+endif
+
 # See if the user has specified a stack they want to use
 HTTP_STACK = $(HTTP)
 # We default to the Chrome HTTP stack.
@@ -93,7 +100,9 @@ endif
 # The Chrome stack can not be used with JSC and hence can not be used be used
 # with the simulator.
 ifeq ($(JAVASCRIPT_ENGINE),jsc)
-  HTTP_STACK = android
+  ifeq ($(HTTP_STACK),chrome)
+    $(error Can not build with JSC and the Chrome HTTP stack)
+  endif
 endif
 
 # Read the environment variable to determine if Autofill is compiled.
@@ -144,7 +153,8 @@ LOCAL_C_INCLUDES := \
        external/skia/include/utils \
        external/skia/src/ports \
        external/sqlite/dist \
-       frameworks/base/core/jni/android/graphics
+       frameworks/base/core/jni/android/graphics \
+       frameworks/base/include
 
 LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
        $(LOCAL_PATH)/WebCore \
@@ -165,6 +175,7 @@ LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
        $(LOCAL_PATH)/WebCore/loader/appcache \
        $(LOCAL_PATH)/WebCore/loader/archive \
        $(LOCAL_PATH)/WebCore/loader/archive/android \
+       $(LOCAL_PATH)/WebCore/loader/cache \
        $(LOCAL_PATH)/WebCore/loader/icon \
        $(LOCAL_PATH)/WebCore/notifications \
        $(LOCAL_PATH)/WebCore/page \
@@ -176,6 +187,7 @@ LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
        $(LOCAL_PATH)/WebCore/platform/graphics \
        $(LOCAL_PATH)/WebCore/platform/graphics/android \
        $(LOCAL_PATH)/WebCore/platform/graphics/filters \
+       $(LOCAL_PATH)/WebCore/platform/graphics/gpu \
        $(LOCAL_PATH)/WebCore/platform/graphics/network \
        $(LOCAL_PATH)/WebCore/platform/graphics/skia \
        $(LOCAL_PATH)/WebCore/platform/graphics/transforms \
@@ -185,6 +197,7 @@ LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
        $(LOCAL_PATH)/WebCore/platform/image-decoders/ico \
        $(LOCAL_PATH)/WebCore/platform/image-decoders/jpeg \
        $(LOCAL_PATH)/WebCore/platform/image-decoders/png \
+       $(LOCAL_PATH)/WebCore/platform/image-decoders/webp \
        $(LOCAL_PATH)/WebCore/platform/mock \
        $(LOCAL_PATH)/WebCore/platform/network \
        $(LOCAL_PATH)/WebCore/platform/network/android \
@@ -195,11 +208,13 @@ LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
        $(LOCAL_PATH)/WebCore/plugins/android \
        $(LOCAL_PATH)/WebCore/rendering \
        $(LOCAL_PATH)/WebCore/rendering/style \
+       $(LOCAL_PATH)/WebCore/rendering/svg \
        $(LOCAL_PATH)/WebCore/storage \
        $(LOCAL_PATH)/WebCore/svg \
        $(LOCAL_PATH)/WebCore/svg/animation \
        $(LOCAL_PATH)/WebCore/svg/graphics \
        $(LOCAL_PATH)/WebCore/svg/graphics/filters \
+       $(LOCAL_PATH)/WebCore/svg/properties \
        $(LOCAL_PATH)/WebCore/websockets \
        $(LOCAL_PATH)/WebCore/workers \
        $(LOCAL_PATH)/WebCore/xml
@@ -231,7 +246,6 @@ LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \
        external/chromium/chrome/browser \
        external/chromium/chrome/renderer \
        external/chromium \
-       external/chromium/android \
        external/chromium/chrome \
        external/skia
 
@@ -284,12 +298,17 @@ LOCAL_CFLAGS += -Wno-endif-labels -Wno-import -Wno-format
 LOCAL_CFLAGS += -fno-strict-aliasing
 LOCAL_CFLAGS += -include "WebCorePrefix.h"
 LOCAL_CFLAGS += -fvisibility=hidden
+LOCAL_CFLAGS += -DALWAYS_INLINE=inline
 # Make sure assert.h is included before assert is defined
 LOCAL_CFLAGS += -include "assert.h"
 ifeq ($(HTTP_STACK),chrome)
 LOCAL_CFLAGS += -DGOOGLEURL
 LOCAL_CFLAGS += -DWTF_USE_CHROME_NETWORK_STACK
 endif # HTTP_STACK == chrome
+LOCAL_CPPFLAGS := -Wno-sign-promo
+
+# Adds GL and EGL extensions for the GL backend
+LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
 
 # Enable JSC JIT if JSC is used and ENABLE_JSC_JIT environment
 # variable is set to true
@@ -343,7 +362,10 @@ LOCAL_SHARED_LIBRARIES := \
        libicuuc \
        libicui18n \
        libmedia \
-       libsurfaceflinger_client
+       libsurfaceflinger_client \
+       libEGL \
+       libGLESv2 \
+       libgui
 
 ifeq ($(WEBCORE_INSTRUMENTATION),true)
 LOCAL_SHARED_LIBRARIES += libhardware_legacy
@@ -352,6 +374,9 @@ endif
 # We have to use the android version of libdl when we are not on the simulator
 ifneq ($(TARGET_SIMULATOR),true)
 LOCAL_SHARED_LIBRARIES += libdl libstlport
+# We have to fake out some headers when using stlport.
+LOCAL_C_INCLUDES += \
+       external/chromium/android
 include external/stlport/libstlport.mk
 endif
 
@@ -385,6 +410,7 @@ LOCAL_SRC_FILES := $(WEBKIT_SRC_FILES)
 # Define this for use in other makefiles.
 WEBKIT_C_INCLUDES := $(LOCAL_C_INCLUDES)
 WEBKIT_CFLAGS := $(LOCAL_CFLAGS)
+WEBKIT_CPPFLAGS := $(LOCAL_CPPFLAGS)
 WEBKIT_GENERATED_SOURCES := $(LOCAL_GENERATED_SOURCES)
 WEBKIT_LDLIBS := $(LOCAL_LDLIBS)
 WEBKIT_SHARED_LIBRARIES := $(LOCAL_SHARED_LIBRARIES)
@@ -425,10 +451,6 @@ endif  # JAVASCRIPT_ENGINE == jsc
 # will strip out any unused code from the entry point.
 include $(CLEAR_VARS)
 # if you need to make webcore huge (for debugging), enable this line
-ifeq ($(HTTP_STACK),chrome)
-# Too large for the space with chromium linked in
-LOCAL_PRELINK_MODULE := false
-endif
 #LOCAL_PRELINK_MODULE := false
 LOCAL_MODULE := libwebcore
 LOCAL_LDLIBS := $(WEBKIT_LDLIBS)
@@ -439,6 +461,7 @@ LOCAL_STATIC_LIBRARIES += libjs
 endif
 LOCAL_LDFLAGS := -fvisibility=hidden
 LOCAL_CFLAGS := $(WEBKIT_CFLAGS)
+LOCAL_CPPFLAGS := $(WEBKIT_CPPFLAGS)
 LOCAL_C_INCLUDES := $(WEBKIT_C_INCLUDES)
 LOCAL_PATH := $(BASE_PATH)
 LOCAL_SRC_FILES := \