OSDN Git Service

Fix the occassional build break.
authorPatrick Scott <phanna@android.com>
Tue, 24 Nov 2009 13:44:18 +0000 (08:44 -0500)
committerPatrick Scott <phanna@android.com>
Tue, 24 Nov 2009 13:48:08 +0000 (08:48 -0500)
WebCoreJniOnLoad.cpp now depends on some generated headers so it can occassional
fail to build if make has many jobs. Add LOCAL_ADDITIONAL_DEPENDENCIES to
prevent build breakage.

This was pulled from the old perf/Android.mk file.

Android.mk

index 884b084..3d02739 100644 (file)
@@ -326,6 +326,11 @@ LOCAL_C_INCLUDES := $(WEBKIT_C_INCLUDES)
 LOCAL_PATH := $(BASE_PATH)
 LOCAL_SRC_FILES := \
        WebKit/android/jni/WebCoreJniOnLoad.cpp
+# Do this dependency by hand. The reason we have to do this is because the
+# headers that this file pulls in are generated during the build of webcore.
+# We make all of our object files depend on those files so that they are built
+# before we try to compile the file.
+LOCAL_ADDITIONAL_DEPENDENCIES := $(filter %.h, $(WEBKIT_GENERATED_SOURCES))
 include $(BUILD_SHARED_LIBRARY)
 
 # Build the wds client