Brian Carlstrom | 1aeee8b | 2013-06-27 12:02:46 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2013 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # Provides a functioning ART environment without Android frameworks |
| 18 | |
Igor Murashkin | cda3d10 | 2017-06-15 09:46:58 -0700 | [diff] [blame] | 19 | ifeq ($(TARGET_CORE_JARS),) |
| 20 | $(error TARGET_CORE_JARS is empty; cannot update PRODUCT_PACKAGES variable) |
| 21 | endif |
| 22 | |
Andreas Gampe | 9a3e5ac | 2016-11-17 13:54:49 -0800 | [diff] [blame] | 23 | # Minimal boot classpath. This should be a subset of PRODUCT_BOOT_JARS, and equivalent to |
| 24 | # TARGET_CORE_JARS. |
Brian Carlstrom | 1aeee8b | 2013-06-27 12:02:46 -0700 | [diff] [blame] | 25 | PRODUCT_PACKAGES += \ |
Igor Murashkin | cda3d10 | 2017-06-15 09:46:58 -0700 | [diff] [blame] | 26 | $(TARGET_CORE_JARS) |
Andreas Gampe | 9a3e5ac | 2016-11-17 13:54:49 -0800 | [diff] [blame] | 27 | |
| 28 | # Additional mixins to the boot classpath. |
| 29 | PRODUCT_PACKAGES += \ |
Paul Duffin | 6470f4f | 2016-11-29 12:15:13 +0000 | [diff] [blame] | 30 | legacy-test \ |
Andreas Gampe | 9a3e5ac | 2016-11-17 13:54:49 -0800 | [diff] [blame] | 31 | |
| 32 | # Why are we pulling in ext, which is frameworks/base, depending on tagsoup and nist-sip? |
| 33 | PRODUCT_PACKAGES += \ |
Ying Wang | d54520a | 2014-12-08 14:46:29 -0800 | [diff] [blame] | 34 | ext \ |
Andreas Gampe | 9a3e5ac | 2016-11-17 13:54:49 -0800 | [diff] [blame] | 35 | |
| 36 | # Why are we pulling in expat, which is used in frameworks, only, it seem? |
| 37 | PRODUCT_PACKAGES += \ |
Ying Wang | d54520a | 2014-12-08 14:46:29 -0800 | [diff] [blame] | 38 | libexpat \ |
Andreas Gampe | 9a3e5ac | 2016-11-17 13:54:49 -0800 | [diff] [blame] | 39 | |
| 40 | # Libcore. |
| 41 | PRODUCT_PACKAGES += \ |
Ying Wang | d54520a | 2014-12-08 14:46:29 -0800 | [diff] [blame] | 42 | libjavacore \ |
Piotr Jastrzebski | 89b94c8 | 2015-02-17 16:55:52 +0000 | [diff] [blame] | 43 | libopenjdk \ |
Andreas Gampe | 9a3e5ac | 2016-11-17 13:54:49 -0800 | [diff] [blame] | 44 | |
| 45 | # Libcore ICU. TODO: Try to figure out if/why we need them explicitly. |
| 46 | PRODUCT_PACKAGES += \ |
| 47 | libicui18n \ |
| 48 | libicuuc \ |
| 49 | |
| 50 | # ART. |
Andreas Gampe | ae4916b | 2017-06-22 15:35:14 -0700 | [diff] [blame] | 51 | PRODUCT_PACKAGES += art-runtime |
Andreas Gampe | 9a3e5ac | 2016-11-17 13:54:49 -0800 | [diff] [blame] | 52 | # ART/dex helpers. |
Andreas Gampe | ae4916b | 2017-06-22 15:35:14 -0700 | [diff] [blame] | 53 | PRODUCT_PACKAGES += art-tools |
Andreas Gampe | 9a3e5ac | 2016-11-17 13:54:49 -0800 | [diff] [blame] | 54 | |
| 55 | # Certificates. |
| 56 | PRODUCT_PACKAGES += \ |
| 57 | cacerts \ |
| 58 | |
Mathew Inwood | 0874887 | 2018-02-20 10:56:48 +0000 | [diff] [blame] | 59 | PRODUCT_PACKAGES += \ |
| 60 | hiddenapi-package-whitelist.xml \ |
| 61 | |
Jaekyun Seok | 5fb6a3e | 2017-11-03 15:33:10 +0900 | [diff] [blame] | 62 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Brian Carlstrom | cffe289 | 2014-07-08 10:35:29 -0700 | [diff] [blame] | 63 | dalvik.vm.image-dex2oat-Xms=64m \ |
| 64 | dalvik.vm.image-dex2oat-Xmx=64m \ |
| 65 | dalvik.vm.dex2oat-Xms=64m \ |
| 66 | dalvik.vm.dex2oat-Xmx=512m \ |
Nicolas Geoffray | 56a84e1 | 2015-11-05 16:49:49 +0000 | [diff] [blame] | 67 | dalvik.vm.usejit=true \ |
Mathieu Chartier | b7a044e | 2016-01-28 15:58:02 -0800 | [diff] [blame] | 68 | dalvik.vm.usejitprofiles=true \ |
Calin Juravle | dc308c1 | 2017-02-06 19:03:05 -0800 | [diff] [blame] | 69 | dalvik.vm.dexopt.secondary=true \ |
Mathieu Chartier | b7a044e | 2016-01-28 15:58:02 -0800 | [diff] [blame] | 70 | dalvik.vm.appimageformat=lz4 |
Nicolas Geoffray | 10030bc | 2017-04-25 12:25:33 +0100 | [diff] [blame] | 71 | |
Lev Rumyantsev | be80acf | 2017-08-09 10:57:33 -0700 | [diff] [blame] | 72 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 73 | ro.dalvik.vm.native.bridge=0 |
| 74 | |
Nicolas Geoffray | 10030bc | 2017-04-25 12:25:33 +0100 | [diff] [blame] | 75 | # Different dexopt types for different package update/install times. |
| 76 | # On eng builds, make "boot" reasons only extract for faster turnaround. |
| 77 | ifeq (eng,$(TARGET_BUILD_VARIANT)) |
Jaekyun Seok | 5fb6a3e | 2017-11-03 15:33:10 +0900 | [diff] [blame] | 78 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Nicolas Geoffray | 10030bc | 2017-04-25 12:25:33 +0100 | [diff] [blame] | 79 | pm.dexopt.first-boot=extract \ |
| 80 | pm.dexopt.boot=extract |
| 81 | else |
Jaekyun Seok | 5fb6a3e | 2017-11-03 15:33:10 +0900 | [diff] [blame] | 82 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Nicolas Geoffray | 10030bc | 2017-04-25 12:25:33 +0100 | [diff] [blame] | 83 | pm.dexopt.first-boot=quicken \ |
| 84 | pm.dexopt.boot=verify |
| 85 | endif |
| 86 | |
Calin Juravle | b5dadc3 | 2018-03-28 18:31:51 -0700 | [diff] [blame] | 87 | # The install filter is speed-profile in order to enable the use of |
| 88 | # profiles from the dex metadata files. Note that if a profile is not provided |
| 89 | # or if it is empty speed-profile is equivalent to (quicken + empty app image). |
Jaekyun Seok | 5fb6a3e | 2017-11-03 15:33:10 +0900 | [diff] [blame] | 90 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Calin Juravle | b5dadc3 | 2018-03-28 18:31:51 -0700 | [diff] [blame] | 91 | pm.dexopt.install=speed-profile \ |
Nicolas Geoffray | 10030bc | 2017-04-25 12:25:33 +0100 | [diff] [blame] | 92 | pm.dexopt.bg-dexopt=speed-profile \ |
Shubham Ajmera | c5966a3 | 2017-06-15 13:49:10 -0700 | [diff] [blame] | 93 | pm.dexopt.ab-ota=speed-profile \ |
Calin Juravle | 89836f1 | 2017-09-18 13:05:24 -0700 | [diff] [blame] | 94 | pm.dexopt.inactive=verify \ |
| 95 | pm.dexopt.shared=speed |
Andreas Gampe | 0f3e16a | 2017-11-03 14:37:32 -0700 | [diff] [blame] | 96 | |
| 97 | # Enable minidebuginfo generation unless overridden. |
Jaekyun Seok | 4022ec9 | 2017-11-13 12:08:40 +0900 | [diff] [blame] | 98 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Andreas Gampe | 0f3e16a | 2017-11-03 14:37:32 -0700 | [diff] [blame] | 99 | dalvik.vm.dex2oat-minidebuginfo=true |