blob: 14a767910967fd45bcf2fb33152a0ea9e037b61f [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
Elliott Hughesf1eedca2012-04-20 16:00:32 -070026ART_HOST_SHLIB_EXTENSION := $(HOST_SHLIB_SUFFIX)
27ART_HOST_SHLIB_EXTENSION ?= .so
28
Carl Shapiro0e6d1972011-07-06 19:17:39 -070029build_path := $(LOCAL_PATH)/build
Brian Carlstromcdc8de42011-07-19 14:23:17 -070030include $(build_path)/Android.common.mk
31
Brian Carlstromb2793372012-03-17 18:27:16 -070032########################################################################
Brian Carlstrom62e3ee32012-06-18 14:58:55 -070033# clean-oat targets
34#
35
36# following the example of build's dont_bother for clean targets
37ifneq (,$(filter clean-oat,$(MAKECMDGOALS)))
38art_dont_bother := true
39endif
40ifneq (,$(filter clean-oat-host,$(MAKECMDGOALS)))
41art_dont_bother := true
42endif
43ifneq (,$(filter clean-oat-target,$(MAKECMDGOALS)))
44art_dont_bother := true
45endif
46
47.PHONY: clean-oat
48clean-oat: clean-oat-host clean-oat-target
49
50.PHONY: clean-oat-host
51clean-oat-host:
52 rm -f $(ART_NATIVETEST_OUT)/*.oat
53 rm -f $(ART_NATIVETEST_OUT)/*.art
54 rm -f $(ART_TEST_OUT)/*.oat
55 rm -f $(ART_TEST_OUT)/*.art
56 rm -f $(ART_CACHE_OUT)/*.oat
57 rm -f $(ART_CACHE_OUT)/*.art
58 rm -f $(HOST_OUT_JAVA_LIBRARIES)/*.oat
59 rm -f $(HOST_OUT_JAVA_LIBRARIES)/*.art
60 rm -f $(TARGET_OUT_JAVA_LIBRARIES)/*.oat
61 rm -f $(TARGET_OUT_JAVA_LIBRARIES)/*.art
62 rm -f $(TARGET_OUT_APPS)/*.oat
63 rm -f $(TARGET_OUT_INTERMEDIATES)/JAVA_LIBRARIES/*_intermediates/javalib.jar.oat
64 rm -f $(TARGET_OUT_INTERMEDIATES)/APPS/*_intermediates/package.apk.oat
65 rm -rf /tmp/test-*/art-cache/*.oat
66
67.PHONY: clean-oat-target
68clean-oat-target:
69 adb remount
70 adb shell rm $(ART_NATIVETEST_DIR)/*.oat
71 adb shell rm $(ART_NATIVETEST_DIR)/*.art
72 adb shell rm $(ART_TEST_DIR)/*.oat
73 adb shell rm $(ART_TEST_DIR)/*.art
74 adb shell rm $(ART_CACHE_DIR)/*.oat
75 adb shell rm $(ART_CACHE_DIR)/*.art
76 adb shell rm $(DEXPREOPT_BOOT_JAR_DIR)/*.oat
77 adb shell rm $(DEXPREOPT_BOOT_JAR_DIR)/*.art
78 adb shell rm system/app/*.oat
79 adb shell rm data/run-test/test-*/art-cache/*.oat
80
81ifneq ($(art_dont_bother),true)
82
83########################################################################
Brian Carlstromb2793372012-03-17 18:27:16 -070084# product targets
Carl Shapiro0e6d1972011-07-06 19:17:39 -070085include $(build_path)/Android.libart.mk
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080086include $(build_path)/Android.libart-compiler.mk
Shih-wei Liaoc4c98812012-03-10 21:55:51 -080087ifeq ($(ART_USE_LLVM_COMPILER),true)
88include $(build_path)/Android.libart-compiler-llvm.mk
89endif
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -070090ifeq ($(ART_USE_GREENLAND_COMPILER),true)
91include $(build_path)/Android.libart-compiler-greenland.mk
92endif
Brian Carlstrom69b15fb2011-09-03 12:25:21 -070093include $(build_path)/Android.executable.mk
Brian Carlstromb2793372012-03-17 18:27:16 -070094include $(build_path)/Android.oat.mk
Carl Shapiro7b216702011-06-17 15:09:26 -070095
Brian Carlstromb2793372012-03-17 18:27:16 -070096# ART_HOST_DEPENDENCIES depends on Android.executable.mk above for ART_HOST_EXECUTABLES
Brian Carlstrom15803792012-03-13 00:53:08 -070097ART_HOST_DEPENDENCIES := $(ART_HOST_EXECUTABLES) $(HOST_OUT_JAVA_LIBRARIES)/core-hostdex.jar
Elliott Hughesf1eedca2012-04-20 16:00:32 -070098ART_HOST_DEPENDENCIES += $(HOST_OUT_SHARED_LIBRARIES)/libjavacore$(ART_HOST_SHLIB_EXTENSION)
Brian Carlstrom15803792012-03-13 00:53:08 -070099ART_TARGET_DEPENDENCIES := $(ART_TARGET_EXECUTABLES) $(TARGET_OUT_JAVA_LIBRARIES)/core.jar $(TARGET_OUT_SHARED_LIBRARIES)/libjavacore.so
100
Brian Carlstromb2793372012-03-17 18:27:16 -0700101########################################################################
102# test targets
Brian Carlstrom15803792012-03-13 00:53:08 -0700103
Brian Carlstromb2793372012-03-17 18:27:16 -0700104include $(build_path)/Android.oattest.mk
Brian Carlstromb0aa9d32012-04-07 23:12:22 -0700105include $(build_path)/Android.gtest.mk
Brian Carlstromb2793372012-03-17 18:27:16 -0700106
107# The ART_*_TEST_DEPENDENCIES definitions:
108# - depend on Android.oattest.mk above for ART_TEST_*_DEX_FILES
Brian Carlstromb0aa9d32012-04-07 23:12:22 -0700109# - depend on Android.gtest.mk above for ART_*_TEST_EXECUTABLES
Brian Carlstromb2793372012-03-17 18:27:16 -0700110ART_HOST_TEST_DEPENDENCIES := $(ART_HOST_DEPENDENCIES) $(ART_HOST_TEST_EXECUTABLES) $(ART_TEST_HOST_DEX_FILES) $(HOST_CORE_IMG_OUT)
111ART_TARGET_TEST_DEPENDENCIES := $(ART_TARGET_DEPENDENCIES) $(ART_TARGET_TEST_EXECUTABLES) $(ART_TEST_TARGET_DEX_FILES) $(TARGET_CORE_IMG_OUT)
Brian Carlstrom16192862011-09-12 17:50:06 -0700112
Brian Carlstrom07d579f2011-07-27 13:31:51 -0700113include $(build_path)/Android.libarttest.mk
Brian Carlstrom934486c2011-07-12 23:42:50 -0700114
115# "m build-art" for quick minimal build
116.PHONY: build-art
117build-art: \
Brian Carlstrom69b15fb2011-09-03 12:25:21 -0700118 $(ART_TARGET_EXECUTABLES) \
Brian Carlstrom8ecd08c2011-07-27 17:50:51 -0700119 $(ART_TARGET_TEST_EXECUTABLES) \
Brian Carlstrom69b15fb2011-09-03 12:25:21 -0700120 $(ART_HOST_EXECUTABLES) \
Carl Shapiro47940d62011-08-13 22:21:30 -0700121 $(ART_HOST_TEST_EXECUTABLES)
Brian Carlstrom934486c2011-07-12 23:42:50 -0700122
Brian Carlstrom4a96b602011-07-26 16:40:23 -0700123# "mm test-art" to build and run all tests on host and device
124.PHONY: test-art
125test-art: test-art-host test-art-target
Brian Carlstrom395520e2011-09-25 19:35:00 -0700126 @echo test-art PASSED
Brian Carlstrom4a96b602011-07-26 16:40:23 -0700127
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -0700128.PHONY: test-art-gtest
Brian Carlstromb2793372012-03-17 18:27:16 -0700129test-art-gtest: test-art-host-gtest test-art-target-gtest
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -0700130 @echo test-art-gtest PASSED
131
Brian Carlstromb2793372012-03-17 18:27:16 -0700132.PHONY: test-art-oat
Brian Carlstrom08981ab2012-05-25 18:40:15 -0700133test-art-oat: test-art-host-oat test-art-target-oat
Brian Carlstromb2793372012-03-17 18:27:16 -0700134 @echo test-art-oat PASSED
Elliott Hughes2cae5a22011-08-14 14:27:25 -0700135
Brian Carlstrom08981ab2012-05-25 18:40:15 -0700136.PHONY: test-art-run-test
137test-art-run-test: test-art-host-run-test test-art-target-run-test
138 @echo test-art-run-test PASSED
139
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700140########################################################################
141# host test targets
142
Brian Carlstrom934486c2011-07-12 23:42:50 -0700143# "mm test-art-host" to build and run all host tests
144.PHONY: test-art-host
Brian Carlstrom08981ab2012-05-25 18:40:15 -0700145test-art-host: test-art-host-gtest test-art-host-oat test-art-host-run-test
Brian Carlstrom395520e2011-09-25 19:35:00 -0700146 @echo test-art-host PASSED
Brian Carlstrom59848da2011-07-23 20:35:19 -0700147
Brian Carlstromb0aa9d32012-04-07 23:12:22 -0700148.PHONY: test-art-host-dependencies
Elliott Hughesf1eedca2012-04-20 16:00:32 -0700149test-art-host-dependencies: $(ART_HOST_TEST_DEPENDENCIES) $(HOST_OUT_SHARED_LIBRARIES)/libarttest$(ART_HOST_SHLIB_EXTENSION)
Brian Carlstromb0aa9d32012-04-07 23:12:22 -0700150
Brian Carlstromb2793372012-03-17 18:27:16 -0700151.PHONY: test-art-host-gtest
152test-art-host-gtest: $(ART_HOST_TEST_TARGETS)
153 @echo test-art-host-gtest PASSED
Elliott Hughes2cae5a22011-08-14 14:27:25 -0700154
Brian Carlstromb2793372012-03-17 18:27:16 -0700155define run-host-gtests-with
156 $(foreach file,$(sort $(ART_HOST_TEST_EXECUTABLES)),$(1) $(file) &&) true
157endef
158
159# "mm valgrind-test-art-host-gtest" to build and run the host gtests under valgrind.
160.PHONY: valgrind-test-art-host-gtest
Brian Carlstromb0aa9d32012-04-07 23:12:22 -0700161valgrind-test-art-host-gtest: test-art-host-dependencies
Brian Carlstromb2793372012-03-17 18:27:16 -0700162 $(call run-host-gtests-with,valgrind --leak-check=full)
163 @echo valgrind-test-art-host-gtest PASSED
164
165# "mm tsan-test-art-host-gtest" to build and run the host gtests under tsan.
166.PHONY: tsan-test-art-host-gtest
Brian Carlstromb0aa9d32012-04-07 23:12:22 -0700167tsan-test-art-host-gtest: test-art-host-dependencies
Brian Carlstromb2793372012-03-17 18:27:16 -0700168 $(call run-host-gtests-with,"tsan")
169 @echo tsan-test-art-host-gtest PASSED
170
171.PHONY: test-art-host-oat
172test-art-host-oat: $(ART_TEST_HOST_OAT_TARGETS)
173 @echo test-art-host-oat PASSED
Elliott Hughes5511f212011-08-12 18:07:45 -0700174
Brian Carlstrom4855cd52012-04-03 21:38:13 -0700175define declare-test-art-host-run-test
176.PHONY: test-art-host-run-test-$(1)
Brian Carlstromb0aa9d32012-04-07 23:12:22 -0700177test-art-host-run-test-$(1): test-art-host-dependencies
Brian Carlstrom4855cd52012-04-03 21:38:13 -0700178 art/test/run-test --host $(1)
179 @echo test-art-host-run-test-$(1) PASSED
180
181TEST_ART_HOST_RUN_TEST_TARGETS += test-art-host-run-test-$(1)
182endef
183
Elliott Hughes84a5bb42012-05-16 17:52:15 -0700184$(foreach test, $(wildcard art/test/[0-9]*), $(eval $(call declare-test-art-host-run-test,$(notdir $(test)))))
Brian Carlstrom4855cd52012-04-03 21:38:13 -0700185
186.PHONY: test-art-host-run-test
187test-art-host-run-test: $(TEST_ART_HOST_RUN_TEST_TARGETS)
188 @echo test-art-host-run-test PASSED
189
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700190########################################################################
191# target test targets
192
193# "mm test-art-target" to build and run all target tests
Brian Carlstrom4a96b602011-07-26 16:40:23 -0700194.PHONY: test-art-target
Brian Carlstrome24fa612011-09-29 00:53:55 -0700195test-art-target: test-art-target-gtest test-art-target-oat test-art-target-run-test
Brian Carlstrom395520e2011-09-25 19:35:00 -0700196 @echo test-art-target PASSED
Brian Carlstrom86927212011-09-15 11:31:11 -0700197
Brian Carlstromb0aa9d32012-04-07 23:12:22 -0700198.PHONY: test-art-target-dependencies
199test-art-target-dependencies: $(ART_TARGET_TEST_DEPENDENCIES) $(ART_TEST_OUT)/libarttest.so
200
Brian Carlstrom86927212011-09-15 11:31:11 -0700201.PHONY: test-art-target-sync
Brian Carlstromb0aa9d32012-04-07 23:12:22 -0700202test-art-target-sync: test-art-target-dependencies
Brian Carlstrom4a96b602011-07-26 16:40:23 -0700203 adb remount
204 adb sync
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -0700205 adb shell mkdir -p $(ART_TEST_DIR)
Brian Carlstrom86927212011-09-15 11:31:11 -0700206
207.PHONY: test-art-target-gtest
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -0700208test-art-target-gtest: $(ART_TARGET_TEST_TARGETS)
Brian Carlstrom86927212011-09-15 11:31:11 -0700209
210.PHONY: test-art-target-oat
Brian Carlstromb2793372012-03-17 18:27:16 -0700211test-art-target-oat: $(ART_TEST_TARGET_OAT_TARGETS)
Brian Carlstrom395520e2011-09-25 19:35:00 -0700212 @echo test-art-target-oat PASSED
Brian Carlstrom4a96b602011-07-26 16:40:23 -0700213
Brian Carlstrom37c44442012-03-06 22:21:18 -0800214define declare-test-art-target-run-test
215.PHONY: test-art-target-run-test-$(1)
216test-art-target-run-test-$(1): test-art-target-sync
217 art/test/run-test $(1)
218 @echo test-art-target-run-test-$(1) PASSED
Brian Carlstrome24fa612011-09-29 00:53:55 -0700219
Brian Carlstrom37c44442012-03-06 22:21:18 -0800220TEST_ART_TARGET_RUN_TEST_TARGETS += test-art-target-run-test-$(1)
221endef
222
Elliott Hughes84a5bb42012-05-16 17:52:15 -0700223$(foreach test, $(wildcard art/test/[0-9]*), $(eval $(call declare-test-art-target-run-test,$(notdir $(test)))))
Brian Carlstrom37c44442012-03-06 22:21:18 -0800224
225.PHONY: test-art-target-run-test
226test-art-target-run-test: $(TEST_ART_TARGET_RUN_TEST_TARGETS)
227 @echo test-art-target-run-test PASSED
Brian Carlstrome24fa612011-09-29 00:53:55 -0700228
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700229########################################################################
Brian Carlstrom04941d92012-02-19 01:47:51 -0800230# oat-target and oat-target-sync targets
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700231
Brian Carlstrom04941d92012-02-19 01:47:51 -0800232OAT_TARGET_TARGETS :=
233
234# $(1): input jar or apk target location
235define declare-oat-target-target
Brian Carlstrom46b8a622012-06-19 23:13:22 -0700236ifneq (,$(filter $(1),$(addprefix system/app/,$(addsuffix .apk,$(PRODUCT_DEX_PREOPT_PACKAGES_IN_DATA)))))
Shih-wei Liao2e01f242012-05-28 03:11:59 -0700237OUT_OAT_FILE := $(call art-cache-out,$(1).oat)
Brian Carlstrom46b8a622012-06-19 23:13:22 -0700238else
239OUT_OAT_FILE := $(PRODUCT_OUT)/$(1).oat
240endif
Shih-wei Liao2e01f242012-05-28 03:11:59 -0700241
242ifeq ($(ONE_SHOT_MAKEFILE),)
Brian Carlstrom04941d92012-02-19 01:47:51 -0800243.PHONY: oat-target-$(1)
244oat-target-$(1): $(PRODUCT_OUT)/$(1) $(TARGET_BOOT_IMG_OUT) $(DEX2OAT_DEPENDENCY)
Logan Chien60d25e42012-06-04 02:23:06 +0800245 $(DEX2OAT) $(PARALLEL_ART_COMPILE_JOBS) --runtime-arg -Xms64m --runtime-arg -Xmx64m --boot-image=$(TARGET_BOOT_IMG_OUT) --dex-file=$(PRODUCT_OUT)/$(1) --dex-location=/$(1) --oat-file=$$(OUT_OAT_FILE) --host-prefix=$(PRODUCT_OUT) --instruction-set=$(TARGET_ARCH)
Shih-wei Liao2e01f242012-05-28 03:11:59 -0700246
247else
248.PHONY: oat-target-$(1)
Shih-wei Liao7eea0e82012-05-28 23:56:21 -0700249oat-target-$(1): $$(OUT_OAT_FILE)
Shih-wei Liao2e01f242012-05-28 03:11:59 -0700250
Shih-wei Liao7eea0e82012-05-28 23:56:21 -0700251$$(OUT_OAT_FILE): $(PRODUCT_OUT)/$(1) $(TARGET_BOOT_IMG_OUT) $(DEX2OAT_DEPENDENCY)
Logan Chien60d25e42012-06-04 02:23:06 +0800252 $(DEX2OAT) $(PARALLEL_ART_COMPILE_JOBS) --runtime-arg -Xms64m --runtime-arg -Xmx64m --boot-image=$(TARGET_BOOT_IMG_OUT) --dex-file=$(PRODUCT_OUT)/$(1) --dex-location=/$(1) --oat-file=$$@ --host-prefix=$(PRODUCT_OUT) --instruction-set=$(TARGET_ARCH)
Shih-wei Liao2e01f242012-05-28 03:11:59 -0700253
254endif
Brian Carlstrom04941d92012-02-19 01:47:51 -0800255
256OAT_TARGET_TARGETS += oat-target-$(1)
Brian Carlstroma9f19782011-10-13 00:14:47 -0700257endef
258
Brian Carlstrombd411022012-02-07 12:09:09 -0800259$(foreach file,\
260 $(filter-out\
Brian Carlstrom46b8a622012-06-19 23:13:22 -0700261 $(addprefix $(TARGET_OUT_JAVA_LIBRARIES)/,$(addsuffix .jar,$(TARGET_BOOT_JARS))),\
Brian Carlstrombd411022012-02-07 12:09:09 -0800262 $(wildcard $(TARGET_OUT_APPS)/*.apk) $(wildcard $(TARGET_OUT_JAVA_LIBRARIES)/*.jar)),\
Brian Carlstrom04941d92012-02-19 01:47:51 -0800263 $(eval $(call declare-oat-target-target,$(subst $(PRODUCT_OUT)/,,$(file)))))
264
265.PHONY: oat-target
266oat-target: $(ART_TARGET_DEPENDENCIES) $(TARGET_BOOT_OAT_OUT) $(OAT_TARGET_TARGETS)
Ian Rogersbeb60e22012-01-31 10:40:40 -0800267
Brian Carlstroma6cc8932012-01-04 14:44:07 -0800268.PHONY: oat-target-sync
Brian Carlstrom04941d92012-02-19 01:47:51 -0800269oat-target-sync: oat-target
Brian Carlstrom0796af02011-10-12 14:31:45 -0700270 adb remount
271 adb sync
272
Brian Carlstrom76aa0c02011-10-11 15:29:43 -0700273########################################################################
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700274# oatdump targets
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700275
Brian Carlstrom395520e2011-09-25 19:35:00 -0700276.PHONY: dump-oat
Brian Carlstrom03a20ba2011-10-13 10:24:13 -0700277dump-oat: dump-oat-core dump-oat-boot dump-oat-Calculator
Brian Carlstrom395520e2011-09-25 19:35:00 -0700278
Brian Carlstrome10b6972011-09-26 13:49:03 -0700279.PHONY: dump-oat-core
Brian Carlstrom13c492b2012-03-22 17:09:17 -0700280dump-oat-core: dump-oat-core-host dump-oat-core-target
281
282.PHONY: dump-oat-core-host
283dump-oat-core-host: $(HOST_CORE_IMG_OUT) $(OATDUMP)
284 $(OATDUMP) --image=$(HOST_CORE_IMG_OUT) --output=/tmp/core.host.oatdump.txt --host-prefix=""
285 @echo Output in /tmp/core.host.oatdump.txt
286
287.PHONY: dump-oat-core-target
288dump-oat-core-target: $(TARGET_CORE_IMG_OUT) $(OATDUMP)
289 $(OATDUMP) --image=$(TARGET_CORE_IMG_OUT) --output=/tmp/core.target.oatdump.txt
290 @echo Output in /tmp/core.target.oatdump.txt
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700291
Brian Carlstrome10b6972011-09-26 13:49:03 -0700292.PHONY: dump-oat-boot
Brian Carlstrom13c492b2012-03-22 17:09:17 -0700293dump-oat-boot: $(TARGET_BOOT_IMG_OUT) $(OATDUMP)
Brian Carlstromfe487d02012-02-29 18:49:16 -0800294 $(OATDUMP) --image=$(TARGET_BOOT_IMG_OUT) --output=/tmp/boot.oatdump.txt
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700295 @echo Output in /tmp/boot.oatdump.txt
Brian Carlstrom78128a62011-09-15 17:21:19 -0700296
Brian Carlstrome10b6972011-09-26 13:49:03 -0700297.PHONY: dump-oat-Calculator
Brian Carlstromfe487d02012-02-29 18:49:16 -0800298dump-oat-Calculator: $(call art-cache-out,system/app/Calculator.apk.oat) $(TARGET_BOOT_IMG_OUT) $(OATDUMP)
299 $(OATDUMP) --oat-file=$< --output=/tmp/Calculator.oatdump.txt
Brian Carlstrome10b6972011-09-26 13:49:03 -0700300 @echo Output in /tmp/Calculator.oatdump.txt
301
302
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700303########################################################################
304# cpplint target
305
Brian Carlstrom59848da2011-07-23 20:35:19 -0700306# "mm cpplint-art" to style check art source files
307.PHONY: cpplint-art
308cpplint-art:
Elliott Hughesa51a3dd2011-10-17 15:19:26 -0700309 ./art/tools/cpplint.py \
Elliott Hughesb25c3f62012-03-26 16:35:06 -0700310 --filter=-whitespace/comments,-whitespace/line_length,-build/include,-build/header_guard,-readability/function,-readability/streams,-readability/todo,-runtime/references \
Elliott Hughes362f9bc2011-10-17 18:56:41 -0700311 $(ANDROID_BUILD_TOP)/art/src/*.h $(ANDROID_BUILD_TOP)/art/src/*.cc
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700312
Brian Carlstrombc2f3e32011-09-22 17:16:54 -0700313########################################################################
314
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700315include $(call all-makefiles-under,$(LOCAL_PATH))
Brian Carlstrom62e3ee32012-06-18 14:58:55 -0700316
317endif # !art_dont_bother