Carl Shapiro | 7b21670 | 2011-06-17 15:09:26 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 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 | LOCAL_PATH := $(call my-dir) |
Carl Shapiro | 7b21670 | 2011-06-17 15:09:26 -0700 | [diff] [blame] | 18 | |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 19 | # These can be overridden via the environment or by editing to |
| 20 | # enable/disable certain build configuration. |
| 21 | ART_BUILD_TARGET_NDEBUG ?= true |
| 22 | ART_BUILD_TARGET_DEBUG ?= true |
Brian Carlstrom | 8ce8647 | 2011-12-15 13:50:38 -0800 | [diff] [blame] | 23 | ART_BUILD_HOST_NDEBUG ?= true |
| 24 | ART_BUILD_HOST_DEBUG ?= true |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 25 | |
Carl Shapiro | 0e6d197 | 2011-07-06 19:17:39 -0700 | [diff] [blame] | 26 | build_path := $(LOCAL_PATH)/build |
Brian Carlstrom | cdc8de4 | 2011-07-19 14:23:17 -0700 | [diff] [blame] | 27 | include $(build_path)/Android.common.mk |
| 28 | |
Carl Shapiro | 0e6d197 | 2011-07-06 19:17:39 -0700 | [diff] [blame] | 29 | include $(build_path)/Android.libart.mk |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 30 | include $(build_path)/Android.executable.mk |
Carl Shapiro | 7b21670 | 2011-06-17 15:09:26 -0700 | [diff] [blame] | 31 | |
Brian Carlstrom | 1619286 | 2011-09-12 17:50:06 -0700 | [diff] [blame] | 32 | include $(build_path)/Android.oat.mk |
| 33 | |
Brian Carlstrom | 07d579f | 2011-07-27 13:31:51 -0700 | [diff] [blame] | 34 | include $(build_path)/Android.libarttest.mk |
Brian Carlstrom | bbf1e41 | 2011-09-18 14:14:51 -0700 | [diff] [blame] | 35 | include $(build_path)/Android.gtest.mk |
| 36 | include $(build_path)/Android.oattest.mk |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 37 | |
| 38 | # "m build-art" for quick minimal build |
| 39 | .PHONY: build-art |
| 40 | build-art: \ |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 41 | $(ART_TARGET_EXECUTABLES) \ |
Brian Carlstrom | 8ecd08c | 2011-07-27 17:50:51 -0700 | [diff] [blame] | 42 | $(ART_TARGET_TEST_EXECUTABLES) \ |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 43 | $(ART_HOST_EXECUTABLES) \ |
Carl Shapiro | 47940d6 | 2011-08-13 22:21:30 -0700 | [diff] [blame] | 44 | $(ART_HOST_TEST_EXECUTABLES) |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 45 | |
Brian Carlstrom | 4a96b60 | 2011-07-26 16:40:23 -0700 | [diff] [blame] | 46 | # "mm test-art" to build and run all tests on host and device |
| 47 | .PHONY: test-art |
| 48 | test-art: test-art-host test-art-target |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 49 | @echo test-art PASSED |
Brian Carlstrom | 4a96b60 | 2011-07-26 16:40:23 -0700 | [diff] [blame] | 50 | |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 51 | .PHONY: test-art-gtest |
| 52 | test-art-gtest: test-art-host test-art-target-gtest |
| 53 | @echo test-art-gtest PASSED |
| 54 | |
Elliott Hughes | 2cae5a2 | 2011-08-14 14:27:25 -0700 | [diff] [blame] | 55 | define run-host-tests-with |
Elliott Hughes | b465ab0 | 2011-08-24 11:21:21 -0700 | [diff] [blame] | 56 | $(foreach file,$(sort $(ART_HOST_TEST_EXECUTABLES)),$(1) $(file) &&) true |
Elliott Hughes | 2cae5a2 | 2011-08-14 14:27:25 -0700 | [diff] [blame] | 57 | endef |
| 58 | |
Elliott Hughes | 6cc332e | 2012-01-20 22:59:20 -0800 | [diff] [blame] | 59 | ART_HOST_DEPENDENCIES := $(ART_HOST_EXECUTABLES) $(HOST_OUT_JAVA_LIBRARIES)/core-hostdex.jar |
| 60 | ifeq ($(HOST_OS),linux) |
| 61 | ART_HOST_DEPENDENCIES += $(HOST_OUT_SHARED_LIBRARIES)/libjavacore.so |
| 62 | else |
| 63 | ART_HOST_DEPENDENCIES += $(HOST_OUT_SHARED_LIBRARIES)/libjavacore.dylib |
| 64 | endif |
| 65 | |
| 66 | ART_TARGET_DEPENDENCIES := $(ART_TARGET_EXECUTABLES) $(TARGET_OUT_JAVA_LIBRARIES)/core.jar $(TARGET_OUT_SHARED_LIBRARIES)/libjavacore.so |
Brian Carlstrom | 0796af0 | 2011-10-12 14:31:45 -0700 | [diff] [blame] | 67 | |
Brian Carlstrom | b9cc1ca | 2012-01-27 00:57:42 -0800 | [diff] [blame^] | 68 | ART_HOST_TEST_DEPENDENCIES := $(ART_HOST_DEPENDENCIES) $(ART_HOST_TEST_EXECUTABLES) $(ART_TEST_OAT_FILES) |
| 69 | ART_TARGET_TEST_DEPENDENCIES := $(ART_TARGET_DEPENDENCIES) $(ART_TARGET_TEST_EXECUTABLES) $(ART_TEST_OAT_FILES) |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 70 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 71 | ######################################################################## |
| 72 | # host test targets |
| 73 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 74 | # "mm test-art-host" to build and run all host tests |
| 75 | .PHONY: test-art-host |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 76 | test-art-host: $(ART_HOST_TEST_DEPENDENCIES) $(ART_HOST_TEST_TARGETS) |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 77 | @echo test-art-host PASSED |
Brian Carlstrom | 59848da | 2011-07-23 20:35:19 -0700 | [diff] [blame] | 78 | |
Elliott Hughes | 5511f21 | 2011-08-12 18:07:45 -0700 | [diff] [blame] | 79 | # "mm valgrind-art-host" to build and run all host tests under valgrind. |
| 80 | .PHONY: valgrind-art-host |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 81 | valgrind-art-host: $(ART_HOST_TEST_DEPENDENCIES) |
Elliott Hughes | 4d6850c | 2012-01-18 15:55:06 -0800 | [diff] [blame] | 82 | $(call run-host-tests-with,valgrind --leak-check=full) |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 83 | @echo valgrind-art-host PASSED |
Elliott Hughes | 2cae5a2 | 2011-08-14 14:27:25 -0700 | [diff] [blame] | 84 | |
| 85 | # "mm tsan-art-host" to build and run all host tests under tsan. |
| 86 | .PHONY: tsan-art-host |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 87 | tsan-art-host: $(ART_HOST_TEST_DEPENDENCIES) |
Elliott Hughes | 2cae5a2 | 2011-08-14 14:27:25 -0700 | [diff] [blame] | 88 | $(call run-host-tests-with,"tsan") |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 89 | @echo tsan-art-host PASSED |
Elliott Hughes | 5511f21 | 2011-08-12 18:07:45 -0700 | [diff] [blame] | 90 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 91 | ######################################################################## |
| 92 | # target test targets |
| 93 | |
| 94 | # "mm test-art-target" to build and run all target tests |
Brian Carlstrom | 4a96b60 | 2011-07-26 16:40:23 -0700 | [diff] [blame] | 95 | .PHONY: test-art-target |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 96 | test-art-target: test-art-target-gtest test-art-target-oat test-art-target-run-test |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 97 | @echo test-art-target PASSED |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 98 | |
| 99 | .PHONY: test-art-target-sync |
Brian Carlstrom | b9cc1ca | 2012-01-27 00:57:42 -0800 | [diff] [blame^] | 100 | test-art-target-sync: $(ART_TARGET_TEST_DEPENDENCIES) $(ART_TEST_OUT)/libarttest.so |
Brian Carlstrom | 4a96b60 | 2011-07-26 16:40:23 -0700 | [diff] [blame] | 101 | adb remount |
| 102 | adb sync |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 103 | adb shell mkdir -p $(ART_TEST_DIR) |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 104 | |
| 105 | .PHONY: test-art-target-gtest |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 106 | test-art-target-gtest: $(ART_TARGET_TEST_TARGETS) |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 107 | |
| 108 | .PHONY: test-art-target-oat |
Brian Carlstrom | bbf1e41 | 2011-09-18 14:14:51 -0700 | [diff] [blame] | 109 | test-art-target-oat: $(ART_TEST_OAT_TARGETS) |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 110 | @echo test-art-target-oat PASSED |
Brian Carlstrom | 4a96b60 | 2011-07-26 16:40:23 -0700 | [diff] [blame] | 111 | |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 112 | .PHONY: test-art-target-run-test |
| 113 | test-art-target-run-test: test-art-target-run-test-002 |
| 114 | @echo test-art-target-run-test PASSED |
| 115 | |
| 116 | .PHONY: test-art-target-run-test-002 |
Brian Carlstrom | 58ae941 | 2011-10-04 00:56:06 -0700 | [diff] [blame] | 117 | test-art-target-run-test-002: test-art-target-sync |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 118 | art/test/run-test 002 |
| 119 | @echo test-art-target-run-test-002 PASSED |
| 120 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 121 | ######################################################################## |
Brian Carlstrom | 29e7ac7 | 2011-12-05 23:42:57 -0800 | [diff] [blame] | 122 | # oat test targets |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 123 | |
Brian Carlstrom | a9f1978 | 2011-10-13 00:14:47 -0700 | [diff] [blame] | 124 | # $(1): jar or apk name |
| 125 | define art-cache-oat |
Brian Carlstrom | a6cc893 | 2012-01-04 14:44:07 -0800 | [diff] [blame] | 126 | $(ART_CACHE_OUT)/$(subst /,@,$(1).oat) |
Brian Carlstrom | a9f1978 | 2011-10-13 00:14:47 -0700 | [diff] [blame] | 127 | endef |
| 128 | |
| 129 | ART_CACHE_OATS := |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 130 | # $(1): name |
Brian Carlstrom | a9f1978 | 2011-10-13 00:14:47 -0700 | [diff] [blame] | 131 | define build-art-cache-oat |
| 132 | $(call build-art-oat,$(PRODUCT_OUT)/$(1),$(call art-cache-oat,$(1)),$(TARGET_BOOT_IMG)) |
| 133 | ART_CACHE_OATS += $(call art-cache-oat,$(1)) |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 134 | endef |
| 135 | |
Brian Carlstrom | 29e7ac7 | 2011-12-05 23:42:57 -0800 | [diff] [blame] | 136 | |
Brian Carlstrom | a6cc893 | 2012-01-04 14:44:07 -0800 | [diff] [blame] | 137 | ######################################################################## |
| 138 | # oat-target-sync |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 139 | |
Elliott Hughes | 0dc36d7 | 2011-12-13 19:40:43 -0800 | [diff] [blame] | 140 | ifeq ($(TARGET_PRODUCT),mysid) |
| 141 | |
| 142 | $(eval $(call build-art-cache-oat,system/app/ApplicationsProvider.apk)) |
| 143 | $(eval $(call build-art-cache-oat,system/app/BackupRestoreConfirmation.apk)) |
| 144 | $(eval $(call build-art-cache-oat,system/app/BIP.apk)) |
| 145 | $(eval $(call build-art-cache-oat,system/app/Bluetooth.apk)) |
| 146 | $(eval $(call build-art-cache-oat,system/app/BooksTablet.apk)) |
| 147 | $(eval $(call build-art-cache-oat,system/app/BrowserGoogle.apk)) |
Brian Carlstrom | a6cc893 | 2012-01-04 14:44:07 -0800 | [diff] [blame] | 148 | $(eval $(call build-art-cache-oat,system/app/Calculator.apk)) |
Elliott Hughes | 0dc36d7 | 2011-12-13 19:40:43 -0800 | [diff] [blame] | 149 | $(eval $(call build-art-cache-oat,system/app/CalendarGoogle.apk)) |
| 150 | $(eval $(call build-art-cache-oat,system/app/CalendarProvider.apk)) |
| 151 | $(eval $(call build-art-cache-oat,system/app/CameraGoogle.apk)) |
| 152 | $(eval $(call build-art-cache-oat,system/app/CertInstaller.apk)) |
| 153 | $(eval $(call build-art-cache-oat,system/app/ChromeBookmarksSyncAdapter.apk)) |
| 154 | $(eval $(call build-art-cache-oat,system/app/Contacts.apk)) |
| 155 | $(eval $(call build-art-cache-oat,system/app/ContactsProvider.apk)) |
| 156 | $(eval $(call build-art-cache-oat,system/app/DefaultContainerService.apk)) |
| 157 | $(eval $(call build-art-cache-oat,system/app/DeskClockGoogle.apk)) |
| 158 | $(eval $(call build-art-cache-oat,system/app/Development.apk)) |
| 159 | $(eval $(call build-art-cache-oat,system/app/DownloadProvider.apk)) |
| 160 | $(eval $(call build-art-cache-oat,system/app/DownloadProviderUi.apk)) |
| 161 | $(eval $(call build-art-cache-oat,system/app/DrmProvider.apk)) |
| 162 | $(eval $(call build-art-cache-oat,system/app/EmailGoogle.apk)) |
| 163 | $(eval $(call build-art-cache-oat,system/app/ExchangeGoogle.apk)) |
| 164 | $(eval $(call build-art-cache-oat,system/app/GalleryGoogle.apk)) |
| 165 | $(eval $(call build-art-cache-oat,system/app/GenieWidget.apk)) |
| 166 | $(eval $(call build-art-cache-oat,system/app/Gmail.apk)) |
| 167 | $(eval $(call build-art-cache-oat,system/app/GoogleBackupTransport.apk)) |
| 168 | $(eval $(call build-art-cache-oat,system/app/GoogleContactsSyncAdapter.apk)) |
| 169 | $(eval $(call build-art-cache-oat,system/app/GoogleEarth.apk)) |
| 170 | $(eval $(call build-art-cache-oat,system/app/GoogleFeedback.apk)) |
| 171 | $(eval $(call build-art-cache-oat,system/app/GoogleLoginService.apk)) |
| 172 | $(eval $(call build-art-cache-oat,system/app/GooglePackageVerifier.apk)) |
| 173 | $(eval $(call build-art-cache-oat,system/app/GooglePackageVerifierUpdater.apk)) |
| 174 | $(eval $(call build-art-cache-oat,system/app/GooglePartnerSetup.apk)) |
| 175 | $(eval $(call build-art-cache-oat,system/app/GoogleQuickSearchBox.apk)) |
| 176 | $(eval $(call build-art-cache-oat,system/app/GoogleServicesFramework.apk)) |
| 177 | $(eval $(call build-art-cache-oat,system/app/GoogleTTS.apk)) |
| 178 | $(eval $(call build-art-cache-oat,system/app/HTMLViewer.apk)) |
| 179 | $(eval $(call build-art-cache-oat,system/app/IMSFramework.apk)) |
| 180 | $(eval $(call build-art-cache-oat,system/app/HoloSpiralWallpaper.apk)) |
| 181 | $(eval $(call build-art-cache-oat,system/app/KeyChain.apk)) |
| 182 | $(eval $(call build-art-cache-oat,system/app/LatinImeDictionaryPack.apk)) |
| 183 | $(eval $(call build-art-cache-oat,system/app/LatinImeGoogle.apk)) |
| 184 | $(eval $(call build-art-cache-oat,system/app/Launcher2.apk)) |
| 185 | $(eval $(call build-art-cache-oat,system/app/LiveWallpapers.apk)) |
| 186 | $(eval $(call build-art-cache-oat,system/app/LiveWallpapersPicker.apk)) |
| 187 | $(eval $(call build-art-cache-oat,system/app/Maps.apk)) |
| 188 | $(eval $(call build-art-cache-oat,system/app/MarketUpdater.apk)) |
| 189 | $(eval $(call build-art-cache-oat,system/app/MediaProvider.apk)) |
| 190 | $(eval $(call build-art-cache-oat,system/app/MediaUploader.apk)) |
| 191 | $(eval $(call build-art-cache-oat,system/app/Microbes.apk)) |
| 192 | $(eval $(call build-art-cache-oat,system/app/Mms.apk)) |
| 193 | $(eval $(call build-art-cache-oat,system/app/Music2.apk)) |
| 194 | $(eval $(call build-art-cache-oat,system/app/MusicFX.apk)) |
| 195 | $(eval $(call build-art-cache-oat,system/app/MyVerizon.apk)) |
| 196 | $(eval $(call build-art-cache-oat,system/app/NetSpeed.apk)) |
| 197 | $(eval $(call build-art-cache-oat,system/app/NetworkLocation.apk)) |
| 198 | $(eval $(call build-art-cache-oat,system/app/Nfc.apk)) |
| 199 | $(eval $(call build-art-cache-oat,system/app/OneTimeInitializer.apk)) |
| 200 | $(eval $(call build-art-cache-oat,system/app/PackageInstaller.apk)) |
| 201 | $(eval $(call build-art-cache-oat,system/app/Phone.apk)) |
| 202 | $(eval $(call build-art-cache-oat,system/app/Phonesky.apk)) |
| 203 | $(eval $(call build-art-cache-oat,system/app/PlusOne.apk)) |
| 204 | $(eval $(call build-art-cache-oat,system/app/RTN.apk)) |
| 205 | $(eval $(call build-art-cache-oat,system/app/SDM.apk)) |
| 206 | $(eval $(call build-art-cache-oat,system/app/Settings.apk)) |
| 207 | $(eval $(call build-art-cache-oat,system/app/SettingsProvider.apk)) |
| 208 | $(eval $(call build-art-cache-oat,system/app/SetupWizard.apk)) |
| 209 | $(eval $(call build-art-cache-oat,system/app/SharedStorageBackup.apk)) |
| 210 | $(eval $(call build-art-cache-oat,system/app/SoundRecorder.apk)) |
| 211 | $(eval $(call build-art-cache-oat,system/app/SpeechRecorder.apk)) |
| 212 | $(eval $(call build-art-cache-oat,system/app/SPG.apk)) |
| 213 | $(eval $(call build-art-cache-oat,system/app/StingrayProgramMenu.apk)) |
| 214 | $(eval $(call build-art-cache-oat,system/app/StingrayProgramMenuSystem.apk)) |
| 215 | $(eval $(call build-art-cache-oat,system/app/Stk.apk)) |
| 216 | $(eval $(call build-art-cache-oat,system/app/Street.apk)) |
| 217 | $(eval $(call build-art-cache-oat,system/app/SyncMLSvc.apk)) |
| 218 | $(eval $(call build-art-cache-oat,system/app/SystemUI.apk)) |
| 219 | $(eval $(call build-art-cache-oat,system/app/TagGoogle.apk)) |
| 220 | $(eval $(call build-art-cache-oat,system/app/Talk.apk)) |
| 221 | $(eval $(call build-art-cache-oat,system/app/TelephonyProvider.apk)) |
| 222 | $(eval $(call build-art-cache-oat,system/app/Thinkfree.apk)) |
| 223 | $(eval $(call build-art-cache-oat,system/app/UserDictionaryProvider.apk)) |
| 224 | $(eval $(call build-art-cache-oat,system/app/VerizonSSO.apk)) |
| 225 | $(eval $(call build-art-cache-oat,system/app/VideoEditorGoogle.apk)) |
| 226 | $(eval $(call build-art-cache-oat,system/app/Videos.apk)) |
| 227 | $(eval $(call build-art-cache-oat,system/app/VisualizationWallpapers.apk)) |
| 228 | $(eval $(call build-art-cache-oat,system/app/VoiceDialer.apk)) |
| 229 | $(eval $(call build-art-cache-oat,system/app/VoiceSearch.apk)) |
| 230 | $(eval $(call build-art-cache-oat,system/app/VpnDialogs.apk)) |
| 231 | $(eval $(call build-art-cache-oat,system/app/VZWAPNLib.apk)) |
| 232 | $(eval $(call build-art-cache-oat,system/app/VZWAPNService.apk)) |
| 233 | $(eval $(call build-art-cache-oat,system/app/VZWBackupAssistant.apk)) |
| 234 | $(eval $(call build-art-cache-oat,system/app/YouTube.apk)) |
| 235 | $(eval $(call build-art-cache-oat,system/app/talkback.apk)) |
Brian Carlstrom | a6cc893 | 2012-01-04 14:44:07 -0800 | [diff] [blame] | 236 | $(eval $(call build-art-cache-oat,system/framework/am.jar)) |
Elliott Hughes | 0dc36d7 | 2011-12-13 19:40:43 -0800 | [diff] [blame] | 237 | $(eval $(call build-art-cache-oat,system/framework/android.test.runner.jar)) |
| 238 | $(eval $(call build-art-cache-oat,system/framework/bmgr.jar)) |
| 239 | $(eval $(call build-art-cache-oat,system/framework/bu.jar)) |
| 240 | $(eval $(call build-art-cache-oat,system/framework/com.android.future.usb.accessory.jar)) |
| 241 | $(eval $(call build-art-cache-oat,system/framework/com.android.location.provider.jar)) |
| 242 | $(eval $(call build-art-cache-oat,system/framework/com.android.nfc_extras.jar)) |
| 243 | $(eval $(call build-art-cache-oat,system/framework/com.google.android.maps.jar)) |
| 244 | $(eval $(call build-art-cache-oat,system/framework/com.google.android.media.effects.jar)) |
Elliott Hughes | 0dc36d7 | 2011-12-13 19:40:43 -0800 | [diff] [blame] | 245 | $(eval $(call build-art-cache-oat,system/framework/ime.jar)) |
| 246 | $(eval $(call build-art-cache-oat,system/framework/input.jar)) |
| 247 | $(eval $(call build-art-cache-oat,system/framework/javax.obex.jar)) |
| 248 | $(eval $(call build-art-cache-oat,system/framework/monkey.jar)) |
| 249 | $(eval $(call build-art-cache-oat,system/framework/pm.jar)) |
| 250 | $(eval $(call build-art-cache-oat,system/framework/send_bug.jar)) |
| 251 | $(eval $(call build-art-cache-oat,system/framework/svc.jar)) |
| 252 | |
| 253 | else |
| 254 | |
Shih-wei Liao | c74a697 | 2011-12-22 20:16:42 -0800 | [diff] [blame] | 255 | ifeq ($(TARGET_PRODUCT),$(filter $(TARGET_PRODUCT),soju sojus)) |
Elliott Hughes | 0dc36d7 | 2011-12-13 19:40:43 -0800 | [diff] [blame] | 256 | |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 257 | $(eval $(call build-art-cache-oat,system/app/ApplicationsProvider.apk)) |
| 258 | $(eval $(call build-art-cache-oat,system/app/BackupRestoreConfirmation.apk)) |
| 259 | $(eval $(call build-art-cache-oat,system/app/Bluetooth.apk)) |
| 260 | $(eval $(call build-art-cache-oat,system/app/BooksTablet.apk)) |
Brian Carlstrom | 41df065 | 2011-11-10 10:35:05 -0800 | [diff] [blame] | 261 | $(eval $(call build-art-cache-oat,system/app/BrowserGoogle.apk)) |
Brian Carlstrom | a6cc893 | 2012-01-04 14:44:07 -0800 | [diff] [blame] | 262 | $(eval $(call build-art-cache-oat,system/app/Calculator.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 263 | $(eval $(call build-art-cache-oat,system/app/CalendarGoogle.apk)) |
| 264 | $(eval $(call build-art-cache-oat,system/app/CalendarProvider.apk)) |
Brian Carlstrom | 41df065 | 2011-11-10 10:35:05 -0800 | [diff] [blame] | 265 | $(eval $(call build-art-cache-oat,system/app/CameraGoogle.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 266 | $(eval $(call build-art-cache-oat,system/app/CarHomeGoogle.apk)) |
| 267 | $(eval $(call build-art-cache-oat,system/app/CertInstaller.apk)) |
| 268 | $(eval $(call build-art-cache-oat,system/app/ChromeBookmarksSyncAdapter.apk)) |
| 269 | $(eval $(call build-art-cache-oat,system/app/Contacts.apk)) |
| 270 | $(eval $(call build-art-cache-oat,system/app/ContactsProvider.apk)) |
| 271 | $(eval $(call build-art-cache-oat,system/app/DefaultContainerService.apk)) |
| 272 | $(eval $(call build-art-cache-oat,system/app/DeskClockGoogle.apk)) |
| 273 | $(eval $(call build-art-cache-oat,system/app/Development.apk)) |
| 274 | $(eval $(call build-art-cache-oat,system/app/DownloadProvider.apk)) |
| 275 | $(eval $(call build-art-cache-oat,system/app/DownloadProviderUi.apk)) |
| 276 | $(eval $(call build-art-cache-oat,system/app/DrmProvider.apk)) |
| 277 | $(eval $(call build-art-cache-oat,system/app/EmailGoogle.apk)) |
| 278 | $(eval $(call build-art-cache-oat,system/app/ExchangeGoogle.apk)) |
| 279 | $(eval $(call build-art-cache-oat,system/app/GalleryGoogle.apk)) |
| 280 | $(eval $(call build-art-cache-oat,system/app/GenieWidget.apk)) |
| 281 | $(eval $(call build-art-cache-oat,system/app/Gmail.apk)) |
| 282 | $(eval $(call build-art-cache-oat,system/app/GoogleBackupTransport.apk)) |
| 283 | $(eval $(call build-art-cache-oat,system/app/GoogleContactsSyncAdapter.apk)) |
| 284 | $(eval $(call build-art-cache-oat,system/app/GoogleEarth.apk)) |
| 285 | $(eval $(call build-art-cache-oat,system/app/GoogleFeedback.apk)) |
| 286 | $(eval $(call build-art-cache-oat,system/app/GoogleLoginService.apk)) |
| 287 | $(eval $(call build-art-cache-oat,system/app/GooglePackageVerifier.apk)) |
Brian Carlstrom | 41df065 | 2011-11-10 10:35:05 -0800 | [diff] [blame] | 288 | $(eval $(call build-art-cache-oat,system/app/GooglePackageVerifierUpdater.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 289 | $(eval $(call build-art-cache-oat,system/app/GooglePartnerSetup.apk)) |
| 290 | $(eval $(call build-art-cache-oat,system/app/GoogleQuickSearchBox.apk)) |
| 291 | $(eval $(call build-art-cache-oat,system/app/GoogleServicesFramework.apk)) |
Brian Carlstrom | 41df065 | 2011-11-10 10:35:05 -0800 | [diff] [blame] | 292 | $(eval $(call build-art-cache-oat,system/app/GoogleTTS.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 293 | $(eval $(call build-art-cache-oat,system/app/HTMLViewer.apk)) |
Brian Carlstrom | 41df065 | 2011-11-10 10:35:05 -0800 | [diff] [blame] | 294 | $(eval $(call build-art-cache-oat,system/app/HoloSpiralWallpaper.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 295 | $(eval $(call build-art-cache-oat,system/app/KeyChain.apk)) |
| 296 | $(eval $(call build-art-cache-oat,system/app/LatinImeDictionaryPack.apk)) |
| 297 | $(eval $(call build-art-cache-oat,system/app/LatinImeGoogle.apk)) |
| 298 | $(eval $(call build-art-cache-oat,system/app/Launcher2.apk)) |
| 299 | $(eval $(call build-art-cache-oat,system/app/LiveWallpapers.apk)) |
| 300 | $(eval $(call build-art-cache-oat,system/app/LiveWallpapersPicker.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 301 | $(eval $(call build-art-cache-oat,system/app/Maps.apk)) |
Brian Carlstrom | 41df065 | 2011-11-10 10:35:05 -0800 | [diff] [blame] | 302 | $(eval $(call build-art-cache-oat,system/app/MarketUpdater.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 303 | $(eval $(call build-art-cache-oat,system/app/MediaProvider.apk)) |
| 304 | $(eval $(call build-art-cache-oat,system/app/MediaUploader.apk)) |
| 305 | $(eval $(call build-art-cache-oat,system/app/Microbes.apk)) |
| 306 | $(eval $(call build-art-cache-oat,system/app/Mms.apk)) |
| 307 | $(eval $(call build-art-cache-oat,system/app/Music2.apk)) |
| 308 | $(eval $(call build-art-cache-oat,system/app/MusicFX.apk)) |
| 309 | $(eval $(call build-art-cache-oat,system/app/NetSpeed.apk)) |
| 310 | $(eval $(call build-art-cache-oat,system/app/NetworkLocation.apk)) |
Brian Carlstrom | ae82698 | 2011-11-09 01:33:42 -0800 | [diff] [blame] | 311 | $(eval $(call build-art-cache-oat,system/app/Nfc.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 312 | $(eval $(call build-art-cache-oat,system/app/OneTimeInitializer.apk)) |
| 313 | $(eval $(call build-art-cache-oat,system/app/PackageInstaller.apk)) |
| 314 | $(eval $(call build-art-cache-oat,system/app/Phone.apk)) |
| 315 | $(eval $(call build-art-cache-oat,system/app/Phonesky.apk)) |
Brian Carlstrom | 41df065 | 2011-11-10 10:35:05 -0800 | [diff] [blame] | 316 | $(eval $(call build-art-cache-oat,system/app/PlusOne.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 317 | $(eval $(call build-art-cache-oat,system/app/Settings.apk)) |
| 318 | $(eval $(call build-art-cache-oat,system/app/SettingsProvider.apk)) |
| 319 | $(eval $(call build-art-cache-oat,system/app/SetupWizard.apk)) |
Brian Carlstrom | 41df065 | 2011-11-10 10:35:05 -0800 | [diff] [blame] | 320 | $(eval $(call build-art-cache-oat,system/app/SharedStorageBackup.apk)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 321 | $(eval $(call build-art-cache-oat,system/app/SoundRecorder.apk)) |
| 322 | $(eval $(call build-art-cache-oat,system/app/SpeechRecorder.apk)) |
| 323 | $(eval $(call build-art-cache-oat,system/app/StingrayProgramMenu.apk)) |
| 324 | $(eval $(call build-art-cache-oat,system/app/StingrayProgramMenuSystem.apk)) |
| 325 | $(eval $(call build-art-cache-oat,system/app/Street.apk)) |
| 326 | $(eval $(call build-art-cache-oat,system/app/SystemUI.apk)) |
| 327 | $(eval $(call build-art-cache-oat,system/app/TagGoogle.apk)) |
| 328 | $(eval $(call build-art-cache-oat,system/app/Talk.apk)) |
| 329 | $(eval $(call build-art-cache-oat,system/app/TelephonyProvider.apk)) |
| 330 | $(eval $(call build-art-cache-oat,system/app/Thinkfree.apk)) |
| 331 | $(eval $(call build-art-cache-oat,system/app/UserDictionaryProvider.apk)) |
| 332 | $(eval $(call build-art-cache-oat,system/app/VideoEditorGoogle.apk)) |
| 333 | $(eval $(call build-art-cache-oat,system/app/Videos.apk)) |
| 334 | $(eval $(call build-art-cache-oat,system/app/VisualizationWallpapers.apk)) |
| 335 | $(eval $(call build-art-cache-oat,system/app/VoiceDialer.apk)) |
| 336 | $(eval $(call build-art-cache-oat,system/app/VoiceSearch.apk)) |
| 337 | $(eval $(call build-art-cache-oat,system/app/VpnDialogs.apk)) |
| 338 | $(eval $(call build-art-cache-oat,system/app/YouTube.apk)) |
| 339 | $(eval $(call build-art-cache-oat,system/app/googlevoice.apk)) |
| 340 | $(eval $(call build-art-cache-oat,system/app/talkback.apk)) |
Brian Carlstrom | a6cc893 | 2012-01-04 14:44:07 -0800 | [diff] [blame] | 341 | $(eval $(call build-art-cache-oat,system/framework/am.jar)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 342 | $(eval $(call build-art-cache-oat,system/framework/android.test.runner.jar)) |
| 343 | $(eval $(call build-art-cache-oat,system/framework/bmgr.jar)) |
| 344 | $(eval $(call build-art-cache-oat,system/framework/bu.jar)) |
| 345 | $(eval $(call build-art-cache-oat,system/framework/com.android.future.usb.accessory.jar)) |
| 346 | $(eval $(call build-art-cache-oat,system/framework/com.android.location.provider.jar)) |
| 347 | $(eval $(call build-art-cache-oat,system/framework/com.android.nfc_extras.jar)) |
| 348 | $(eval $(call build-art-cache-oat,system/framework/com.google.android.maps.jar)) |
| 349 | $(eval $(call build-art-cache-oat,system/framework/com.google.android.media.effects.jar)) |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 350 | $(eval $(call build-art-cache-oat,system/framework/ime.jar)) |
| 351 | $(eval $(call build-art-cache-oat,system/framework/input.jar)) |
| 352 | $(eval $(call build-art-cache-oat,system/framework/javax.obex.jar)) |
| 353 | $(eval $(call build-art-cache-oat,system/framework/monkey.jar)) |
| 354 | $(eval $(call build-art-cache-oat,system/framework/pm.jar)) |
| 355 | $(eval $(call build-art-cache-oat,system/framework/send_bug.jar)) |
| 356 | $(eval $(call build-art-cache-oat,system/framework/svc.jar)) |
Elliott Hughes | 0dc36d7 | 2011-12-13 19:40:43 -0800 | [diff] [blame] | 357 | |
| 358 | else |
| 359 | |
Elliott Hughes | 42298fa | 2011-12-13 20:49:29 -0800 | [diff] [blame] | 360 | $(warning do not know what jars to compile for $(TARGET_PRODUCT)) |
Elliott Hughes | 0dc36d7 | 2011-12-13 19:40:43 -0800 | [diff] [blame] | 361 | |
| 362 | endif |
| 363 | |
Ian Rogers | f8a199c | 2011-11-03 17:16:02 -0700 | [diff] [blame] | 364 | endif |
| 365 | |
Brian Carlstrom | a6cc893 | 2012-01-04 14:44:07 -0800 | [diff] [blame] | 366 | .PHONY: oat-target-sync |
| 367 | oat-target-sync: $(ART_TARGET_DEPENDENCIES) $(TARGET_BOOT_OAT) $(ART_CACHE_OATS) |
Brian Carlstrom | 0796af0 | 2011-10-12 14:31:45 -0700 | [diff] [blame] | 368 | adb remount |
| 369 | adb sync |
| 370 | |
Brian Carlstrom | 76aa0c0 | 2011-10-11 15:29:43 -0700 | [diff] [blame] | 371 | ######################################################################## |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 372 | # oatdump targets |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 373 | |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 374 | .PHONY: dump-oat |
Brian Carlstrom | 03a20ba | 2011-10-13 10:24:13 -0700 | [diff] [blame] | 375 | dump-oat: dump-oat-core dump-oat-boot dump-oat-Calculator |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 376 | |
Brian Carlstrom | e10b697 | 2011-09-26 13:49:03 -0700 | [diff] [blame] | 377 | .PHONY: dump-oat-core |
| 378 | dump-oat-core: $(TARGET_CORE_OAT) $(OATDUMP) |
Brian Carlstrom | 58ae941 | 2011-10-04 00:56:06 -0700 | [diff] [blame] | 379 | $(OATDUMP) --image=$(TARGET_CORE_IMG) --host-prefix=$(PRODUCT_OUT) --output=/tmp/core.oatdump.txt |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 380 | @echo Output in /tmp/core.oatdump.txt |
| 381 | |
Brian Carlstrom | e10b697 | 2011-09-26 13:49:03 -0700 | [diff] [blame] | 382 | .PHONY: dump-oat-boot |
| 383 | dump-oat-boot: $(TARGET_BOOT_OAT) $(OATDUMP) |
Brian Carlstrom | 58ae941 | 2011-10-04 00:56:06 -0700 | [diff] [blame] | 384 | $(OATDUMP) --image=$(TARGET_BOOT_IMG) --host-prefix=$(PRODUCT_OUT) --output=/tmp/boot.oatdump.txt |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 385 | @echo Output in /tmp/boot.oatdump.txt |
Brian Carlstrom | 78128a6 | 2011-09-15 17:21:19 -0700 | [diff] [blame] | 386 | |
Brian Carlstrom | e10b697 | 2011-09-26 13:49:03 -0700 | [diff] [blame] | 387 | .PHONY: dump-oat-Calculator |
Brian Carlstrom | a6cc893 | 2012-01-04 14:44:07 -0800 | [diff] [blame] | 388 | dump-oat-Calculator: $(call art-cache-oat,system/app/Calculator.apk) $(TARGET_BOOT_OAT) $(OATDUMP) |
| 389 | $(OATDUMP) --oat-file=$< --boot-image=$(TARGET_BOOT_IMG) --host-prefix=$(PRODUCT_OUT) --output=/tmp/Calculator.oatdump.txt |
Brian Carlstrom | e10b697 | 2011-09-26 13:49:03 -0700 | [diff] [blame] | 390 | @echo Output in /tmp/Calculator.oatdump.txt |
| 391 | |
| 392 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 393 | ######################################################################## |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 394 | # clean-oat target |
| 395 | # |
| 396 | |
| 397 | .PHONY: clean-oat |
| 398 | clean-oat: |
| 399 | rm -f $(ART_TEST_OUT)/*.oat |
Elliott Hughes | 55124a5 | 2011-12-08 15:52:52 -0800 | [diff] [blame] | 400 | rm -f $(ART_TEST_OUT)/*.art |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 401 | rm -f $(ART_CACHE_OUT)/*.oat |
Elliott Hughes | 55124a5 | 2011-12-08 15:52:52 -0800 | [diff] [blame] | 402 | rm -f $(ART_CACHE_OUT)/*.art |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 403 | adb shell rm $(ART_TEST_DIR)/*.oat |
Elliott Hughes | 55124a5 | 2011-12-08 15:52:52 -0800 | [diff] [blame] | 404 | adb shell rm $(ART_TEST_DIR)/*.art |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 405 | adb shell rm $(ART_CACHE_DIR)/*.oat |
Elliott Hughes | 55124a5 | 2011-12-08 15:52:52 -0800 | [diff] [blame] | 406 | adb shell rm $(ART_CACHE_DIR)/*.art |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 407 | |
| 408 | ######################################################################## |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 409 | # cpplint target |
| 410 | |
Brian Carlstrom | 59848da | 2011-07-23 20:35:19 -0700 | [diff] [blame] | 411 | # "mm cpplint-art" to style check art source files |
| 412 | .PHONY: cpplint-art |
| 413 | cpplint-art: |
Elliott Hughes | a51a3dd | 2011-10-17 15:19:26 -0700 | [diff] [blame] | 414 | ./art/tools/cpplint.py \ |
| 415 | --filter=-whitespace/comments,-whitespace/line_length,-build/include,-build/header_guard,-readability/streams,-readability/todo,-runtime/references \ |
Elliott Hughes | 362f9bc | 2011-10-17 18:56:41 -0700 | [diff] [blame] | 416 | $(ANDROID_BUILD_TOP)/art/src/*.h $(ANDROID_BUILD_TOP)/art/src/*.cc |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 417 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 418 | ######################################################################## |
| 419 | |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 420 | include $(call all-makefiles-under,$(LOCAL_PATH)) |