summaryrefslogtreecommitdiffstats
path: root/core/java_library.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:14 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:14 -0800
commit05806d7af62e07c6225b2e7103a1b115ecf6c9ad (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /core/java_library.mk
parent094268cf8cb37b9d904c8a1e3559cdd46d73cf66 (diff)
downloadbuild-05806d7af62e07c6225b2e7103a1b115ecf6c9ad.zip
build-05806d7af62e07c6225b2e7103a1b115ecf6c9ad.tar.gz
build-05806d7af62e07c6225b2e7103a1b115ecf6c9ad.tar.bz2
auto import from //depot/cupcake/@135843
Diffstat (limited to 'core/java_library.mk')
-rw-r--r--core/java_library.mk47
1 files changed, 0 insertions, 47 deletions
diff --git a/core/java_library.mk b/core/java_library.mk
deleted file mode 100644
index a33bf2e..0000000
--- a/core/java_library.mk
+++ /dev/null
@@ -1,47 +0,0 @@
-###########################################################
-## Standard rules for building a java library.
-##
-###########################################################
-
-ifdef LOCAL_IS_HOST_MODULE
-$(error $(LOCAL_PATH): Host java libraries must use BUILD_HOST_JAVA_LIBRARY)
-endif
-
-LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
-LOCAL_MODULE_CLASS := JAVA_LIBRARIES
-
-ifneq (,$(LOCAL_ASSET_DIR))
-$(error $(LOCAL_PATH): Target java libraries may not set LOCAL_ASSET_DIR)
-endif
-
-ifneq (,$(LOCAL_RESOURCE_DIR))
-$(error $(LOCAL_PATH): Target java libraries may not set LOCAL_RESOURCE_DIR)
-endif
-
-#xxx base_rules.mk looks at this
-all_res_assets :=
-
-LOCAL_BUILT_MODULE_STEM := javalib.jar
-
-#################################
-include $(BUILD_SYSTEM)/java.mk
-#################################
-
-ifeq ($(LOCAL_IS_STATIC_JAVA_LIBRARY),true)
-# No dex or resources; all we want are the .class files.
-$(LOCAL_BUILT_MODULE): $(full_classes_jar)
- @echo "target Static Jar: $(PRIVATE_MODULE) ($@)"
- $(copy-file-to-target)
-
-else # !LOCAL_IS_STATIC_JAVA_LIBRARY
-
-$(LOCAL_BUILT_MODULE): PRIVATE_DEX_FILE := $(built_dex)
-$(LOCAL_BUILT_MODULE): $(built_dex) $(java_resource_sources) | $(AAPT)
- @echo "target Jar: $(PRIVATE_MODULE) ($@)"
- $(create-empty-package)
- $(add-dex-to-package)
-ifneq ($(extra_jar_args),)
- $(add-java-resources-to-package)
-endif
-
-endif # !LOCAL_IS_STATIC_JAVA_LIBRARY