android_build/core
Ying Wang 140274707e Running jarjar on Java resources.
Before this change, Java resources are added as a separate step
(add-java-resources-to-package) after dex is run, so jarjar isn't run on
the resource files.
With this change, we add Java resources immediately after we call javac,
so jarjar is run on the resource files (the module's own resource, as
well as resources carried by static Java libraries).
When we generate the final apk/jar, we use the jarjar'ed jar as the
inital pacakge file, with class files and empty folders removed.

When jack is enabled, in jack-java-to-dex we add the Java resources to
a temp jar using the PRIVATE_EXTRA_JAR_ARGS, and extrac the files in a
temp dir. Jack will process the resource files and output the result to
PRIVATE_JACK_INTERMEDIATES_DIR. When we package the final apk/jar, we
need to call add-carried-jack-resources to readd the resources.
(TODO: if jack can output all resources to a jar/zip file, we can use
that file as the initial package file as well.)

Bug: 18837479
Change-Id: I15ecf282bfb65fd53dd03fbd03dd4c71927c186a
2015-01-20 11:46:59 -08:00
..
clang Make bcc-compat able to pick the right mtriple flag for Renderscript 2015-01-12 17:20:28 -08:00
combo am c0ff83ae: am 17967eb7: Merge "[MIPSR6] Adjust prebuilts/ndk libraries for mips32r6" 2015-01-16 20:06:46 +00:00
tasks Merge "Add fpc to vendor list" 2015-01-16 02:01:58 +00:00
Makefile am 121e53ca: am e1f21520: Merge "Add build.prop to root ramdisk" 2015-01-15 02:27:41 +00:00
android_manifest.mk Add support for prebuilt AARs. 2014-12-17 22:27:26 +00:00
apicheck_msg_current.txt
apicheck_msg_last.txt
base_rules.mk Running jarjar on Java resources. 2015-01-20 11:46:59 -08:00
binary.mk am c0ff83ae: am 17967eb7: Merge "[MIPSR6] Adjust prebuilts/ndk libraries for mips32r6" 2015-01-16 20:06:46 +00:00
build-system.html
build_id.mk
checktree
cleanbuild.mk Add clean targets removing jack and dex files 2015-01-16 09:48:24 +01:00
cleanspec.mk
clear_vars.mk Add support for prebuilt AARs. 2014-12-17 22:27:26 +00:00
config.mk am 50ef9040: am 2b942f87: Merge "Add build rules for libRSSupportIO (Usage_IO lib for RS compat lib)" 2015-01-16 16:50:15 +00:00
config_sanitizers.mk Add a SANITIZE_HOST flag. 2014-12-05 22:20:37 -08:00
configure_module_stem.mk
copy_headers.mk
cxx_stl_setup.mk
definitions.mk Running jarjar on Java resources. 2015-01-20 11:46:59 -08:00
device.mk
dex_preopt.mk Remove libdvm support from the core build system. 2014-12-16 10:08:00 -08:00
dex_preopt_libart.mk [MIPS64] Set ART base address for mips64 2014-12-23 13:50:18 +01:00
dex_preopt_libart_boot.mk Remove obsolete PRODUCT_DEX_PREOPT_.*_IN_DATA 2014-12-15 22:09:58 -08:00
dex_preopt_odex_install.mk Merge "Remove libdvm support from the core build system." 2014-12-16 21:38:41 +00:00
distdir.mk
dpi_specific_apk.mk Running jarjar on Java resources. 2015-01-20 11:46:59 -08:00
droiddoc.mk Make modules depend on their makefile. 2014-11-11 14:30:54 -08:00
dumpvar.mk
dynamic_binary.mk am aa4c8870: am a1e09b1a: am 98ae7985: Fix using variable intermediates.COMMON before defining. 2014-12-19 00:08:15 +00:00
envsetup.mk
executable.mk
executable_internal.mk
executable_prefer_symlink.mk Revert "Use PRIVATE_POST_INSTALL_CMD to simplify executable_prefer_symlink.mk" 2014-11-25 12:52:26 +00:00
filter_symbols.sh
find-jdk-tools-jar.sh
help.mk
host_dalvik_java_library.mk Running jarjar on Java resources. 2015-01-20 11:46:59 -08:00
host_dalvik_static_java_library.mk Adapt to Jack and Jill Brest release 2014-12-10 15:41:56 +01:00
host_executable.mk
host_executable_internal.mk
host_java_library.mk Make modules depend on their makefile. 2014-11-11 14:30:54 -08:00
host_java_library_common.mk Update protobuf library from 2.3 to 2.6. 2015-01-08 16:35:11 -08:00
host_native_test.mk
host_prebuilt.mk
host_shared_library.mk
host_shared_library_internal.mk Make modules depend on their makefile. 2014-11-11 14:30:54 -08:00
host_shared_test_lib.mk
host_static_library.mk
host_static_library_internal.mk
host_static_test_lib.mk
host_test_internal.mk
install_jni_libs.mk
install_jni_libs_internal.mk
java.mk Running jarjar on Java resources. 2015-01-20 11:46:59 -08:00
java_library.mk Running jarjar on Java resources. 2015-01-20 11:46:59 -08:00
legacy_prebuilts.mk
main.mk Support to build AAR for static Java libraries. 2014-12-18 12:02:38 -08:00
module_arch_supported.mk
multi_prebuilt.mk
multilib.mk
native_test.mk
node_fns.mk
notice_files.mk
package.mk
package_internal.mk Running jarjar on Java resources. 2015-01-20 11:46:59 -08:00
pathmap.mk
pdk_config.mk
phony_package.mk Make modules depend on their makefile. 2014-11-11 14:30:54 -08:00
post_clean.mk
prebuilt.mk Don't set up the prebuilt apk rule twice. 2014-12-01 15:56:19 -08:00
prebuilt_internal.mk Add support for prebuilt AARs. 2014-12-17 22:27:26 +00:00
process_wrapper.sh
process_wrapper_gdb.cmds
process_wrapper_gdb.sh
product.mk am ad6dd21e: Merge "Remove unused PRODUCT_TAGS" 2015-01-06 23:59:10 +00:00
product_config.mk am ad6dd21e: Merge "Remove unused PRODUCT_TAGS" 2015-01-06 23:59:10 +00:00
proguard.emma.flags
proguard.flags
proguard_basic_keeps.flags
proguard_tests.flags
root.mk
sdk_font.mk
setup_one_odex.mk
shared_library.mk
shared_library_internal.mk Make modules depend on their makefile. 2014-11-11 14:30:54 -08:00
shared_test_lib.mk
static_java_library.mk Running jarjar on Java resources. 2015-01-20 11:46:59 -08:00
static_library.mk
static_library_internal.mk
static_test_lib.mk
target_test_internal.mk Remove logic for platform stlport gtest. 2014-11-11 17:45:45 -08:00
version_defaults.mk Fix issue #18368417: 5.0 -> 5.1. 2014-12-04 12:10:32 -08:00