summaryrefslogtreecommitdiffstats
path: root/core/tasks/ide.mk
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2010-05-21 14:29:29 -0700
committerJoe Onorato <joeo@android.com>2010-05-26 17:58:21 -0400
commit8a06bac1db18ff7702dbd2a4ffbdde97330cd665 (patch)
treeca185c1124b7a972dcd602a886b641d40f1a2466 /core/tasks/ide.mk
parent3a212f0fb6eb19324248063f769e296fcfbfeb75 (diff)
downloadbuild-8a06bac1db18ff7702dbd2a4ffbdde97330cd665.zip
build-8a06bac1db18ff7702dbd2a4ffbdde97330cd665.tar.gz
build-8a06bac1db18ff7702dbd2a4ffbdde97330cd665.tar.bz2
Make make ECLIPSE-lunch build a .classpath for all the java stuff that will be included in the
build. Change-Id: I5a6066fa2afc9cb7bea794770bbb589615a1f9eb
Diffstat (limited to 'core/tasks/ide.mk')
-rw-r--r--core/tasks/ide.mk17
1 files changed, 14 insertions, 3 deletions
diff --git a/core/tasks/ide.mk b/core/tasks/ide.mk
index 57a4609..e557e60 100644
--- a/core/tasks/ide.mk
+++ b/core/tasks/ide.mk
@@ -30,16 +30,27 @@ ifdef eclipse_project_goals
endif
eclipse_project_modules := $(call filter-ide-modules,ECLIPSE,$(eclipse_project_goals))
+ ifneq ($(filter lunch,$(eclipse_project_modules)),)
+ eclipse_project_modules := $(filter-out lunch,$(eclipse_project_modules))
+ installed_modules := $(foreach m,$(ALL_DEFAULT_INSTALLED_MODULES),\
+ $(INSTALLABLE_FILES.$(m).MODULE))
+ java_modules := $(foreach m,$(installed_modules),\
+ $(if $(filter JAVA_LIBRARIES APPS,$(ALL_MODULES.$(m).CLASS)),$(m),))
+ eclipse_project_modules := $(sort $(eclipse_project_modules) $(java_modules))
+ endif
+
source_paths := $(foreach m,$(eclipse_project_modules),$(ALL_MODULES.$(m).PATH)) \
- $(foreach m,$(eclipse_project_modules),$(ALL_MODULES.$(m).INTERMEDIATE_SOURCE_DIR))
+ $(foreach m,$(eclipse_project_modules),$(ALL_MODULES.$(m).INTERMEDIATE_SOURCE_DIR)) \
+ $(INTERNAL_SDK_SOURCE_DIRS)
+ source_paths := $(sort $(source_paths))
.classpath: PRIVATE_MODULES := $(eclipse_project_modules)
-.classpath: PRIVATE_DIRS := $(source_paths) $(INTERNAL_SDK_SOURCE_DIRS)
+.classpath: PRIVATE_DIRS := $(source_paths)
# the mess below with ./src tries to guess whether the src
$(eclipse_project_goals): .classpath
.classpath: FORCE
- $(hide) echo Generating .classpath for modules: $(PRIVATE_MODULES)
+ $(hide) echo Generating .classpath for eclipse
$(hide) echo '<classpath>' > $@
$(hide) for p in $(PRIVATE_DIRS) ; do \
echo -n ' <classpathentry kind="src" path="' >> $@ ; \