blob: 7ddaa37cbe6440d28c3b2b2037d743f6dee0f916 [file] [log] [blame]
Carl Shapiro7b216702011-06-17 15:09:26 -07001#
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
17LOCAL_PATH := $(call my-dir)
Carl Shapiro7b216702011-06-17 15:09:26 -070018
Brian Carlstrom4b620ff2011-09-11 01:11:01 -070019# These can be overridden via the environment or by editing to
20# enable/disable certain build configuration.
21ART_BUILD_TARGET_NDEBUG ?= true
22ART_BUILD_TARGET_DEBUG ?= true
Brian Carlstrom8ce86472011-12-15 13:50:38 -080023ART_BUILD_HOST_NDEBUG ?= true
24ART_BUILD_HOST_DEBUG ?= true
Brian Carlstrom4b620ff2011-09-11 01:11:01 -070025
Carl Shapiro0e6d1972011-07-06 19:17:39 -070026build_path := $(LOCAL_PATH)/build
Brian Carlstromcdc8de42011-07-19 14:23:17 -070027include $(build_path)/Android.common.mk
28
Carl Shapiro0e6d1972011-07-06 19:17:39 -070029include $(build_path)/Android.libart.mk
Brian Carlstrom69b15fb2011-09-03 12:25:21 -070030include $(build_path)/Android.executable.mk
Carl Shapiro7b216702011-06-17 15:09:26 -070031
Brian Carlstrom16192862011-09-12 17:50:06 -070032include $(build_path)/Android.oat.mk
33
Brian Carlstrom07d579f2011-07-27 13:31:51 -070034include $(build_path)/Android.libarttest.mk
Brian Carlstrombbf1e412011-09-18 14:14:51 -070035include $(build_path)/Android.gtest.mk
36include $(build_path)/Android.oattest.mk
Brian Carlstrom934486c2011-07-12 23:42:50 -070037
38# "m build-art" for quick minimal build
39.PHONY: build-art
40build-art: \
Brian Carlstrom69b15fb2011-09-03 12:25:21 -070041 $(ART_TARGET_EXECUTABLES) \
Brian Carlstrom8ecd08c2011-07-27 17:50:51 -070042 $(ART_TARGET_TEST_EXECUTABLES) \
Brian Carlstrom69b15fb2011-09-03 12:25:21 -070043 $(ART_HOST_EXECUTABLES) \
Carl Shapiro47940d62011-08-13 22:21:30 -070044 $(ART_HOST_TEST_EXECUTABLES)
Brian Carlstrom934486c2011-07-12 23:42:50 -070045
Brian Carlstrom4a96b602011-07-26 16:40:23 -070046# "mm test-art" to build and run all tests on host and device
47.PHONY: test-art
48test-art: test-art-host test-art-target
Brian Carlstrom395520e2011-09-25 19:35:00 -070049 @echo test-art PASSED
Brian Carlstrom4a96b602011-07-26 16:40:23 -070050
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -070051.PHONY: test-art-gtest
52test-art-gtest: test-art-host test-art-target-gtest
53 @echo test-art-gtest PASSED
54
Elliott Hughes2cae5a22011-08-14 14:27:25 -070055define run-host-tests-with
Elliott Hughesb465ab02011-08-24 11:21:21 -070056 $(foreach file,$(sort $(ART_HOST_TEST_EXECUTABLES)),$(1) $(file) &&) true
Elliott Hughes2cae5a22011-08-14 14:27:25 -070057endef
58
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -070059ART_HOST_DEPENDENCIES := $(ART_HOST_EXECUTABLES) $(HOST_OUT_JAVA_LIBRARIES)/core-hostdex.jar
60ART_TARGET_DEPENDENCIES := $(ART_TARGET_EXECUTABLES) $(TARGET_OUT_JAVA_LIBRARIES)/core.jar
Brian Carlstrom0796af02011-10-12 14:31:45 -070061
62ART_HOST_TEST_DEPENDENCIES := $(ART_HOST_DEPENDENCIES) $(ART_TEST_OAT_FILES)
63ART_TARGET_TEST_DEPENDENCIES := $(ART_TARGET_DEPENDENCIES) $(ART_TEST_OAT_FILES)
Brian Carlstrom9f30b382011-08-28 22:41:38 -070064
Brian Carlstrombc2f3e32011-09-22 17:16:54 -070065########################################################################
66# host test targets
67
Brian Carlstrom934486c2011-07-12 23:42:50 -070068# "mm test-art-host" to build and run all host tests
69.PHONY: test-art-host
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -070070test-art-host: $(ART_HOST_TEST_DEPENDENCIES) $(ART_HOST_TEST_TARGETS)
Brian Carlstrom395520e2011-09-25 19:35:00 -070071 @echo test-art-host PASSED
Brian Carlstrom59848da2011-07-23 20:35:19 -070072
Elliott Hughes5511f212011-08-12 18:07:45 -070073# "mm valgrind-art-host" to build and run all host tests under valgrind.
74.PHONY: valgrind-art-host
Brian Carlstrom9f30b382011-08-28 22:41:38 -070075valgrind-art-host: $(ART_HOST_TEST_DEPENDENCIES)
Elliott Hughes2cae5a22011-08-14 14:27:25 -070076 $(call run-host-tests-with,"valgrind")
Brian Carlstrom395520e2011-09-25 19:35:00 -070077 @echo valgrind-art-host PASSED
Elliott Hughes2cae5a22011-08-14 14:27:25 -070078
79# "mm tsan-art-host" to build and run all host tests under tsan.
80.PHONY: tsan-art-host
Brian Carlstrom9f30b382011-08-28 22:41:38 -070081tsan-art-host: $(ART_HOST_TEST_DEPENDENCIES)
Elliott Hughes2cae5a22011-08-14 14:27:25 -070082 $(call run-host-tests-with,"tsan")
Brian Carlstrom395520e2011-09-25 19:35:00 -070083 @echo tsan-art-host PASSED
Elliott Hughes5511f212011-08-12 18:07:45 -070084
Brian Carlstrombc2f3e32011-09-22 17:16:54 -070085########################################################################
86# target test targets
87
88# "mm test-art-target" to build and run all target tests
Brian Carlstrom4a96b602011-07-26 16:40:23 -070089.PHONY: test-art-target
Brian Carlstrome24fa612011-09-29 00:53:55 -070090test-art-target: test-art-target-gtest test-art-target-oat test-art-target-run-test
Brian Carlstrom395520e2011-09-25 19:35:00 -070091 @echo test-art-target PASSED
Brian Carlstrom86927212011-09-15 11:31:11 -070092
93.PHONY: test-art-target-sync
94test-art-target-sync: $(ART_TARGET_TEST_DEPENDENCIES)
Brian Carlstrom4a96b602011-07-26 16:40:23 -070095 adb remount
96 adb sync
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -070097 adb shell mkdir -p $(ART_TEST_DIR)
Brian Carlstrom86927212011-09-15 11:31:11 -070098
99.PHONY: test-art-target-gtest
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -0700100test-art-target-gtest: $(ART_TARGET_TEST_TARGETS)
Brian Carlstrom86927212011-09-15 11:31:11 -0700101
102.PHONY: test-art-target-oat
Brian Carlstrombbf1e412011-09-18 14:14:51 -0700103test-art-target-oat: $(ART_TEST_OAT_TARGETS)
Brian Carlstrom395520e2011-09-25 19:35:00 -0700104 @echo test-art-target-oat PASSED
Brian Carlstrom4a96b602011-07-26 16:40:23 -0700105
Brian Carlstrome24fa612011-09-29 00:53:55 -0700106.PHONY: test-art-target-run-test
107test-art-target-run-test: test-art-target-run-test-002
108 @echo test-art-target-run-test PASSED
109
110.PHONY: test-art-target-run-test-002
Brian Carlstrom58ae9412011-10-04 00:56:06 -0700111test-art-target-run-test-002: test-art-target-sync
Brian Carlstrome24fa612011-09-29 00:53:55 -0700112 art/test/run-test 002
113 @echo test-art-target-run-test-002 PASSED
114
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700115########################################################################
Brian Carlstrom29e7ac72011-12-05 23:42:57 -0800116# oat test targets
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700117
Brian Carlstroma9f19782011-10-13 00:14:47 -0700118# $(1): jar or apk name
119define art-cache-oat
Brian Carlstroma6cc8932012-01-04 14:44:07 -0800120 $(ART_CACHE_OUT)/$(subst /,@,$(1).oat)
Brian Carlstroma9f19782011-10-13 00:14:47 -0700121endef
122
123ART_CACHE_OATS :=
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700124# $(1): name
Brian Carlstroma9f19782011-10-13 00:14:47 -0700125define build-art-cache-oat
126 $(call build-art-oat,$(PRODUCT_OUT)/$(1),$(call art-cache-oat,$(1)),$(TARGET_BOOT_IMG))
127 ART_CACHE_OATS += $(call art-cache-oat,$(1))
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700128endef
129
Brian Carlstrom29e7ac72011-12-05 23:42:57 -0800130
Brian Carlstroma6cc8932012-01-04 14:44:07 -0800131########################################################################
132# oat-target-sync
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700133
Elliott Hughes0dc36d72011-12-13 19:40:43 -0800134ifeq ($(TARGET_PRODUCT),mysid)
135
136$(eval $(call build-art-cache-oat,system/app/ApplicationsProvider.apk))
137$(eval $(call build-art-cache-oat,system/app/BackupRestoreConfirmation.apk))
138$(eval $(call build-art-cache-oat,system/app/BIP.apk))
139$(eval $(call build-art-cache-oat,system/app/Bluetooth.apk))
140$(eval $(call build-art-cache-oat,system/app/BooksTablet.apk))
141$(eval $(call build-art-cache-oat,system/app/BrowserGoogle.apk))
Brian Carlstroma6cc8932012-01-04 14:44:07 -0800142$(eval $(call build-art-cache-oat,system/app/Calculator.apk))
Elliott Hughes0dc36d72011-12-13 19:40:43 -0800143$(eval $(call build-art-cache-oat,system/app/CalendarGoogle.apk))
144$(eval $(call build-art-cache-oat,system/app/CalendarProvider.apk))
145$(eval $(call build-art-cache-oat,system/app/CameraGoogle.apk))
146$(eval $(call build-art-cache-oat,system/app/CertInstaller.apk))
147$(eval $(call build-art-cache-oat,system/app/ChromeBookmarksSyncAdapter.apk))
148$(eval $(call build-art-cache-oat,system/app/Contacts.apk))
149$(eval $(call build-art-cache-oat,system/app/ContactsProvider.apk))
150$(eval $(call build-art-cache-oat,system/app/DefaultContainerService.apk))
151$(eval $(call build-art-cache-oat,system/app/DeskClockGoogle.apk))
152$(eval $(call build-art-cache-oat,system/app/Development.apk))
153$(eval $(call build-art-cache-oat,system/app/DownloadProvider.apk))
154$(eval $(call build-art-cache-oat,system/app/DownloadProviderUi.apk))
155$(eval $(call build-art-cache-oat,system/app/DrmProvider.apk))
156$(eval $(call build-art-cache-oat,system/app/EmailGoogle.apk))
157$(eval $(call build-art-cache-oat,system/app/ExchangeGoogle.apk))
158$(eval $(call build-art-cache-oat,system/app/GalleryGoogle.apk))
159$(eval $(call build-art-cache-oat,system/app/GenieWidget.apk))
160$(eval $(call build-art-cache-oat,system/app/Gmail.apk))
161$(eval $(call build-art-cache-oat,system/app/GoogleBackupTransport.apk))
162$(eval $(call build-art-cache-oat,system/app/GoogleContactsSyncAdapter.apk))
163$(eval $(call build-art-cache-oat,system/app/GoogleEarth.apk))
164$(eval $(call build-art-cache-oat,system/app/GoogleFeedback.apk))
165$(eval $(call build-art-cache-oat,system/app/GoogleLoginService.apk))
166$(eval $(call build-art-cache-oat,system/app/GooglePackageVerifier.apk))
167$(eval $(call build-art-cache-oat,system/app/GooglePackageVerifierUpdater.apk))
168$(eval $(call build-art-cache-oat,system/app/GooglePartnerSetup.apk))
169$(eval $(call build-art-cache-oat,system/app/GoogleQuickSearchBox.apk))
170$(eval $(call build-art-cache-oat,system/app/GoogleServicesFramework.apk))
171$(eval $(call build-art-cache-oat,system/app/GoogleTTS.apk))
172$(eval $(call build-art-cache-oat,system/app/HTMLViewer.apk))
173$(eval $(call build-art-cache-oat,system/app/IMSFramework.apk))
174$(eval $(call build-art-cache-oat,system/app/HoloSpiralWallpaper.apk))
175$(eval $(call build-art-cache-oat,system/app/KeyChain.apk))
176$(eval $(call build-art-cache-oat,system/app/LatinImeDictionaryPack.apk))
177$(eval $(call build-art-cache-oat,system/app/LatinImeGoogle.apk))
178$(eval $(call build-art-cache-oat,system/app/Launcher2.apk))
179$(eval $(call build-art-cache-oat,system/app/LiveWallpapers.apk))
180$(eval $(call build-art-cache-oat,system/app/LiveWallpapersPicker.apk))
181$(eval $(call build-art-cache-oat,system/app/Maps.apk))
182$(eval $(call build-art-cache-oat,system/app/MarketUpdater.apk))
183$(eval $(call build-art-cache-oat,system/app/MediaProvider.apk))
184$(eval $(call build-art-cache-oat,system/app/MediaUploader.apk))
185$(eval $(call build-art-cache-oat,system/app/Microbes.apk))
186$(eval $(call build-art-cache-oat,system/app/Mms.apk))
187$(eval $(call build-art-cache-oat,system/app/Music2.apk))
188$(eval $(call build-art-cache-oat,system/app/MusicFX.apk))
189$(eval $(call build-art-cache-oat,system/app/MyVerizon.apk))
190$(eval $(call build-art-cache-oat,system/app/NetSpeed.apk))
191$(eval $(call build-art-cache-oat,system/app/NetworkLocation.apk))
192$(eval $(call build-art-cache-oat,system/app/Nfc.apk))
193$(eval $(call build-art-cache-oat,system/app/OneTimeInitializer.apk))
194$(eval $(call build-art-cache-oat,system/app/PackageInstaller.apk))
195$(eval $(call build-art-cache-oat,system/app/Phone.apk))
196$(eval $(call build-art-cache-oat,system/app/Phonesky.apk))
197$(eval $(call build-art-cache-oat,system/app/PlusOne.apk))
198$(eval $(call build-art-cache-oat,system/app/RTN.apk))
199$(eval $(call build-art-cache-oat,system/app/SDM.apk))
200$(eval $(call build-art-cache-oat,system/app/Settings.apk))
201$(eval $(call build-art-cache-oat,system/app/SettingsProvider.apk))
202$(eval $(call build-art-cache-oat,system/app/SetupWizard.apk))
203$(eval $(call build-art-cache-oat,system/app/SharedStorageBackup.apk))
204$(eval $(call build-art-cache-oat,system/app/SoundRecorder.apk))
205$(eval $(call build-art-cache-oat,system/app/SpeechRecorder.apk))
206$(eval $(call build-art-cache-oat,system/app/SPG.apk))
207$(eval $(call build-art-cache-oat,system/app/StingrayProgramMenu.apk))
208$(eval $(call build-art-cache-oat,system/app/StingrayProgramMenuSystem.apk))
209$(eval $(call build-art-cache-oat,system/app/Stk.apk))
210$(eval $(call build-art-cache-oat,system/app/Street.apk))
211$(eval $(call build-art-cache-oat,system/app/SyncMLSvc.apk))
212$(eval $(call build-art-cache-oat,system/app/SystemUI.apk))
213$(eval $(call build-art-cache-oat,system/app/TagGoogle.apk))
214$(eval $(call build-art-cache-oat,system/app/Talk.apk))
215$(eval $(call build-art-cache-oat,system/app/TelephonyProvider.apk))
216$(eval $(call build-art-cache-oat,system/app/Thinkfree.apk))
217$(eval $(call build-art-cache-oat,system/app/UserDictionaryProvider.apk))
218$(eval $(call build-art-cache-oat,system/app/VerizonSSO.apk))
219$(eval $(call build-art-cache-oat,system/app/VideoEditorGoogle.apk))
220$(eval $(call build-art-cache-oat,system/app/Videos.apk))
221$(eval $(call build-art-cache-oat,system/app/VisualizationWallpapers.apk))
222$(eval $(call build-art-cache-oat,system/app/VoiceDialer.apk))
223$(eval $(call build-art-cache-oat,system/app/VoiceSearch.apk))
224$(eval $(call build-art-cache-oat,system/app/VpnDialogs.apk))
225$(eval $(call build-art-cache-oat,system/app/VZWAPNLib.apk))
226$(eval $(call build-art-cache-oat,system/app/VZWAPNService.apk))
227$(eval $(call build-art-cache-oat,system/app/VZWBackupAssistant.apk))
228$(eval $(call build-art-cache-oat,system/app/YouTube.apk))
229$(eval $(call build-art-cache-oat,system/app/talkback.apk))
Brian Carlstroma6cc8932012-01-04 14:44:07 -0800230$(eval $(call build-art-cache-oat,system/framework/am.jar))
Elliott Hughes0dc36d72011-12-13 19:40:43 -0800231$(eval $(call build-art-cache-oat,system/framework/android.test.runner.jar))
232$(eval $(call build-art-cache-oat,system/framework/bmgr.jar))
233$(eval $(call build-art-cache-oat,system/framework/bu.jar))
234$(eval $(call build-art-cache-oat,system/framework/com.android.future.usb.accessory.jar))
235$(eval $(call build-art-cache-oat,system/framework/com.android.location.provider.jar))
236$(eval $(call build-art-cache-oat,system/framework/com.android.nfc_extras.jar))
237$(eval $(call build-art-cache-oat,system/framework/com.google.android.maps.jar))
238$(eval $(call build-art-cache-oat,system/framework/com.google.android.media.effects.jar))
239$(eval $(call build-art-cache-oat,system/framework/ext.jar))
240$(eval $(call build-art-cache-oat,system/framework/ime.jar))
241$(eval $(call build-art-cache-oat,system/framework/input.jar))
242$(eval $(call build-art-cache-oat,system/framework/javax.obex.jar))
243$(eval $(call build-art-cache-oat,system/framework/monkey.jar))
244$(eval $(call build-art-cache-oat,system/framework/pm.jar))
245$(eval $(call build-art-cache-oat,system/framework/send_bug.jar))
246$(eval $(call build-art-cache-oat,system/framework/svc.jar))
247
248else
249
Shih-wei Liaoc74a6972011-12-22 20:16:42 -0800250ifeq ($(TARGET_PRODUCT),$(filter $(TARGET_PRODUCT),soju sojus))
Elliott Hughes0dc36d72011-12-13 19:40:43 -0800251
Ian Rogersf8a199c2011-11-03 17:16:02 -0700252$(eval $(call build-art-cache-oat,system/app/ApplicationsProvider.apk))
253$(eval $(call build-art-cache-oat,system/app/BackupRestoreConfirmation.apk))
254$(eval $(call build-art-cache-oat,system/app/Bluetooth.apk))
255$(eval $(call build-art-cache-oat,system/app/BooksTablet.apk))
Brian Carlstrom41df0652011-11-10 10:35:05 -0800256$(eval $(call build-art-cache-oat,system/app/BrowserGoogle.apk))
Brian Carlstroma6cc8932012-01-04 14:44:07 -0800257$(eval $(call build-art-cache-oat,system/app/Calculator.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700258$(eval $(call build-art-cache-oat,system/app/CalendarGoogle.apk))
259$(eval $(call build-art-cache-oat,system/app/CalendarProvider.apk))
Brian Carlstrom41df0652011-11-10 10:35:05 -0800260$(eval $(call build-art-cache-oat,system/app/CameraGoogle.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700261$(eval $(call build-art-cache-oat,system/app/CarHomeGoogle.apk))
262$(eval $(call build-art-cache-oat,system/app/CertInstaller.apk))
263$(eval $(call build-art-cache-oat,system/app/ChromeBookmarksSyncAdapter.apk))
264$(eval $(call build-art-cache-oat,system/app/Contacts.apk))
265$(eval $(call build-art-cache-oat,system/app/ContactsProvider.apk))
266$(eval $(call build-art-cache-oat,system/app/DefaultContainerService.apk))
267$(eval $(call build-art-cache-oat,system/app/DeskClockGoogle.apk))
268$(eval $(call build-art-cache-oat,system/app/Development.apk))
269$(eval $(call build-art-cache-oat,system/app/DownloadProvider.apk))
270$(eval $(call build-art-cache-oat,system/app/DownloadProviderUi.apk))
271$(eval $(call build-art-cache-oat,system/app/DrmProvider.apk))
272$(eval $(call build-art-cache-oat,system/app/EmailGoogle.apk))
273$(eval $(call build-art-cache-oat,system/app/ExchangeGoogle.apk))
274$(eval $(call build-art-cache-oat,system/app/GalleryGoogle.apk))
275$(eval $(call build-art-cache-oat,system/app/GenieWidget.apk))
276$(eval $(call build-art-cache-oat,system/app/Gmail.apk))
277$(eval $(call build-art-cache-oat,system/app/GoogleBackupTransport.apk))
278$(eval $(call build-art-cache-oat,system/app/GoogleContactsSyncAdapter.apk))
279$(eval $(call build-art-cache-oat,system/app/GoogleEarth.apk))
280$(eval $(call build-art-cache-oat,system/app/GoogleFeedback.apk))
281$(eval $(call build-art-cache-oat,system/app/GoogleLoginService.apk))
282$(eval $(call build-art-cache-oat,system/app/GooglePackageVerifier.apk))
Brian Carlstrom41df0652011-11-10 10:35:05 -0800283$(eval $(call build-art-cache-oat,system/app/GooglePackageVerifierUpdater.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700284$(eval $(call build-art-cache-oat,system/app/GooglePartnerSetup.apk))
285$(eval $(call build-art-cache-oat,system/app/GoogleQuickSearchBox.apk))
286$(eval $(call build-art-cache-oat,system/app/GoogleServicesFramework.apk))
Brian Carlstrom41df0652011-11-10 10:35:05 -0800287$(eval $(call build-art-cache-oat,system/app/GoogleTTS.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700288$(eval $(call build-art-cache-oat,system/app/HTMLViewer.apk))
Brian Carlstrom41df0652011-11-10 10:35:05 -0800289$(eval $(call build-art-cache-oat,system/app/HoloSpiralWallpaper.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700290$(eval $(call build-art-cache-oat,system/app/KeyChain.apk))
291$(eval $(call build-art-cache-oat,system/app/LatinImeDictionaryPack.apk))
292$(eval $(call build-art-cache-oat,system/app/LatinImeGoogle.apk))
293$(eval $(call build-art-cache-oat,system/app/Launcher2.apk))
294$(eval $(call build-art-cache-oat,system/app/LiveWallpapers.apk))
295$(eval $(call build-art-cache-oat,system/app/LiveWallpapersPicker.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700296$(eval $(call build-art-cache-oat,system/app/Maps.apk))
Brian Carlstrom41df0652011-11-10 10:35:05 -0800297$(eval $(call build-art-cache-oat,system/app/MarketUpdater.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700298$(eval $(call build-art-cache-oat,system/app/MediaProvider.apk))
299$(eval $(call build-art-cache-oat,system/app/MediaUploader.apk))
300$(eval $(call build-art-cache-oat,system/app/Microbes.apk))
301$(eval $(call build-art-cache-oat,system/app/Mms.apk))
302$(eval $(call build-art-cache-oat,system/app/Music2.apk))
303$(eval $(call build-art-cache-oat,system/app/MusicFX.apk))
304$(eval $(call build-art-cache-oat,system/app/NetSpeed.apk))
305$(eval $(call build-art-cache-oat,system/app/NetworkLocation.apk))
Brian Carlstromae826982011-11-09 01:33:42 -0800306$(eval $(call build-art-cache-oat,system/app/Nfc.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700307$(eval $(call build-art-cache-oat,system/app/OneTimeInitializer.apk))
308$(eval $(call build-art-cache-oat,system/app/PackageInstaller.apk))
309$(eval $(call build-art-cache-oat,system/app/Phone.apk))
310$(eval $(call build-art-cache-oat,system/app/Phonesky.apk))
Brian Carlstrom41df0652011-11-10 10:35:05 -0800311$(eval $(call build-art-cache-oat,system/app/PlusOne.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700312$(eval $(call build-art-cache-oat,system/app/Settings.apk))
313$(eval $(call build-art-cache-oat,system/app/SettingsProvider.apk))
314$(eval $(call build-art-cache-oat,system/app/SetupWizard.apk))
Brian Carlstrom41df0652011-11-10 10:35:05 -0800315$(eval $(call build-art-cache-oat,system/app/SharedStorageBackup.apk))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700316$(eval $(call build-art-cache-oat,system/app/SoundRecorder.apk))
317$(eval $(call build-art-cache-oat,system/app/SpeechRecorder.apk))
318$(eval $(call build-art-cache-oat,system/app/StingrayProgramMenu.apk))
319$(eval $(call build-art-cache-oat,system/app/StingrayProgramMenuSystem.apk))
320$(eval $(call build-art-cache-oat,system/app/Street.apk))
321$(eval $(call build-art-cache-oat,system/app/SystemUI.apk))
322$(eval $(call build-art-cache-oat,system/app/TagGoogle.apk))
323$(eval $(call build-art-cache-oat,system/app/Talk.apk))
324$(eval $(call build-art-cache-oat,system/app/TelephonyProvider.apk))
325$(eval $(call build-art-cache-oat,system/app/Thinkfree.apk))
326$(eval $(call build-art-cache-oat,system/app/UserDictionaryProvider.apk))
327$(eval $(call build-art-cache-oat,system/app/VideoEditorGoogle.apk))
328$(eval $(call build-art-cache-oat,system/app/Videos.apk))
329$(eval $(call build-art-cache-oat,system/app/VisualizationWallpapers.apk))
330$(eval $(call build-art-cache-oat,system/app/VoiceDialer.apk))
331$(eval $(call build-art-cache-oat,system/app/VoiceSearch.apk))
332$(eval $(call build-art-cache-oat,system/app/VpnDialogs.apk))
333$(eval $(call build-art-cache-oat,system/app/YouTube.apk))
334$(eval $(call build-art-cache-oat,system/app/googlevoice.apk))
335$(eval $(call build-art-cache-oat,system/app/talkback.apk))
Brian Carlstroma6cc8932012-01-04 14:44:07 -0800336$(eval $(call build-art-cache-oat,system/framework/am.jar))
Ian Rogersf8a199c2011-11-03 17:16:02 -0700337$(eval $(call build-art-cache-oat,system/framework/android.test.runner.jar))
338$(eval $(call build-art-cache-oat,system/framework/bmgr.jar))
339$(eval $(call build-art-cache-oat,system/framework/bu.jar))
340$(eval $(call build-art-cache-oat,system/framework/com.android.future.usb.accessory.jar))
341$(eval $(call build-art-cache-oat,system/framework/com.android.location.provider.jar))
342$(eval $(call build-art-cache-oat,system/framework/com.android.nfc_extras.jar))
343$(eval $(call build-art-cache-oat,system/framework/com.google.android.maps.jar))
344$(eval $(call build-art-cache-oat,system/framework/com.google.android.media.effects.jar))
345$(eval $(call build-art-cache-oat,system/framework/ext.jar))
346$(eval $(call build-art-cache-oat,system/framework/ime.jar))
347$(eval $(call build-art-cache-oat,system/framework/input.jar))
348$(eval $(call build-art-cache-oat,system/framework/javax.obex.jar))
349$(eval $(call build-art-cache-oat,system/framework/monkey.jar))
350$(eval $(call build-art-cache-oat,system/framework/pm.jar))
351$(eval $(call build-art-cache-oat,system/framework/send_bug.jar))
352$(eval $(call build-art-cache-oat,system/framework/svc.jar))
Elliott Hughes0dc36d72011-12-13 19:40:43 -0800353
354else
355
Elliott Hughes42298fa2011-12-13 20:49:29 -0800356$(warning do not know what jars to compile for $(TARGET_PRODUCT))
Elliott Hughes0dc36d72011-12-13 19:40:43 -0800357
358endif
359
Ian Rogersf8a199c2011-11-03 17:16:02 -0700360endif
361
Brian Carlstroma6cc8932012-01-04 14:44:07 -0800362.PHONY: oat-target-sync
363oat-target-sync: $(ART_TARGET_DEPENDENCIES) $(TARGET_BOOT_OAT) $(ART_CACHE_OATS)
Brian Carlstrom0796af02011-10-12 14:31:45 -0700364 adb remount
365 adb sync
366
Brian Carlstrom76aa0c02011-10-11 15:29:43 -0700367########################################################################
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700368# oatdump targets
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700369
Brian Carlstrom395520e2011-09-25 19:35:00 -0700370.PHONY: dump-oat
Brian Carlstrom03a20ba2011-10-13 10:24:13 -0700371dump-oat: dump-oat-core dump-oat-boot dump-oat-Calculator
Brian Carlstrom395520e2011-09-25 19:35:00 -0700372
Brian Carlstrome10b6972011-09-26 13:49:03 -0700373.PHONY: dump-oat-core
374dump-oat-core: $(TARGET_CORE_OAT) $(OATDUMP)
Brian Carlstrom58ae9412011-10-04 00:56:06 -0700375 $(OATDUMP) --image=$(TARGET_CORE_IMG) --host-prefix=$(PRODUCT_OUT) --output=/tmp/core.oatdump.txt
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700376 @echo Output in /tmp/core.oatdump.txt
377
Brian Carlstrome10b6972011-09-26 13:49:03 -0700378.PHONY: dump-oat-boot
379dump-oat-boot: $(TARGET_BOOT_OAT) $(OATDUMP)
Brian Carlstrom58ae9412011-10-04 00:56:06 -0700380 $(OATDUMP) --image=$(TARGET_BOOT_IMG) --host-prefix=$(PRODUCT_OUT) --output=/tmp/boot.oatdump.txt
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700381 @echo Output in /tmp/boot.oatdump.txt
Brian Carlstrom78128a62011-09-15 17:21:19 -0700382
Brian Carlstrome10b6972011-09-26 13:49:03 -0700383.PHONY: dump-oat-Calculator
Brian Carlstroma6cc8932012-01-04 14:44:07 -0800384dump-oat-Calculator: $(call art-cache-oat,system/app/Calculator.apk) $(TARGET_BOOT_OAT) $(OATDUMP)
385 $(OATDUMP) --oat-file=$< --boot-image=$(TARGET_BOOT_IMG) --host-prefix=$(PRODUCT_OUT) --output=/tmp/Calculator.oatdump.txt
Brian Carlstrome10b6972011-09-26 13:49:03 -0700386 @echo Output in /tmp/Calculator.oatdump.txt
387
388
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700389########################################################################
Brian Carlstromfab62932011-10-27 21:47:49 -0700390# clean-oat target
391#
392
393.PHONY: clean-oat
394clean-oat:
395 rm -f $(ART_TEST_OUT)/*.oat
Elliott Hughes55124a52011-12-08 15:52:52 -0800396 rm -f $(ART_TEST_OUT)/*.art
Brian Carlstromfab62932011-10-27 21:47:49 -0700397 rm -f $(ART_CACHE_OUT)/*.oat
Elliott Hughes55124a52011-12-08 15:52:52 -0800398 rm -f $(ART_CACHE_OUT)/*.art
Brian Carlstromfab62932011-10-27 21:47:49 -0700399 adb shell rm $(ART_TEST_DIR)/*.oat
Elliott Hughes55124a52011-12-08 15:52:52 -0800400 adb shell rm $(ART_TEST_DIR)/*.art
Brian Carlstromfab62932011-10-27 21:47:49 -0700401 adb shell rm $(ART_CACHE_DIR)/*.oat
Elliott Hughes55124a52011-12-08 15:52:52 -0800402 adb shell rm $(ART_CACHE_DIR)/*.art
Brian Carlstromfab62932011-10-27 21:47:49 -0700403
404########################################################################
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700405# cpplint target
406
Brian Carlstrom59848da2011-07-23 20:35:19 -0700407# "mm cpplint-art" to style check art source files
408.PHONY: cpplint-art
409cpplint-art:
Elliott Hughesa51a3dd2011-10-17 15:19:26 -0700410 ./art/tools/cpplint.py \
411 --filter=-whitespace/comments,-whitespace/line_length,-build/include,-build/header_guard,-readability/streams,-readability/todo,-runtime/references \
Elliott Hughes362f9bc2011-10-17 18:56:41 -0700412 $(ANDROID_BUILD_TOP)/art/src/*.h $(ANDROID_BUILD_TOP)/art/src/*.cc
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700413
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700414########################################################################
415
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700416include $(call all-makefiles-under,$(LOCAL_PATH))