diff options
Diffstat (limited to 'lint')
-rw-r--r-- | lint/cli/Android.mk | 41 | ||||
-rw-r--r-- | lint/libs/lint_api/Android.mk | 17 | ||||
-rw-r--r-- | lint/libs/lint_checks/Android.mk | 25 |
3 files changed, 51 insertions, 32 deletions
diff --git a/lint/cli/Android.mk b/lint/cli/Android.mk index dcd1792..00c736b 100644 --- a/lint/cli/Android.mk +++ b/lint/cli/Android.mk @@ -1,14 +1,26 @@ # Copyright 2011 The Android Open Source Project # +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) -LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) -LOCAL_JAVA_RESOURCE_DIRS := src/main/java - -LOCAL_JAR_MANIFEST := etc/manifest.txt +# The lint code has moved to tools/base/lint. +# The rule below uses the prebuilt lint.jar. +# +# If you want to run the tests, cd to tools/base/lint +# and run ./gradlew :lint:test -# If the dependency list is changed, etc/manifest.txt LOCAL_JAVA_LIBRARIES := \ common \ sdklib \ @@ -23,21 +35,8 @@ LOCAL_JAVA_LIBRARIES := \ LOCAL_MODULE := lint LOCAL_MODULE_TAGS := optional -include $(BUILD_HOST_JAVA_LIBRARY) - - -# Build all sub-directories -include $(call all-makefiles-under,$(LOCAL_PATH)) - -# Build tests -include $(CLEAR_VARS) - -# Only compile source java files in this lib. -LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java) - -LOCAL_MODULE := lint_checks-tests -LOCAL_MODULE_TAGS := optional +LOCAL_PREBUILT_JAVA_LIBRARIES := \ + ../../../prebuilts/devtools/$(LOCAL_MODULE)$(COMMON_JAVA_PACKAGE_SUFFIX) -LOCAL_JAVA_LIBRARIES := common sdklib lint_api lint_checks lint junit easymock asm-tools asm-tree-tools guava-tools layoutlib_api sdktestutils +include $(BUILD_HOST_PREBUILT) -include $(BUILD_HOST_JAVA_LIBRARY) diff --git a/lint/libs/lint_api/Android.mk b/lint/libs/lint_api/Android.mk index 1d70a25..3510559 100644 --- a/lint/libs/lint_api/Android.mk +++ b/lint/libs/lint_api/Android.mk @@ -13,12 +13,14 @@ # limitations under the License. LOCAL_PATH := $(call my-dir) - include $(CLEAR_VARS) -# Only compile source java files in this lib. -LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) -LOCAL_JAVA_RESOURCE_DIRS := src/main/java +# The lint_api code has moved to tools/base/lint_api. +# The rule below uses the prebuilt lint_api.jar. +# +# If you want to run the tests, cd to tools/base/lint_api +# and run ./gradlew :lint_api:test + LOCAL_JAVA_LIBRARIES := \ lombok-ast-0.2 \ common \ @@ -31,7 +33,8 @@ LOCAL_JAVA_LIBRARIES := \ LOCAL_MODULE := lint_api LOCAL_MODULE_TAGS := optional -include $(BUILD_HOST_JAVA_LIBRARY) +LOCAL_PREBUILT_JAVA_LIBRARIES := \ + ../../../../prebuilts/devtools/$(LOCAL_MODULE)$(COMMON_JAVA_PACKAGE_SUFFIX) + +include $(BUILD_HOST_PREBUILT) -# Build all sub-directories -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/lint/libs/lint_checks/Android.mk b/lint/libs/lint_checks/Android.mk index 30fc979..1382715 100644 --- a/lint/libs/lint_checks/Android.mk +++ b/lint/libs/lint_checks/Android.mk @@ -1,13 +1,27 @@ # Copyright 2011 The Android Open Source Project # +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) +# The lint_checks code has moved to tools/base/lint_checks. +# The rule below uses the prebuilt lint_checks.jar. +# +# If you want to run the tests, cd to tools/base/lint_checks +# and run ./gradlew :lint_checks:test # Only compile source java files in this lib. -LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) -LOCAL_JAVA_RESOURCE_DIRS := src/main/java -# If the dependency list is changed, etc/manifest.txt LOCAL_JAVA_LIBRARIES := \ common \ sdklib \ @@ -22,5 +36,8 @@ LOCAL_JAVA_LIBRARIES := \ LOCAL_MODULE := lint_checks LOCAL_MODULE_TAGS := optional -include $(BUILD_HOST_JAVA_LIBRARY) +LOCAL_PREBUILT_JAVA_LIBRARIES := \ + ../../../../prebuilts/devtools/$(LOCAL_MODULE)$(COMMON_JAVA_PACKAGE_SUFFIX) + +include $(BUILD_HOST_PREBUILT) |