Commit Graph

7535 Commits

Author SHA1 Message Date
Ying Wang 5758b8ed96 Remove the R/Manifest classes when building the static Java library
Bug: 5448433

Instead of deferring the removal to building the app.
In that case any R/Manifest classes in any static Java libraries will be
deleted, no matter if they are generated from Android resource, or just
source R.java/Manifest.java in the source tree by accident.

Change-Id: I656f45e3cbc3796c5d4832363231480b3f1dc5b8
2011-12-15 16:36:55 -08:00
Ying Wang bf6c611cae Don't remove R class to fix the build.
Unfortunately there is R.java checked in the source tree that gets built
into static library.
So we have to find a way to delete classes from R.java generated by the
build system on the fly.

Change-Id: I2d82d28234cecbf6dd5b02b2dd4f7dbd47e3b626
2011-12-15 15:10:04 -08:00
Ying Wang 205a20a42c Merge "Support to build static Java library with Android resource" 2011-12-15 14:34:32 -08:00
Conley Owens db898a14e0 Merge "Add several module owners to the whitelist" 2011-12-15 10:57:32 -08:00
Conley Owens d497a1db71 Add several module owners to the whitelist
Change-Id: I9a215b74167efc2a6b3070dc8b616a289669d10f
2011-12-15 10:25:17 -08:00
The Android Open Source Project 98edf69771 am c7185534: Reconcile with ics-mr1-release
* commit 'c7185534d323aa13af3bda77a2e0e232306be89a':
  IML74G
2011-12-14 19:58:49 -08:00
The Android Open Source Project c7185534d3 Reconcile with ics-mr1-release
Change-Id: I13575fbc40df854f574e7eaf8cfee6153ab3a342
2011-12-14 19:57:24 -08:00
The Android Automerger 769631608c IML74G 2011-12-14 19:28:43 -08:00
The Android Open Source Project fbcd24c559 am efe3034c: Reconcile with ics-mr1-release
* commit 'efe3034c7107f80e99016bf1808cdfe1afe03e31':
  IML74F
  IML74E
2011-12-14 16:06:54 -08:00
The Android Open Source Project efe3034c71 Reconcile with ics-mr1-release
Change-Id: I93d6301506cdc1b3f549b7cf4dbc8a8b3adeca2b
2011-12-14 16:05:28 -08:00
Ying Wang 20e2083ea0 Support to build static Java library with Android resource
Bug: 5714516

The rationale behind this change:
- the library is compiled into a jar file, but its R class is generated
  making the constant not constant (static, not final static) (aapt
  option --non-constant-id). Also the jar file does not contain the R
  class.
- this allows the integer value to not be inlined in the compiled
  class files. Note that this prevents using switch statements.
- the main project use this jar file as a normal static library: it will
  add all the class files except the R.class.
