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 | |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 29 | ######################################################################## |
| 30 | # product targets |
Carl Shapiro | 0e6d197 | 2011-07-06 19:17:39 -0700 | [diff] [blame] | 31 | include $(build_path)/Android.libart.mk |
Elliott Hughes | b3bd5f0 | 2012-03-08 21:05:27 -0800 | [diff] [blame] | 32 | include $(build_path)/Android.libart-compiler.mk |
Shih-wei Liao | c4c9881 | 2012-03-10 21:55:51 -0800 | [diff] [blame] | 33 | ifeq ($(ART_USE_LLVM_COMPILER),true) |
| 34 | include $(build_path)/Android.libart-compiler-llvm.mk |
| 35 | endif |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 36 | include $(build_path)/Android.executable.mk |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 37 | include $(build_path)/Android.oat.mk |
Carl Shapiro | 7b21670 | 2011-06-17 15:09:26 -0700 | [diff] [blame] | 38 | |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 39 | # ART_HOST_DEPENDENCIES depends on Android.executable.mk above for ART_HOST_EXECUTABLES |
Brian Carlstrom | 1580379 | 2012-03-13 00:53:08 -0700 | [diff] [blame] | 40 | ART_HOST_DEPENDENCIES := $(ART_HOST_EXECUTABLES) $(HOST_OUT_JAVA_LIBRARIES)/core-hostdex.jar |
| 41 | ifeq ($(HOST_OS),linux) |
| 42 | ART_HOST_DEPENDENCIES += $(HOST_OUT_SHARED_LIBRARIES)/libjavacore.so |
| 43 | else |
| 44 | ART_HOST_DEPENDENCIES += $(HOST_OUT_SHARED_LIBRARIES)/libjavacore.dylib |
| 45 | endif |
| 46 | ART_TARGET_DEPENDENCIES := $(ART_TARGET_EXECUTABLES) $(TARGET_OUT_JAVA_LIBRARIES)/core.jar $(TARGET_OUT_SHARED_LIBRARIES)/libjavacore.so |
| 47 | |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 48 | ######################################################################## |
| 49 | # test targets |
Brian Carlstrom | 1580379 | 2012-03-13 00:53:08 -0700 | [diff] [blame] | 50 | |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 51 | include $(build_path)/Android.oattest.mk |
| 52 | |
| 53 | # The ART_*_TEST_DEPENDENCIES definitions: |
| 54 | # - depend on Android.oattest.mk above for ART_TEST_*_DEX_FILES |
| 55 | # - are needed by Android.gtest.mk below |
| 56 | ART_HOST_TEST_DEPENDENCIES := $(ART_HOST_DEPENDENCIES) $(ART_HOST_TEST_EXECUTABLES) $(ART_TEST_HOST_DEX_FILES) $(HOST_CORE_IMG_OUT) |
| 57 | ART_TARGET_TEST_DEPENDENCIES := $(ART_TARGET_DEPENDENCIES) $(ART_TARGET_TEST_EXECUTABLES) $(ART_TEST_TARGET_DEX_FILES) $(TARGET_CORE_IMG_OUT) |
Brian Carlstrom | 1619286 | 2011-09-12 17:50:06 -0700 | [diff] [blame] | 58 | |
Brian Carlstrom | 07d579f | 2011-07-27 13:31:51 -0700 | [diff] [blame] | 59 | include $(build_path)/Android.libarttest.mk |
Brian Carlstrom | bbf1e41 | 2011-09-18 14:14:51 -0700 | [diff] [blame] | 60 | include $(build_path)/Android.gtest.mk |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 61 | |
| 62 | # "m build-art" for quick minimal build |
| 63 | .PHONY: build-art |
| 64 | build-art: \ |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 65 | $(ART_TARGET_EXECUTABLES) \ |
Brian Carlstrom | 8ecd08c | 2011-07-27 17:50:51 -0700 | [diff] [blame] | 66 | $(ART_TARGET_TEST_EXECUTABLES) \ |
Brian Carlstrom | 69b15fb | 2011-09-03 12:25:21 -0700 | [diff] [blame] | 67 | $(ART_HOST_EXECUTABLES) \ |
Carl Shapiro | 47940d6 | 2011-08-13 22:21:30 -0700 | [diff] [blame] | 68 | $(ART_HOST_TEST_EXECUTABLES) |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 69 | |
Brian Carlstrom | 4a96b60 | 2011-07-26 16:40:23 -0700 | [diff] [blame] | 70 | # "mm test-art" to build and run all tests on host and device |
| 71 | .PHONY: test-art |
| 72 | test-art: test-art-host test-art-target |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 73 | @echo test-art PASSED |
Brian Carlstrom | 4a96b60 | 2011-07-26 16:40:23 -0700 | [diff] [blame] | 74 | |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 75 | .PHONY: test-art-gtest |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 76 | test-art-gtest: test-art-host-gtest test-art-target-gtest |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 77 | @echo test-art-gtest PASSED |
| 78 | |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 79 | .PHONY: test-art-oat |
| 80 | test-art-oat: test-art-target-oat # test-art-host-oat |
| 81 | @echo test-art-oat PASSED |
Elliott Hughes | 2cae5a2 | 2011-08-14 14:27:25 -0700 | [diff] [blame] | 82 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 83 | ######################################################################## |
| 84 | # host test targets |
| 85 | |
Brian Carlstrom | 934486c | 2011-07-12 23:42:50 -0700 | [diff] [blame] | 86 | # "mm test-art-host" to build and run all host tests |
| 87 | .PHONY: test-art-host |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 88 | test-art-host: test-art-host-gtest # test-art-host-oat # test-art-host-run-test |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 89 | @echo test-art-host PASSED |
Brian Carlstrom | 59848da | 2011-07-23 20:35:19 -0700 | [diff] [blame] | 90 | |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 91 | .PHONY: test-art-host-gtest |
| 92 | test-art-host-gtest: $(ART_HOST_TEST_TARGETS) |
| 93 | @echo test-art-host-gtest PASSED |
Elliott Hughes | 2cae5a2 | 2011-08-14 14:27:25 -0700 | [diff] [blame] | 94 | |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 95 | define run-host-gtests-with |
| 96 | $(foreach file,$(sort $(ART_HOST_TEST_EXECUTABLES)),$(1) $(file) &&) true |
| 97 | endef |
| 98 | |
| 99 | # "mm valgrind-test-art-host-gtest" to build and run the host gtests under valgrind. |
| 100 | .PHONY: valgrind-test-art-host-gtest |
| 101 | valgrind-test-art-host-gtest: $(ART_HOST_TEST_DEPENDENCIES) |
| 102 | $(call run-host-gtests-with,valgrind --leak-check=full) |
| 103 | @echo valgrind-test-art-host-gtest PASSED |
| 104 | |
| 105 | # "mm tsan-test-art-host-gtest" to build and run the host gtests under tsan. |
| 106 | .PHONY: tsan-test-art-host-gtest |
| 107 | tsan-test-art-host-gtest: $(ART_HOST_TEST_DEPENDENCIES) |
| 108 | $(call run-host-gtests-with,"tsan") |
| 109 | @echo tsan-test-art-host-gtest PASSED |
| 110 | |
| 111 | .PHONY: test-art-host-oat |
| 112 | test-art-host-oat: $(ART_TEST_HOST_OAT_TARGETS) |
| 113 | @echo test-art-host-oat PASSED |
Elliott Hughes | 5511f21 | 2011-08-12 18:07:45 -0700 | [diff] [blame] | 114 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 115 | ######################################################################## |
| 116 | # target test targets |
| 117 | |
| 118 | # "mm test-art-target" to build and run all target tests |
Brian Carlstrom | 4a96b60 | 2011-07-26 16:40:23 -0700 | [diff] [blame] | 119 | .PHONY: test-art-target |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 120 | 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] | 121 | @echo test-art-target PASSED |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 122 | |
| 123 | .PHONY: test-art-target-sync |
Brian Carlstrom | b9cc1ca | 2012-01-27 00:57:42 -0800 | [diff] [blame] | 124 | 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] | 125 | adb remount |
| 126 | adb sync |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 127 | adb shell mkdir -p $(ART_TEST_DIR) |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 128 | |
| 129 | .PHONY: test-art-target-gtest |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 130 | test-art-target-gtest: $(ART_TARGET_TEST_TARGETS) |
Brian Carlstrom | 8692721 | 2011-09-15 11:31:11 -0700 | [diff] [blame] | 131 | |
| 132 | .PHONY: test-art-target-oat |
Brian Carlstrom | b279337 | 2012-03-17 18:27:16 -0700 | [diff] [blame] | 133 | test-art-target-oat: $(ART_TEST_TARGET_OAT_TARGETS) |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 134 | @echo test-art-target-oat PASSED |
Brian Carlstrom | 4a96b60 | 2011-07-26 16:40:23 -0700 | [diff] [blame] | 135 | |
Brian Carlstrom | 37c4444 | 2012-03-06 22:21:18 -0800 | [diff] [blame] | 136 | define declare-test-art-target-run-test |
| 137 | .PHONY: test-art-target-run-test-$(1) |
| 138 | test-art-target-run-test-$(1): test-art-target-sync |
| 139 | art/test/run-test $(1) |
| 140 | @echo test-art-target-run-test-$(1) PASSED |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 141 | |
Brian Carlstrom | 37c4444 | 2012-03-06 22:21:18 -0800 | [diff] [blame] | 142 | TEST_ART_TARGET_RUN_TEST_TARGETS += test-art-target-run-test-$(1) |
| 143 | endef |
| 144 | |
| 145 | $(foreach test, $(wildcard art/test/0*), $(eval $(call declare-test-art-target-run-test,$(notdir $(test))))) |
| 146 | |
| 147 | .PHONY: test-art-target-run-test |
| 148 | test-art-target-run-test: $(TEST_ART_TARGET_RUN_TEST_TARGETS) |
| 149 | @echo test-art-target-run-test PASSED |
Brian Carlstrom | e24fa61 | 2011-09-29 00:53:55 -0700 | [diff] [blame] | 150 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 151 | ######################################################################## |
Brian Carlstrom | 04941d9 | 2012-02-19 01:47:51 -0800 | [diff] [blame] | 152 | # oat-target and oat-target-sync targets |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 153 | |
Brian Carlstrom | 04941d9 | 2012-02-19 01:47:51 -0800 | [diff] [blame] | 154 | OAT_TARGET_TARGETS := |
| 155 | |
| 156 | # $(1): input jar or apk target location |
| 157 | define declare-oat-target-target |
| 158 | .PHONY: oat-target-$(1) |
| 159 | oat-target-$(1): $(PRODUCT_OUT)/$(1) $(TARGET_BOOT_IMG_OUT) $(DEX2OAT_DEPENDENCY) |
Brian Carlstrom | bf2cb16 | 2012-02-27 17:49:19 -0800 | [diff] [blame] | 160 | $(DEX2OAT) --runtime-arg -Xms64m --runtime-arg -Xmx64m --boot-image=$(TARGET_BOOT_IMG_OUT) --dex-file=$(PRODUCT_OUT)/$(1) --dex-location=/$(1) --oat-file=$(call art-cache-out,$(1).oat) --host-prefix=$(PRODUCT_OUT) |
Brian Carlstrom | 04941d9 | 2012-02-19 01:47:51 -0800 | [diff] [blame] | 161 | |
| 162 | OAT_TARGET_TARGETS += oat-target-$(1) |
Brian Carlstrom | a9f1978 | 2011-10-13 00:14:47 -0700 | [diff] [blame] | 163 | endef |
| 164 | |
Brian Carlstrom | bd41102 | 2012-02-07 12:09:09 -0800 | [diff] [blame] | 165 | $(foreach file,\ |
| 166 | $(filter-out\ |
| 167 | $(TARGET_BOOT_DEX),\ |
| 168 | $(wildcard $(TARGET_OUT_APPS)/*.apk) $(wildcard $(TARGET_OUT_JAVA_LIBRARIES)/*.jar)),\ |
Brian Carlstrom | 04941d9 | 2012-02-19 01:47:51 -0800 | [diff] [blame] | 169 | $(eval $(call declare-oat-target-target,$(subst $(PRODUCT_OUT)/,,$(file))))) |
| 170 | |
| 171 | .PHONY: oat-target |
| 172 | oat-target: $(ART_TARGET_DEPENDENCIES) $(TARGET_BOOT_OAT_OUT) $(OAT_TARGET_TARGETS) |
Ian Rogers | beb60e2 | 2012-01-31 10:40:40 -0800 | [diff] [blame] | 173 | |
Brian Carlstrom | a6cc893 | 2012-01-04 14:44:07 -0800 | [diff] [blame] | 174 | .PHONY: oat-target-sync |
Brian Carlstrom | 04941d9 | 2012-02-19 01:47:51 -0800 | [diff] [blame] | 175 | oat-target-sync: oat-target |
Brian Carlstrom | 0796af0 | 2011-10-12 14:31:45 -0700 | [diff] [blame] | 176 | adb remount |
| 177 | adb sync |
| 178 | |
Brian Carlstrom | 76aa0c0 | 2011-10-11 15:29:43 -0700 | [diff] [blame] | 179 | ######################################################################## |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 180 | # oatdump targets |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 181 | |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 182 | .PHONY: dump-oat |
Brian Carlstrom | 03a20ba | 2011-10-13 10:24:13 -0700 | [diff] [blame] | 183 | dump-oat: dump-oat-core dump-oat-boot dump-oat-Calculator |
Brian Carlstrom | 395520e | 2011-09-25 19:35:00 -0700 | [diff] [blame] | 184 | |
Brian Carlstrom | e10b697 | 2011-09-26 13:49:03 -0700 | [diff] [blame] | 185 | .PHONY: dump-oat-core |
Brian Carlstrom | 13c492b | 2012-03-22 17:09:17 -0700 | [diff] [blame] | 186 | dump-oat-core: dump-oat-core-host dump-oat-core-target |
| 187 | |
| 188 | .PHONY: dump-oat-core-host |
| 189 | dump-oat-core-host: $(HOST_CORE_IMG_OUT) $(OATDUMP) |
| 190 | $(OATDUMP) --image=$(HOST_CORE_IMG_OUT) --output=/tmp/core.host.oatdump.txt --host-prefix="" |
| 191 | @echo Output in /tmp/core.host.oatdump.txt |
| 192 | |
| 193 | .PHONY: dump-oat-core-target |
| 194 | dump-oat-core-target: $(TARGET_CORE_IMG_OUT) $(OATDUMP) |
| 195 | $(OATDUMP) --image=$(TARGET_CORE_IMG_OUT) --output=/tmp/core.target.oatdump.txt |
| 196 | @echo Output in /tmp/core.target.oatdump.txt |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 197 | |
Brian Carlstrom | e10b697 | 2011-09-26 13:49:03 -0700 | [diff] [blame] | 198 | .PHONY: dump-oat-boot |
Brian Carlstrom | 13c492b | 2012-03-22 17:09:17 -0700 | [diff] [blame] | 199 | dump-oat-boot: $(TARGET_BOOT_IMG_OUT) $(OATDUMP) |
Brian Carlstrom | fe487d0 | 2012-02-29 18:49:16 -0800 | [diff] [blame] | 200 | $(OATDUMP) --image=$(TARGET_BOOT_IMG_OUT) --output=/tmp/boot.oatdump.txt |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 201 | @echo Output in /tmp/boot.oatdump.txt |
Brian Carlstrom | 78128a6 | 2011-09-15 17:21:19 -0700 | [diff] [blame] | 202 | |
Brian Carlstrom | e10b697 | 2011-09-26 13:49:03 -0700 | [diff] [blame] | 203 | .PHONY: dump-oat-Calculator |
Brian Carlstrom | fe487d0 | 2012-02-29 18:49:16 -0800 | [diff] [blame] | 204 | dump-oat-Calculator: $(call art-cache-out,system/app/Calculator.apk.oat) $(TARGET_BOOT_IMG_OUT) $(OATDUMP) |
| 205 | $(OATDUMP) --oat-file=$< --output=/tmp/Calculator.oatdump.txt |
Brian Carlstrom | e10b697 | 2011-09-26 13:49:03 -0700 | [diff] [blame] | 206 | @echo Output in /tmp/Calculator.oatdump.txt |
| 207 | |
| 208 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 209 | ######################################################################## |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 210 | # clean-oat target |
| 211 | # |
| 212 | |
| 213 | .PHONY: clean-oat |
| 214 | clean-oat: |
Brian Carlstrom | a004aa9 | 2012-02-08 18:05:09 -0800 | [diff] [blame] | 215 | rm -f $(ART_NATIVETEST_OUT)/*.oat |
| 216 | rm -f $(ART_NATIVETEST_OUT)/*.art |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 217 | rm -f $(ART_TEST_OUT)/*.oat |
Elliott Hughes | 55124a5 | 2011-12-08 15:52:52 -0800 | [diff] [blame] | 218 | rm -f $(ART_TEST_OUT)/*.art |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 219 | rm -f $(ART_CACHE_OUT)/*.oat |
Elliott Hughes | 55124a5 | 2011-12-08 15:52:52 -0800 | [diff] [blame] | 220 | rm -f $(ART_CACHE_OUT)/*.art |
Brian Carlstrom | a004aa9 | 2012-02-08 18:05:09 -0800 | [diff] [blame] | 221 | rm -f $(HOST_OUT_JAVA_LIBRARIES)/*.oat |
| 222 | rm -f $(HOST_OUT_JAVA_LIBRARIES)/*.art |
| 223 | rm -f $(TARGET_OUT_JAVA_LIBRARIES)/*.oat |
| 224 | rm -f $(TARGET_OUT_JAVA_LIBRARIES)/*.art |
| 225 | rm -f $(TARGET_OUT_APPS)/*.oat |
Brian Carlstrom | db279c0 | 2012-03-19 23:19:41 -0700 | [diff] [blame] | 226 | adb remount |
Brian Carlstrom | a004aa9 | 2012-02-08 18:05:09 -0800 | [diff] [blame] | 227 | adb shell rm $(ART_NATIVETEST_DIR)/*.oat |
| 228 | adb shell rm $(ART_NATIVETEST_DIR)/*.art |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 229 | adb shell rm $(ART_TEST_DIR)/*.oat |
Elliott Hughes | 55124a5 | 2011-12-08 15:52:52 -0800 | [diff] [blame] | 230 | adb shell rm $(ART_TEST_DIR)/*.art |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 231 | adb shell rm $(ART_CACHE_DIR)/*.oat |
Elliott Hughes | 55124a5 | 2011-12-08 15:52:52 -0800 | [diff] [blame] | 232 | adb shell rm $(ART_CACHE_DIR)/*.art |
Brian Carlstrom | a004aa9 | 2012-02-08 18:05:09 -0800 | [diff] [blame] | 233 | adb shell rm $(DEXPREOPT_BOOT_JAR_DIR)/*.oat |
| 234 | adb shell rm $(DEXPREOPT_BOOT_JAR_DIR)/*.art |
| 235 | adb shell rm system/app/*.oat |
Brian Carlstrom | f8bbb84 | 2012-03-14 03:01:42 -0700 | [diff] [blame] | 236 | adb shell rm data/run-test/*.oat |
Brian Carlstrom | fab6293 | 2011-10-27 21:47:49 -0700 | [diff] [blame] | 237 | |
| 238 | ######################################################################## |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 239 | # cpplint target |
| 240 | |
Brian Carlstrom | 59848da | 2011-07-23 20:35:19 -0700 | [diff] [blame] | 241 | # "mm cpplint-art" to style check art source files |
| 242 | .PHONY: cpplint-art |
| 243 | cpplint-art: |
Elliott Hughes | a51a3dd | 2011-10-17 15:19:26 -0700 | [diff] [blame] | 244 | ./art/tools/cpplint.py \ |
Elliott Hughes | b25c3f6 | 2012-03-26 16:35:06 -0700 | [diff] [blame] | 245 | --filter=-whitespace/comments,-whitespace/line_length,-build/include,-build/header_guard,-readability/function,-readability/streams,-readability/todo,-runtime/references \ |
Elliott Hughes | 362f9bc | 2011-10-17 18:56:41 -0700 | [diff] [blame] | 246 | $(ANDROID_BUILD_TOP)/art/src/*.h $(ANDROID_BUILD_TOP)/art/src/*.cc |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 247 | |
Brian Carlstrom | bc2f3e3 | 2011-09-22 17:16:54 -0700 | [diff] [blame] | 248 | ######################################################################## |
| 249 | |
Brian Carlstrom | 27ec961 | 2011-09-19 20:20:38 -0700 | [diff] [blame] | 250 | include $(call all-makefiles-under,$(LOCAL_PATH)) |