platform_build/core
Ying Wang 3a61eeb6cb Rebuild odex files in PDK fusion build.
To rebuild odex files of Java libraries and apps,
we store the jars/apks without stripping the classes.dex inside the
platform.zip. We also save the build variables that may affect how we
rebuild an odex in pdk_dexpreopt_config.mk in the platform.zip.
We store the files and configuration only for libraries/apps that get
installed to the system.img (or vendor.img).

In PDK fusion build, we auto-generate prebuilt module definitions for
the javalib.jar and package.dex.apk carried in the platform.zip, using
configuration stored in pdk_dexpreopt_config.mk.
With the prebult modules, we override the implicit rule that directly
copies the odex from the platform.zip.
To rebuild odex of javalib.jar, we added support for prebuilt shared Java
library to prebiult_internal.mk. An installable prebuilt Java library is
treated as shared Java library, i.e. with classes.dex in the jar instead
of a set of .class files.
For apks in the platform.zip, we install the stripped version from
platform files inside platform.zip, instead of the package.dex.apk,
using a new variable LOCAL_REPLACE_PREBUILT_APK_INSTALLED. We can't
strip package.dex.apk because we can't re-sign the stripped apk at this
point.

We generate prebuilt module only if it's not already defined in the
source tree.

Bug: 27543283
Change-Id: I9e146f8b713d6f57c397fd28d88c9ab700757ca1
2016-03-14 21:01:46 -07:00
..
clang Switch to clang-2658975. 2016-03-11 15:03:18 -08:00
combo Use newest clang static analyzers. 2016-02-26 18:51:26 -08:00
tasks Add cts_v2 phony target for temporary build fix. 2016-03-02 08:42:41 -08:00
aapt2.mk Add --auto-add-overlay if a module has LOCAL_STATIC_ANDROID_LIBRARIES 2016-03-02 18:55:46 -08:00
android_manifest.mk AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
apicheck_msg_current.txt
apicheck_msg_last.txt
base_rules.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08:00
binary.mk Use newest clang static analyzers. 2016-02-26 18:51:26 -08:00
build-system.html set ro.adb.secure=1 for user builds 2015-12-23 20:18:15 +00:00
build_id.mk [DO NOT MERGE] Update BUILD_ID for nyc branches. 2016-03-02 18:18:07 -08:00
ccache.mk Disable goma/ccache with USE_XXX=false 2015-12-18 15:26:17 +09:00
checktree
cleanbuild.mk delete recovery policy on changing build types 2016-02-29 08:45:31 -08:00
cleanspec.mk
clear_vars.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
config.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
config_sanitizers.mk Remove RPATH for AddressSanitizer. 2015-12-21 10:29:54 -08:00
configure_local_jack.mk Strip LOCAL_MODULE before referencing it. 2015-10-26 17:06:08 -07:00
configure_module_stem.mk
copy_headers.mk Warn more clearly when there are duplicate copied headers 2016-02-23 16:09:49 -08:00
cxx_stl_setup.mk Add support for LOCAL_NDK_STL_VARIANT := none. 2015-12-09 15:59:17 -08:00
definitions.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
device.mk
dex_preopt.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
dex_preopt_libart.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
dex_preopt_libart_boot.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
dex_preopt_odex_install.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
distdir.mk Sort out ANDROID_GOALS, KATI_GOALS and NINJA_GOALS. 2015-11-03 17:10:28 -08:00
dpi_specific_apk.mk Merge "Do not run zipalign when building APK (except prebuilts)." am: b437f58006 am: fddfc2c604 2015-12-08 03:04:50 +00:00
droiddoc.mk Revert "Revert "Make OpenJDK 8 the default"" 2016-01-25 17:35:57 +00:00
dumpvar.mk Fix dumping variables of absolute paths. 2016-03-07 12:00:41 -08:00
dynamic_binary.mk Support arch specific variants of LOCAL_STRIP_MODULE/LOCAL_PACK_MODULE_RELOCATIONS 2016-03-01 20:21:37 -08:00
envsetup.mk Speed up lunch/tapas/etc. shell utility functions. 2016-03-04 14:02:03 -08:00
executable.mk
executable_internal.mk Enable LOCAL_POST_LINK_CMD for non-static executables. 2016-03-07 13:22:06 -08:00
executable_prefer_symlink.mk
filter_symbols.sh
find-jdk-tools-jar.sh Error out early on nonstandard JDK directory layouts 2015-10-23 19:00:43 -07:00
fuzz_test.mk
goma.mk Disable goma/ccache with USE_XXX=false 2015-12-18 15:26:17 +09:00
help.mk
host_dalvik_java_library.mk Use Jack to check build 2016-03-01 16:57:20 +01:00
host_dalvik_static_java_library.mk Use Jack to check build 2016-03-01 16:57:20 +01:00
host_executable.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08:00
host_executable_internal.mk
host_fuzz_test.mk
host_java_library.mk Add JarJar support to BUILD_HOST_JAVA_LIBRARY 2016-03-02 11:19:41 +00:00
host_java_library_common.mk
host_native_test.mk Default LOCAL_MULTILIB:=both for HOST_NATIVE_TEST 2015-12-21 16:34:25 -08:00
host_prebuilt.mk
host_shared_library.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08:00
host_shared_library_internal.mk
host_shared_test_lib.mk
host_static_library.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08:00
host_static_library_internal.mk
host_static_test_lib.mk
host_test_internal.mk
install_jni_libs.mk
install_jni_libs_internal.mk Use direct dependency on the JNI so files. 2015-10-15 17:50:06 -07:00
jack-default.args
java.mk Use Jack to check build 2016-03-01 16:57:20 +01:00
java_common.mk Merge "Make the language version selection smarter" into nyc-dev 2016-03-10 09:45:55 +00:00
java_library.mk Support code coverage with Jack 2016-01-27 19:14:14 +01:00
legacy_prebuilts.mk
LINUX_KERNEL_COPYING build: Add LINUX_KERNEL_COPYING license file 2015-11-09 02:27:01 +01:00
main.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
Makefile Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
module_arch_supported.mk Tell Soong about HOST_CROSS_* 2016-02-29 13:55:14 -08:00
multi_prebuilt.mk
multilib.mk
native_benchmark.mk Move BUILD_NATIVE_BENCHMARK over to libgoogle-benchmark. 2016-03-08 14:56:27 -08:00
native_test.mk
ninja.mk Support build old version of cts 2016-03-07 17:11:14 +00:00
node_fns.mk
notice_files.mk Allow modules to override the default NOTICE file. 2015-12-24 10:10:55 +00:00
package.mk
package_internal.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
pathmap.mk Fix data binding source paths 2016-01-20 12:20:10 +00:00
pdk_config.mk Merge "Move PDK selection into config.mk" am: 655dd3ea76 2016-02-02 20:40:49 +00:00
pdk_fusion_modules.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
phony_package.mk
post_clean.mk Clean generated source dir if .proto/.rs is gonee. 2016-03-01 22:22:43 -08:00
prebuilt.mk Remove debug statement 2016-02-29 13:55:37 -08:00
prebuilt_internal.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
process_wrapper.sh
process_wrapper_gdb.cmds
process_wrapper_gdb.sh
product-graph.mk Fix "make product-graph" and "make dump-products". 2015-10-28 16:49:44 -07:00
product.mk Speed up lunch/tapas/etc. shell utility functions. 2016-03-04 14:02:03 -08:00
product_config.mk AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
proguard.emma.flags
proguard.flags
proguard.jacoco.flags Support code coverage with Jack 2016-01-27 19:14:14 +01:00
proguard_basic_keeps.flags
proguard_tests.flags
root.mk
sdk_font.mk
setup_one_odex.mk
shared_library.mk
shared_library_internal.mk
shared_test_lib.mk
soong.mk Tell Soong about HOST_CROSS_* 2016-02-29 13:55:14 -08:00
static_java_library.mk Merge "Use Jack to check build" into nyc-dev 2016-03-03 08:47:41 +00:00
static_library.mk
static_library_internal.mk
static_test_lib.mk
target_test_internal.mk
version_defaults.mk PLATFORM_PREVIEW_SDK_VERSION = 2 for DP2 2016-03-11 22:13:36 -08:00