• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2018 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17include $(CLEAR_VARS)
18
19LOCAL_MODULE := CtsUnofficialApisUsageTestCases
20LOCAL_MODULE_TAGS := tests
21LOCAL_COMPATIBILITY_SUITE := cts vts general-tests
22
23LOCAL_SRC_FILES := $(call all-java-files-under, src)
24LOCAL_SDK_VERSION := current
25LOCAL_JAVA_LIBRARIES := cts-tradefed tradefed compatibility-host-util
26LOCAL_STATIC_JAVA_LIBRARIES := dexlib2 doclava jsilver guavalib antlr-runtime host-jdk-tools-prebuilt \
27    compatibility-host-util
28
29# These are list of api txt files that are considered as approved APIs
30LOCAL_JAVA_RESOURCE_FILES := $(addprefix frameworks/base/,\
31api/current.txt \
32api/system-current.txt \
33test-base/api/android-test-base-current.txt \
34test-runner/api/android-test-runner-current.txt \
35test-mock/api/android-test-mock-current.txt)
36
37# API 27 is added since some support libraries are using old APIs
38LOCAL_JAVA_RESOURCE_FILES += prebuilts/sdk/api/27.txt
39
40include $(BUILD_HOST_JAVA_LIBRARY)
41
42include $(CLEAR_VARS)
43LOCAL_MODULE_TAGS := optional
44LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := host-jdk-tools-prebuilt:../../../$(HOST_JDK_TOOLS_JAR)
45include $(BUILD_HOST_PREBUILT)
46