- the main project uses the library res folder as a resource
  folder with lower priority than the main project (basically the
  main project is an overlay. This is accomplished using aapt's
  --auto-add-overlay to handle resources only in the main project
  (which the normal overlay mechanism doesn't allow).
- the main project creates R classes in the main project's
  package but also in the library's package. This is done with
  aapt's --extra-packages which accept as many packages as
  needed, separated by a :.
- manifest merging is not done yet, so
  activities/services/permissions/etc... have to be manually declared in
  the main app.

To use a static library with Android resource in your app,
1. Add the library's resource dir to your app as an overlay:
LOCAL_RESOURCE_DIR := <app_resource_dir> <static_library_resource_dirs>
2. Set the proper aapt flags:
LOCAL_AAPT_FLAGS := <apps_own_flags> --auto-add-overlay \
  --extra-packages <lib1_package_name>:<lib2_package_name>:...

Change-Id: Ifb4d2300b952ea4aaee74da1bb0c6c72ea0698a3
2011-12-14 16:04:59 -08:00
The Android Automerger 9b9360c421 IML74F 2011-12-14 15:56:03 -08:00
The Android Automerger 0fb6a79220 IML74E 2011-12-14 15:44:48 -08:00
Brian Muramatsu 393dde5525 resolved conflicts for merge of 80fa947b to master
Change-Id: I0febb15b690932ad342da4b10eb9c0f13d1d1517
2011-12-14 15:39:46 -08:00
Brian Muramatsu 80fa947b03 am fea66cee: Merge "Build Support for CTS Native Tests" into ics-mr1
* commit 'fea66cee1cd661b6bf8ead1988cf008fa61b01a7':
  Build Support for CTS Native Tests
2011-12-14 15:33:22 -08:00
Brian Muramatsu fea66cee1c Merge "Build Support for CTS Native Tests" into ics-mr1 2011-12-14 15:31:35 -08:00
David 'Digit' Turner 6371da10f8 x86: Refine the way we configure the x86 build.
This is the result of a recent conversation around the x86 ABI
and its relationship with how we build platform images. Briefly:

- We want to use feature-based macros like ARCH_X86_HAVE_$FEATURE
  instead of relying on explicit compiler macros like -DUSE_$FEATURE

- We want to allow for other x86-based arch variants, e.g. if
  someone wants to build Android for a CPU that doesn't support
  the NDK x86 ABI. However, we need to ensure these are not
  tagged compatible by mistake (see check at the end of TARGET_linux-x86.mk)

- There are several flags which use is dubious now that we have
  a dedicated toolchain to build all the x86 stuff. Comment them
  as 'to be considered for removal'. We'll do the proper checks
  later.

Change-Id: I7768d7c34d73e274cbf4c09ae831b55280d6bb58
2011-12-14 18:08:47 +01:00
The Android Open Source Project ec7a6448c6 am 4f732584: Reconcile with ics-mr1-release
* commit '4f7325849bad0c41f451ab177bac037c20f00de0':
  IML74D
2011-12-13 20:05:21 -08:00
The Android Open Source Project 4f7325849b Reconcile with ics-mr1-release
Change-Id: I4518215eb5788221551703ab02142d909644c1a7
2011-12-13 20:03:11 -08:00
The Android Automerger 2fc113de8a IML74D 2011-12-13 20:00:27 -08:00
The Android Open Source Project 2bc495a63f am 5b08f649: Reconcile with ics-mr1-release
* commit '5b08f6499a2bcd97ec88ae2719edb90d025cd298':
  IML74C
  IML74B
  IML74
2011-12-13 19:11:23 -08:00
The Android Open Source Project 5b08f6499a Reconcile with ics-mr1-release
Change-Id: Ibbd535845a392e5749d367ce406e7d5251b6d83f
2011-12-13 19:10:04 -08:00
The Android Automerger 531a546eba IML74C 2011-12-13 18:54:33 -08:00
The Android Automerger 77b9cad198 IML74B 2011-12-13 17:36:34 -08:00
The Android Automerger 10ed9524e6 merge in ics-mr1-release history after reset to ics-mr1 2011-12-13 17:35:59 -08:00
The Android Automerger 308b5299a6 IML74 2011-12-13 16:06:06 -08:00
The Android Automerger b1244157c3 merge in ics-mr1-release history after reset to ics-mr1 2011-12-13 16:02:06 -08:00
Vladimir Chtchetkine 8fe95240d6 Merge "Add boot property enabling ADBD over QEMU" 2011-12-13 14:39:12 -08:00
Brian Muramatsu 237fa07339 Build Support for CTS Native Tests
Bug 4970300

Adds two new variables, CTS_TEST_CASES and CTS_TEST_XMLS, to be read
from CtsTestCaseList.mk. The CTS_TEST_CASES variable can be used to
copy any sort of file to the repository/testcases CTS directory.
The CTS_TEST_XMLS variable can be used to inject test package xmls
from any source rather than relying upon the monolithic and
mostly serial buildCts.py script.

The existing CTS_CORE_CASE_LIST is coded to only support APKs, so
it could not be retrofitted to support native tests. However, the
two new variables can do even more than CTS_CORE_CASE_LIST due to
their generality. In the future, the idea is move away from
CTS_CORE_CASE_LIST and also generate XMLs using separate tools
rather than just buildCts.py.

Change-Id: Ib52722861c37e0f4d511f9041928395bcaba5dea
2011-12-13 14:14:36 -08:00
Vladimir Chtchetkine e6b969f3bc Add boot property enabling ADBD over QEMU
Emulator and system image now support ADBD communication over QEMUD pipe rather
than over a TCP port forwarding. However, emulator has to know ahead of time
(before system starts booting) whether or not the system image supports ADBD
over pipe to properly setup the communication. For that, we introduce a boot
property "ro.adb.qemu" that is readable by the emulator early enough for the
proper ADB communication setup.

Change-Id: I978489c5acf46177b520e775d745bcc78f469837
2011-12-13 11:31:54 -08:00
Sean Dykeman 6da9ef6996 Make java-event-log-tags.py create its output directory if it does not exist.
Change-Id: I88ca3e6e70d1ff9db8f1328f18c36abc196e1aad
2011-12-13 10:56:33 -08:00
Ying Wang 6a7c6064c2 Merge "Allow to build Java module from mere static Java libraries." 2011-12-13 09:06:08 -08:00
The Android Open Source Project 1ec03685c7 am d2884199: Reconcile with ics-mr1-release
* commit 'd2884199bda058c13e79f01e9ece26c0334d1d9c':
  IML73
2011-12-13 05:40:51 -08:00
The Android Open Source Project d2884199bd Reconcile with ics-mr1-release
Change-Id: I4e8279a5f59137d2ec2add324d117701ade68a8c
2011-12-13 05:11:37 -08:00
The Android Automerger 8590bd19eb IML73 2011-12-12 22:11:29 -08:00
The Android Automerger cb3317f845 merge in ics-mr1-release history after reset to ics-mr1 2011-12-12 22:07:51 -08:00
Jean-Baptiste Queru f641a5975d am a2c1261e: (-s ours) Set version numbers for AOSP - do not merge
* commit 'a2c1261e719b4fbac9eee4e348b629360870468f':
  Set version numbers for AOSP - do not merge
2011-12-12 18:01:28 -08:00
Ying Wang e109a1d08d Allow to build Java module from mere static Java libraries.
With this change, we can easily turn a static Java library to a shared
Java library.

Change-Id: I9915992cd19879846511d6272483d7a0a934e7eb
2011-12-12 17:52:03 -08:00
Jesse Hall fa947d04dd am 055cf585: am 615d2ffa: Enable the OpenGL View renderer on the emulator
* commit '055cf585b567af6ced36d7227a2ae921df5782e0':
  Enable the OpenGL View renderer on the emulator
2011-12-12 17:49:18 -08:00
Ying Wang b5a413e6cc Merge "Restrict vendor modules to help AOSP product distribution." 2011-12-12 17:32:22 -08:00
Jean-Baptiste Queru a2c1261e71 Set version numbers for AOSP - do not merge
Change-Id: I7be67f46069ed758e67066e696aa2567983fa374
2011-12-12 17:16:07 -08:00
The Android Open Source Project c2c7af99d4 am cd197842: Reconcile with ics-mr1-release
* commit 'cd197842b6b17c16b01b0f3608f7177faa5ab505':
  IML70C
  IML70B
2011-12-12 15:39:11 -08:00
Bruce Beare 29371f157a am 38158161: am 3343b27c: x86: The default ATOM BSP flags need to be in sync with the NDK ABI
* commit '381581613aab988acc6f9d5b459fd4f533d8c2a5':
  x86: The default ATOM BSP flags need to be in sync with the NDK ABI
2011-12-12 15:39:05 -08:00
The Android Open Source Project 5ec82bcfdd am e7a33465: Reconcile with ics-mr1-release
* commit 'e7a33465ac64218e146d72b2af0fd3a862128be1':
  IML70
  IML69C
  IML69B
2011-12-12 15:29:48 -08:00
Jesse Hall 055cf585b5 am 615d2ffa: Enable the OpenGL View renderer on the emulator
* commit '615d2ffa926d03ba44fbc58b4593ce96ef831783':
  Enable the OpenGL View renderer on the emulator
2011-12-12 15:22:32 -08:00
Ying Wang dbb31be413 Restrict vendor modules to help AOSP product distribution.
Bug: 5692177

If you set "PRODUCT_RESTRICT_VENDOR_FILES := true" in a product
configuration, this changes restricts that:
- No overlays in the vendor tree.
- No PRODUCT_COPY_FILES coming from the vendor tree.
- Any referenced package with Android.mk in the vendor tree must have
  LOCAL_MODULE_OWNER set to a value that's compared against a whitelist
  stored in the core build system.

Change-Id: I172b84c7c853e9a04bf9879ea8dec90bd5054230
2011-12-12 14:17:55 -08:00
Jesse Hall 615d2ffa92 Enable the OpenGL View renderer on the emulator
If the emulator is run without GL acceleration enabled, the OpenGL
renderer will disable itself at runtime.

Change-Id: Ie40c7895120f51bb6a817c2f3cf7fab0a3dda292
2011-12-12 10:07:04 -08:00
The Android Open Source Project cd197842b6 Reconcile with ics-mr1-release
Change-Id: I623e25d55ed00b150729425f710ca52af2de7913
2011-12-12 06:50:16 -08:00
The Android Automerger 00d48ec3e0 IML70C 2011-12-10 21:35:46 -08:00
Bruce Beare 381581613a am 3343b27c: x86: The default ATOM BSP flags need to be in sync with the NDK ABI
* commit '3343b27c534fb4ea238f2feaa0d9346840ee2f92':
  x86: The default ATOM BSP flags need to be in sync with the NDK ABI
2011-12-09 16:21:00 -08:00