summaryrefslogtreecommitdiffstats
path: root/common/Android.mk
diff options
context:
space:
mode:
authorDan Egnor <egnor@google.com>2009-11-18 14:41:14 -0800
committerDan Egnor <egnor@google.com>2009-11-18 15:08:18 -0800
commita2d89234c16ac0951260f2b2a35b4ef90cc9e255 (patch)
tree92ac8bea77e5e8245e1f963b4a45e236575ab178 /common/Android.mk
parent6c8d6bcdc508d851393fd8da5756150661e45730 (diff)
downloadframeworks_native-a2d89234c16ac0951260f2b2a35b4ef90cc9e255.zip
frameworks_native-a2d89234c16ac0951260f2b2a35b4ef90cc9e255.tar.gz
frameworks_native-a2d89234c16ac0951260f2b2a35b4ef90cc9e255.tar.bz2
Solve the mutual interdependency problem between common and framework:
Have framework include the common source files directly when building, then build common as a static library separately (depending on framework, like everything else). Goes with a companion change to build/core/pathmap.mk.
Diffstat (limited to 'common/Android.mk')
-rw-r--r--common/Android.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/Android.mk b/common/Android.mk
index 8249a31..349bb86 100644
--- a/common/Android.mk
+++ b/common/Android.mk
@@ -14,11 +14,12 @@
LOCAL_PATH := $(call my-dir)
+# Note: the source code is in java/, not src/, because this code is also part of
+# the framework library, and build/core/pathmap.mk expects a java/ subdirectory.
+
include $(CLEAR_VARS)
LOCAL_MODULE := android-common
-LOCAL_NO_STANDARD_LIBRARIES := true
-LOCAL_JAVA_LIBRARIES := core ext
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
+LOCAL_SRC_FILES := $(call all-java-files-under, java)
include $(BUILD_STATIC_JAVA_LIBRARY)
# Include this library in the build server's output directory